public class ShapeLayer extends Layer
Shape
s.Modifier and Type | Class and Description |
---|---|
static class |
ShapeLayer.Type |
Constructor and Description |
---|
ShapeLayer(Shape[] shapes,
AffineTransform shapeToModelTransform) |
ShapeLayer(ShapeLayer.Type layerType,
List<Shape> shapes,
AffineTransform shapeToModelTransform,
PropertySet configuration) |
Modifier and Type | Method and 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) |
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
getExtension
public ShapeLayer(Shape[] shapes, AffineTransform shapeToModelTransform)
public ShapeLayer(ShapeLayer.Type layerType, List<Shape> shapes, AffineTransform shapeToModelTransform, PropertySet configuration)
public AffineTransform getShapeToModelTransform()
public AffineTransform getModelToShapeTransform()
protected Rectangle2D getLayerModelBounds()
Layer
Layer.getModelBounds()
.
The default implementation returns null
.getLayerModelBounds
in class Layer
null
if this layer
has no specified boundary.protected void renderLayer(Rendering rendering)
Layer
Layer.render(com.bc.ceres.grender.Rendering)
.
The default implementation does nothing.renderLayer
in class Layer
rendering
- The rendering to which the layer will be rendered.Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.