public class TLcdValuedContour extends Object implements ILcdBounded
getShape()
method,
and the value can be retrieved using the getValue()
method.
This class also implements the ILcdBounded
interface. The calculation of the bounds
is delegated to the shape inside this object.Constructor and Description |
---|
TLcdValuedContour(ILcdShape aShape,
double aValue)
Create a new
TLcdValuedContour . |
Modifier and Type | Method and Description |
---|---|
TLcdValuedContour |
clone()
Makes a deep clone of
TLcdValuedContour |
ILcdBounds |
getBounds()
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
ILcdShape |
getShape()
Returns the shape of this
TLcdValuedContour |
double |
getValue()
Returns the value of this
TLcdValuedContour |
public TLcdValuedContour(ILcdShape aShape, double aValue)
TLcdValuedContour
.aShape
- The base shape.aValue
- The value to attach to the base shape.public ILcdShape getShape()
TLcdValuedContour
ILcdShape
public double getValue()
TLcdValuedContour
double
public ILcdBounds getBounds()
ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.
If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points)
the return value is unspecified.
It is highly recommended to return an undefined
bounds.
You can create undefined bounds using the default constructors
of TLcdLonLatBounds
or TLcdXYBounds
.
getBounds
in interface ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.public TLcdValuedContour clone()
TLcdValuedContour
clone
in class Object
Object.clone()