public class DataLocationConstraints
extends java.lang.Object
DataLocationConstraints
class holds a set of values
used to specify the bounds and sparseness of a continguous area of data
locations. The main purpose is to pass to the
DataLocationIteratorFactory
to create various types of iterators
over locations within the area. The class also has static methods useful
with polygons shapes.Modifier and Type | Field and Description |
---|---|
int[] |
dims
The full data location dimensions.
|
DataLocation |
end
The data location start and end bounds.
|
double |
fraction
The data coverage fraction in the range [0..1].
|
int |
minCount
The data coverage minimum number of data locations.
|
java.awt.Shape |
polygon
The polygon shape surrounding the locations.
|
DataLocation |
start
The data location start and end bounds.
|
int[] |
stride
The data location stride in each data dimension.
|
Constructor and Description |
---|
DataLocationConstraints() |
Modifier and Type | Method and Description |
---|---|
static double |
getShapeArea(java.awt.Shape shape)
Gets the area of a shape.
|
static DataLocation[] |
getShapeBounds(java.awt.Shape shape)
Gets the rectangular bounds of the specified shape in data location
coordinates.
|
public int[] dims
public DataLocation start
public DataLocation end
public java.awt.Shape polygon
public double fraction
public int minCount
public int[] stride
public static DataLocation[] getShapeBounds(java.awt.Shape shape)
shape
- the shape to get the bounds for.public static double getShapeArea(java.awt.Shape shape)
shape
- the shape to get the area for.