com.monkeycoder.monkeyfractal.base
Class ComplexRange

java.lang.Object
  extended by com.monkeycoder.monkeyfractal.base.ComplexRange

public class ComplexRange
extends java.lang.Object

This class represents a specific range on Complex Plane.

Originally part of the MonkeyFractal project.

Author:
David Stephens

Constructor Summary
ComplexRange(double inRealLowerBound, double inRealUpperBound, double inImaginaryLowerBound, double inImaginaryUpperBound)
          Creates a new ComplexRange set to the range specified.
 
Method Summary
 double getImaginaryLowerBound()
          Gets the lower bound of this range on the imaginary axis.
 double getImaginaryUpperBound()
          Gets the upper bound of this range on the imaginary axis.
 double getRealLowerBound()
          Gets the lower bound of this range on the real axis.
 double getRealUpperBound()
          Gets the upper bound of this range on the real axis.
 void setRange(double inRealLowerBound, double inRealUpperBound, double inImaginaryLowerBound, double inImaginaryUpperBound)
          Sets this ComplexRange to the range specified.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComplexRange

public ComplexRange(double inRealLowerBound,
                    double inRealUpperBound,
                    double inImaginaryLowerBound,
                    double inImaginaryUpperBound)
Creates a new ComplexRange set to the range specified.

Parameters:
inRealLowerBound - The lower bound of the range on the real axis.
inRealUpperBound - The upper bound of the range on the real axis.
inImaginaryLowerBound - The lower bound of the range on the imaginary axis.
inImaginaryUpperBound - The upper bound of the range on the imaginary axis.
Method Detail

setRange

public void setRange(double inRealLowerBound,
                     double inRealUpperBound,
                     double inImaginaryLowerBound,
                     double inImaginaryUpperBound)
Sets this ComplexRange to the range specified.

Parameters:
inRealLowerBound - The lower bound of the range on the real axis.
inRealUpperBound - The upper bound of the range on the real axis.
inImaginaryLowerBound - The lower bound of the range on the imaginary axis.
inImaginaryUpperBound - The upper bound of the range on the imaginary axis.

getRealLowerBound

public double getRealLowerBound()
Gets the lower bound of this range on the real axis.

Returns:
The lower bound of the range on the real axis.

getRealUpperBound

public double getRealUpperBound()
Gets the upper bound of this range on the real axis.

Returns:
The upper bound of the range on the real axis.

getImaginaryLowerBound

public double getImaginaryLowerBound()
Gets the lower bound of this range on the imaginary axis.

Returns:
The lower bound of the range on the imaginary axis.

getImaginaryUpperBound

public double getImaginaryUpperBound()
Gets the upper bound of this range on the imaginary axis.

Returns:
The upper bound of the range on the imaginary axis.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object