Class AbstractArrayContainerLayout.LegendShapePosition
- java.lang.Object
-
- idare.imagenode.Data.BasicDataTypes.ArrayData.AbstractArrayContainerLayout.ShapePosition
-
- idare.imagenode.Data.BasicDataTypes.ArrayData.AbstractArrayContainerLayout.LegendShapePosition
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- AbstractArrayContainerLayout
public class AbstractArrayContainerLayout.LegendShapePosition extends AbstractArrayContainerLayout.ShapePosition
AAbstractArrayContainerLayout.LegendShapePosition
extends aAbstractArrayContainerLayout.ShapePosition
by additionally drawing a Label in the center of the shape.- Author:
- Thomas Pfau
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class idare.imagenode.Data.BasicDataTypes.ArrayData.AbstractArrayContainerLayout.ShapePosition
position, shape
-
-
Constructor Summary
Constructors Constructor Description LegendShapePosition(Shape shape, Rectangle2D position, String ItemID, Point2D FontPosition, Font labelfont)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw(org.apache.batik.svggen.SVGGraphics2D context, Color fillcolor)
Draw the shape at the specified position and then adding the label above it.
-
-
-
Constructor Detail
-
LegendShapePosition
public LegendShapePosition(Shape shape, Rectangle2D position, String ItemID, Point2D FontPosition, Font labelfont)
Create aAbstractArrayContainerLayout.LegendShapePosition
. In additon to the shape and Position information for the ShapePosition, we need the label, the position of the label and the labelfont. THe labelposition is necessary to avoid recalculations during every plot.- Parameters:
shape
- The shape to useposition
- the position at which the shape will be plottedItemID
- the LAbel usedFontPosition
- the postition the label will be plotted atlabelfont
- The font used for the label.
-
-
Method Detail
-
draw
public void draw(org.apache.batik.svggen.SVGGraphics2D context, Color fillcolor)
Draw the shape at the specified position and then adding the label above it.- Overrides:
draw
in classAbstractArrayContainerLayout.ShapePosition
- Parameters:
context
- the context to draw infillcolor
- theColor
to use to fill the shape.
-
-