public final class IlvDataWindow extends Object implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
IlvDataInterval |
xRange
The data interval along the x-axis.
|
IlvDataInterval |
yRange
The data interval along the y-axis.
|
Constructor and Description |
---|
IlvDataWindow()
Creates an empty
IlvDataWindow object. |
IlvDataWindow(double xMin,
double xMax,
double yMin,
double yMax)
Creates a new
IlvDataWindow object. |
IlvDataWindow(IlvDataInterval xRange,
IlvDataInterval yRange)
Creates a new
IlvDataWindow object with
the specified ranges along the x- and y-axis. |
IlvDataWindow(IlvDataWindow src)
Creates a new
IlvDataWindow object from
an existing IlvDataWindow . |
IlvDataWindow(Rectangle2D r)
Creates an new
IlvDataWindow from a Rectangle2D . |
Modifier and Type | Method and Description |
---|---|
void |
add(double x,
double y)
Adds the specified coordinates.
|
void |
add(IlvDataWindow w)
Adds the specified data window.
|
Object |
clone()
Returns a copy of this object.
|
boolean |
contains(double x,
double y)
Returns whether the given point is contained in this data window.
|
boolean |
equals(Object obj)
Returns whether this data window is equal to the specified data
window.
|
double |
getXMax()
Returns the maximum bound along the x-axis of this data window.
|
double |
getXMin()
Returns the minimum bound along the x-axis of this data window.
|
double |
getYMax()
Returns the maximum bound along the y-axis of this data window.
|
double |
getYMin()
Returns the minimum bound along the y-axis of this data window.
|
void |
intersection(IlvDataInterval xRange,
IlvDataInterval yRange)
Computes the intersection between the specified intervals along the
x- and y-axis with this data window and modifies this data window
accordingly.
|
void |
intersection(IlvDataWindow w)
Computes the intersection between the specified data window
and this data window and modifies this data window accordingly.
|
boolean |
intersects(IlvDataWindow w)
Returns whether the specified data window intersects
this data window.
|
boolean |
isEmpty()
Returns whether this data window is empty.
|
String |
toString()
Returns a string representation of this data window.
|
public IlvDataInterval xRange
public IlvDataInterval yRange
public IlvDataWindow()
IlvDataWindow
object.public IlvDataWindow(Rectangle2D r)
IlvDataWindow
from a Rectangle2D
.public IlvDataWindow(double xMin, double xMax, double yMin, double yMax)
IlvDataWindow
object.xMin
- The minimum bound along the x-axis.xMax
- The maximum bound along the x-axis.yMin
- The minimum bound along the y-axis.yMax
- The maximum bound along the y-axis.public IlvDataWindow(IlvDataInterval xRange, IlvDataInterval yRange)
IlvDataWindow
object with
the specified ranges along the x- and y-axis.IlvDataInterval
public IlvDataWindow(IlvDataWindow src)
IlvDataWindow
object from
an existing IlvDataWindow
.public void add(double x, double y)
public void add(IlvDataWindow w)
public boolean intersects(IlvDataWindow w)
public void intersection(IlvDataWindow w)
public void intersection(IlvDataInterval xRange, IlvDataInterval yRange)
public boolean contains(double x, double y)
public boolean isEmpty()
IlvDataInterval.isEmpty()
public double getXMin()
public double getXMax()
public double getYMin()
public double getYMax()
public boolean equals(Object obj)
equals
in class Object
IlvDataInterval.equals(java.lang.Object)
public String toString()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.