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 drawShapes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShapeLayer.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 Rectangle2DgetLayerModelBounds()Gets the bounds (bounding box) of this layer in model coordinates.AffineTransformgetModelToShapeTransform()List<Shape>getShapeList()AffineTransformgetShapeToModelTransform()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, 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: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
protected void renderLayer(Rendering rendering)
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.
-
-