public class RectangleContainerLayout extends AbstractArrayContainerLayout
Modifier and Type | Class and Description |
---|---|
class |
RectangleContainerLayout.RectangleLegendShapePosition
A Class that provides A Legend represenatation of a
RectangleContainerLayout.RectangleShapePosition for a Rectangle
This is necessary, as we need a slightly different draw method (black borders around everything and not contrasting colors
for Rectangles in comparison to circles. |
class |
RectangleContainerLayout.RectangleShapePosition
A Class that provides A ShapePosition for a Rectangle
This is necessary, as we need a slightly different draw method (black borders around everything and not contrasting colors
for Rectangles in comparison to circles.
|
AbstractArrayContainerLayout.LegendShapePosition, AbstractArrayContainerLayout.ShapePosition
layoutarea
Constructor and Description |
---|
RectangleContainerLayout() |
Modifier and Type | Method and Description |
---|---|
AbstractArrayContainerLayout.ShapePosition |
getLegendShape(Rectangle2D Area,
String id)
Get the ShapePosition representing the current Legend using the label indicated, and the Dimension provided.
|
Shape |
getShape(Dimension Area)
Get the Shape to be used for individual items in the specified area.
|
protected AbstractArrayContainerLayout.ShapePosition |
getShapePosition(Shape currentShape,
Rectangle2D position)
Generate a
AbstractArrayContainerLayout.ShapePosition from a Rectangle and a given Shape. |
LayoutDataForNode, setupLayout, updateLabel
createLayout, determineDisplayRange, getLayoutArea, roundToCommonOrder, roundToOrder
public Shape getShape(Dimension Area)
AbstractArrayContainerLayout
getShape
in class AbstractArrayContainerLayout
Area
- The size of the shape to be returned.public AbstractArrayContainerLayout.ShapePosition getLegendShape(Rectangle2D Area, String id)
AbstractArrayContainerLayout
getLegendShape
in class AbstractArrayContainerLayout
Area
- Area to put the legend shape intoid
- The Label for the AbstractArrayContainerLayout.ShapePosition
.protected AbstractArrayContainerLayout.ShapePosition getShapePosition(Shape currentShape, Rectangle2D position)
AbstractArrayContainerLayout
AbstractArrayContainerLayout.ShapePosition
from a Rectangle and a given Shape.
The Shape must be compatible with BATIK or implement its own DefaultExtensionHandler
. see
https://xmlgraphics.apache.org/batik/using/svg-generator.htmlgetShapePosition
in class AbstractArrayContainerLayout
currentShape
- the shape to be used for this AbstractArrayContainerLayout.ShapePosition
position
- the position the shape should occupyCopyright © 2018. All rights reserved.