Package com.luciad.shape.shape2D
Interface ILcd2DEditableGeoBuffer
- All Superinterfaces:
Cloneable,ILcd2DEditableShape,ILcdBounded,ILcdCloneable,ILcdGeoBuffer,ILcdShape,Serializable
- All Known Implementing Classes:
TLcdLonLatGeoBuffer,TLcdNVG15Arrow,TLcdNVG15Corridor,TLcdNVG20Arrow,TLcdNVG20Corridor,TLcdNVG20Orbit,TLcdXYGeoBuffer
An
ILcd2DEditableBuffer object is an ILcdGeoBuffer
that can be changed in two dimensions.-
Field Summary
Fields inherited from interface com.luciad.shape.ILcdGeoBuffer
CAP_BUTT, CAP_ROUND, JOIN_ROUND -
Method Summary
Modifier and TypeMethodDescriptionvoidIndicates that the base shape has been changed, and that the buffer should be recalculated.voidsetBaseShape(ILcdShape aShape) Sets the base shape of the buffer.voidsetEndCapStyle(int aEndCapStyle) Sets the end cap style of the buffer, which must be eitherILcdGeoBuffer.CAP_BUTTorILcdGeoBuffer.CAP_ROUND.voidsetJoinStyle(int aJoinStyle) Sets the join style of the buffer, which must beILcdGeoBuffer.JOIN_ROUND.voidsetWidth(double aWidth) Sets the width of the buffer, expressed in meters and measured from the axis to the border.Methods inherited from interface com.luciad.shape.shape2D.ILcd2DEditableShape
move2D, move2D, translate2DMethods inherited from interface com.luciad.shape.ILcdBounded
getBoundsMethods inherited from interface com.luciad.util.ILcdCloneable
cloneMethods inherited from interface com.luciad.shape.ILcdGeoBuffer
getBaseShape, getEndCapStyle, getJoinStyle, getWidthMethods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPoint
-
Method Details
-
setWidth
void setWidth(double aWidth) Sets the width of the buffer, expressed in meters and measured from the axis to the border.- Parameters:
aWidth- the width of the buffer.- Throws:
IllegalArgumentException- if a negative width is specified.
-
setEndCapStyle
void setEndCapStyle(int aEndCapStyle) Sets the end cap style of the buffer, which must be eitherILcdGeoBuffer.CAP_BUTTorILcdGeoBuffer.CAP_ROUND.- Parameters:
aEndCapStyle- the end cap style of the buffer.- Throws:
IllegalArgumentException- if an unrecognized end cap style is specified.
-
setJoinStyle
void setJoinStyle(int aJoinStyle) Sets the join style of the buffer, which must beILcdGeoBuffer.JOIN_ROUND.- Parameters:
aJoinStyle- the join style of the buffer.- Throws:
IllegalArgumentException- if an unrecognized join style is specified.
-
setBaseShape
Sets the base shape of the buffer.- Parameters:
aShape- the base shape of the buffer.- Throws:
IllegalArgumentException- if the base shape is not supported.
-
invalidateShape
void invalidateShape()Indicates that the base shape has been changed, and that the buffer should be recalculated.
-