Class Area
java.lang.Object
org.graphstream.ui.swing.renderer.shape.swing.Area
- Direct Known Subclasses:
AreaOnConnector,ShapePaint.ShapeAreaPaint
Trait for elements painted inside an area (most nodes and sprites).
This trait manages the size of the area (the size is rectangular, although the area may not
be), its position, and the automatic fit to the contents, if needed.
As this trait computes the position and size of the shape, it should
probably be configured first when assembling the configureForGroup
and configureForElement methods.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureAreaForElement(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera, AreaSkeleton skel, org.graphstream.ui.graphicGraph.GraphicElement element, ShapeDecor decor) Select the general size and position of the shape.voidconfigureAreaForGroup(org.graphstream.ui.graphicGraph.stylesheet.Style style, org.graphstream.ui.view.camera.DefaultCamera2D camera)
-
Field Details
-
theCenter
public org.graphstream.ui.geom.Point2 theCenterThe shape position. -
theSize
public org.graphstream.ui.geom.Point2 theSizeThe shape size. -
fit
protected boolean fitFit the shape size to its contents?
-
-
Constructor Details
-
Area
public Area()
-
-
Method Details
-
configureAreaForGroup
public void configureAreaForGroup(org.graphstream.ui.graphicGraph.stylesheet.Style style, org.graphstream.ui.view.camera.DefaultCamera2D camera) -
configureAreaForElement
public void configureAreaForElement(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera, AreaSkeleton skel, org.graphstream.ui.graphicGraph.GraphicElement element, ShapeDecor decor) Select the general size and position of the shape. This is done according to: - The style, - Eventually the element specific size attribute, - Eventually the element contents (decor).
-