Class AbstractArrayContainerLayout.ShapePosition
- java.lang.Object
-
- idare.imagenode.Data.BasicDataTypes.ArrayData.AbstractArrayContainerLayout.ShapePosition
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbstractArrayContainerLayout.LegendShapePosition
- Enclosing class:
- AbstractArrayContainerLayout
public class AbstractArrayContainerLayout.ShapePosition extends Object implements Serializable
A Shapeposition combines a shape with positioning information. When drawing it, it will translate to that position and draw the shape at that position.- Author:
- Thomas Pfau
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Rectangle2D
position
protected Shape
shape
-
Constructor Summary
Constructors Constructor Description ShapePosition(Shape shape, Rectangle2D position)
A Basic constructor using a shape and a Rectangle as position.
-
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 in the givenSVGGraphics2D
context with the provided color
-
-
-
Field Detail
-
shape
protected Shape shape
-
position
protected Rectangle2D position
-
-
Constructor Detail
-
ShapePosition
public ShapePosition(Shape shape, Rectangle2D position)
A Basic constructor using a shape and a Rectangle as position.- Parameters:
shape
- The shape to useposition
- the position to use (area to plot in)
-
-