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.ShapePositionlayoutarea| 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, updateLabelcreateLayout, determineDisplayRange, getLayoutArea, roundToCommonOrder, roundToOrderpublic Shape getShape(Dimension Area)
AbstractArrayContainerLayoutgetShape in class AbstractArrayContainerLayoutArea - The size of the shape to be returned.public AbstractArrayContainerLayout.ShapePosition getLegendShape(Rectangle2D Area, String id)
AbstractArrayContainerLayoutgetLegendShape in class AbstractArrayContainerLayoutArea - Area to put the legend shape intoid - The Label for the AbstractArrayContainerLayout.ShapePosition.protected AbstractArrayContainerLayout.ShapePosition getShapePosition(Shape currentShape, Rectangle2D position)
AbstractArrayContainerLayoutAbstractArrayContainerLayout.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 AbstractArrayContainerLayoutcurrentShape - the shape to be used for this AbstractArrayContainerLayout.ShapePositionposition - the position the shape should occupyCopyright © 2018. All rights reserved.