public class RectangleContainerLayout.RectangleLegendShapePosition extends RectangleContainerLayout.RectangleShapePosition
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.position, shape
Constructor and Description |
---|
RectangleLegendShapePosition(Shape shape,
Rectangle2D position,
String ItemID,
Point2D FontPosition,
Font labelfont)
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
draw(org.apache.batik.svggen.SVGGraphics2D context,
Color fillcolor)
Draw the shape in the given
SVGGraphics2D context with the provided color |
public RectangleLegendShapePosition(Shape shape, Rectangle2D position, String ItemID, Point2D FontPosition, Font labelfont)
public void draw(org.apache.batik.svggen.SVGGraphics2D context, Color fillcolor)
AbstractArrayContainerLayout.ShapePosition
SVGGraphics2D
context with the provided colordraw
in class RectangleContainerLayout.RectangleShapePosition
context
- the context to draw infillcolor
- the Color
to use to fill the shape.Copyright © 2018. All rights reserved.