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
Shape
s.-
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 Rectangle2D
Gets the bounds (bounding box) of this layer in model coordinates.protected void
renderLayer
(Rendering rendering) Renders the layer.void
setShapeList
(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, toString
Methods 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:Layer
Gets the bounds (bounding box) of this layer in model coordinates. Called byLayer.getModelBounds()
. The default implementation returnsnull
.- Overrides:
getLayerModelBounds
in classLayer
- Returns:
- The bounds of the layer in model coordinates or
null
if this layer has no specified boundary.
-
renderLayer
Description copied from class:Layer
Renders the layer. Called byLayer.render(com.bc.ceres.grender.Rendering)
. The default implementation does nothing.- Overrides:
renderLayer
in classLayer
- Parameters:
rendering
- The rendering to which the layer will be rendered.
-