Package com.bc.ceres.glayer.support
Class ShapeLayer
java.lang.Object
com.bc.ceres.core.ExtensibleObject
com.bc.ceres.glayer.Layer
com.bc.ceres.glayer.support.ShapeLayer
- All Implemented Interfaces:
Extensible
A shape layer is used to draw
Shapes.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionShapeLayer(ShapeLayer.Type layerType, List<Shape> shapes, AffineTransform shapeToModelTransform, PropertySet configuration) ShapeLayer(Shape[] shapes, AffineTransform shapeToModelTransform) -
Method Summary
Modifier and TypeMethodDescriptionprotected Rectangle2DGets the bounds (bounding box) of this layer in model coordinates.protected voidrenderLayer(Rendering rendering) Renders the layer.voidsetShapeList(List<Shape> list) Methods inherited from class com.bc.ceres.glayer.Layer
addListener, dispose, disposeChildren, disposeLayer, fireLayerDataChanged, fireLayerPropertyChanged, fireLayerPropertyChanged, fireLayersAdded, fireLayersRemoved, getChildIndex, getChildren, getChildrenModelBounds, getComposite, getConfiguration, getConfigurationProperty, getId, getLayerType, getListeners, getModelBounds, getName, getParent, getSwipePercent, getTransparency, isCollectionLayer, isVisible, regenerate, removeListener, render, render, renderChildren, setComposite, setId, setName, setSwipePercent, setTransparency, setVisible, toStringMethods inherited from class com.bc.ceres.core.ExtensibleObject
getExtension
-
Constructor Details
-
ShapeLayer
-
ShapeLayer
public ShapeLayer(ShapeLayer.Type layerType, List<Shape> shapes, AffineTransform shapeToModelTransform, PropertySet configuration)
-
-
Method Details
-
getShapeList
-
setShapeList
-
getShapeToModelTransform
-
getModelToShapeTransform
-
getLayerModelBounds
Description copied from class:LayerGets the bounds (bounding box) of this layer in model coordinates. Called byLayer.getModelBounds(). The default implementation returnsnull.- Overrides:
getLayerModelBoundsin classLayer- Returns:
- The bounds of the layer in model coordinates or
nullif this layer has no specified boundary.
-
renderLayer
Description copied from class:LayerRenders the layer. Called byLayer.render(com.bc.ceres.grender.Rendering). The default implementation does nothing.- Overrides:
renderLayerin classLayer- Parameters:
rendering- The rendering to which the layer will be rendered.
-