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
public class ShapeLayer extends Layer
A shape layer is used to drawShape
s.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShapeLayer.Type
-
Constructor Summary
Constructors Constructor Description ShapeLayer(ShapeLayer.Type layerType, List<Shape> shapes, AffineTransform shapeToModelTransform, PropertySet configuration)
ShapeLayer(Shape[] shapes, AffineTransform shapeToModelTransform)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Rectangle2D
getLayerModelBounds()
Gets the bounds (bounding box) of this layer in model coordinates.AffineTransform
getModelToShapeTransform()
List<Shape>
getShapeList()
AffineTransform
getShapeToModelTransform()
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 Detail
-
ShapeLayer
public ShapeLayer(Shape[] shapes, AffineTransform shapeToModelTransform)
-
ShapeLayer
public ShapeLayer(ShapeLayer.Type layerType, List<Shape> shapes, AffineTransform shapeToModelTransform, PropertySet configuration)
-
-
Method Detail
-
getShapeToModelTransform
public AffineTransform getShapeToModelTransform()
-
getModelToShapeTransform
public AffineTransform getModelToShapeTransform()
-
getLayerModelBounds
protected Rectangle2D 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
protected void renderLayer(Rendering rendering)
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.
-
-