Class MultiRectangleShape
java.lang.Object
org.graffiti.plugins.views.defaults.AbstractArrowShape
org.graffiti.plugins.views.defaults.RectangularNodeShape
org.graffiti.plugins.views.defaults.RectangleNodeShape
de.ipk_gatersleben.ag_nw.graffiti.plugins.shapes.MultiRectangleShape
- All Implemented Interfaces:
Shape
,ArrowShape
,GraffitiShape
,GraphElementShape
,NodeShape
,ProvidesAdditonalDrawingShapes
public class MultiRectangleShape extends RectangleNodeShape implements ProvidesAdditonalDrawingShapes
-
Constructor Summary
Constructors Constructor Description MultiRectangleShape()
MultiRectangleShape(boolean multi)
-
Method Summary
Modifier and Type Method Description void
buildShape(NodeGraphicAttribute graphics)
This method sets all necessary properties using the values contained within theCollectionAttribute
.Point2D
getIntersection(Line2D line)
Calculates the intersection point between this node shape and a line.Collection<Shape>
getPostBorderShapes()
Collection<Shape>
getPreBorderShapes()
int
shapeHeightCorrection()
int
shapeWidthCorrection()
Methods inherited from class org.graffiti.plugins.views.defaults.RectangleNodeShape
contains, contains, getIntersectionOfRoundRectangleAndLine, getPathIterator, getPathIterator
Methods inherited from class org.graffiti.plugins.views.defaults.RectangularNodeShape
contains, contains, getBounds, getBounds2D, getRealBounds2D, getXexcess, getYexcess, intersects, intersects, setCoordinateSystem
Methods inherited from class org.graffiti.plugins.views.defaults.AbstractArrowShape
addThickness, affix, getAnchor, updateSize
-
Constructor Details
-
MultiRectangleShape
public MultiRectangleShape() -
MultiRectangleShape
public MultiRectangleShape(boolean multi)
-
-
Method Details
-
getIntersection
Description copied from interface:NodeShape
Calculates the intersection point between this node shape and a line. For irregularly shaped objects, the intersection that is nearest to the end point of the line is returned.- Specified by:
getIntersection
in interfaceNodeShape
- Overrides:
getIntersection
in classRectangleNodeShape
- Parameters:
line
- the line with which the intersection should be calculated.- Returns:
- the intersection point between this node shape and the line.
-
getPostBorderShapes
- Specified by:
getPostBorderShapes
in interfaceProvidesAdditonalDrawingShapes
-
buildShape
Description copied from class:RectangleNodeShape
This method sets all necessary properties using the values contained within theCollectionAttribute
. This includes- Specified by:
buildShape
in interfaceNodeShape
- Overrides:
buildShape
in classRectangleNodeShape
- Parameters:
graphics
- The attribute that contains all necessary information to construct a rectangle.
-
getPreBorderShapes
- Specified by:
getPreBorderShapes
in interfaceProvidesAdditonalDrawingShapes
-
shapeHeightCorrection
public int shapeHeightCorrection()- Specified by:
shapeHeightCorrection
in interfaceNodeShape
- Overrides:
shapeHeightCorrection
in classRectangleNodeShape
-
shapeWidthCorrection
public int shapeWidthCorrection()- Specified by:
shapeWidthCorrection
in interfaceNodeShape
- Overrides:
shapeWidthCorrection
in classRectangleNodeShape
-