Class PolygonShape
java.lang.Object
org.graphstream.ui.javafx.renderer.shape.Decorable
org.graphstream.ui.javafx.renderer.shape.javafx.baseShapes.AreaShape
org.graphstream.ui.javafx.renderer.shape.javafx.baseShapes.PolygonalShape
org.graphstream.ui.javafx.renderer.shape.javafx.basicShapes.PolygonShape
- All Implemented Interfaces:
Shape
,AttributeUtils
public class PolygonShape extends PolygonalShape implements AttributeUtils
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.graphstream.ui.javafx.util.AttributeUtils
AttributeUtils.Tuple<X,Y>
-
Field Summary
Fields Modifier and Type Field Description ConnectorSkeleton
skel
We will use it often, better store it.Fields inherited from class org.graphstream.ui.javafx.renderer.shape.javafx.baseShapes.AreaShape
area, fillable, shadowable, strokable
-
Constructor Summary
Constructors Constructor Description PolygonShape()
-
Method Summary
Modifier and Type Method Description void
configureForElement(Backend bck, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skel, org.graphstream.ui.view.camera.DefaultCamera2D camera)
Configure all the dynamic and per element settings.void
make(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera)
Must create the shape from informations given earlier, that is, resize it if needed and position it, and do all the things that are specific to each element, and cannot be done for the group of elements.void
makeShadow(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera)
Same as#make(Camera)
for the shadow shape.Methods inherited from class org.graphstream.ui.javafx.renderer.shape.javafx.baseShapes.PolygonalShape
render, renderShadow, theShape
Methods inherited from class org.graphstream.ui.javafx.renderer.shape.javafx.baseShapes.AreaShape
configureForGroup
Methods inherited from class org.graphstream.ui.javafx.renderer.shape.Decorable
configureDecorableForElement, configureDecorableForGroup, decorArea, decorConnector
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.graphstream.ui.javafx.util.AttributeUtils
boundingBoxOfPoints, getDoubles, getPoints
-
Field Details
-
skel
We will use it often, better store it.
-
-
Constructor Details
-
PolygonShape
public PolygonShape()
-
-
Method Details
-
configureForElement
public void configureForElement(Backend bck, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skel, org.graphstream.ui.view.camera.DefaultCamera2D camera)Description copied from interface:Shape
Configure all the dynamic and per element settings. Some configurations can only be done before painting the element, since they change for each element.- Specified by:
configureForElement
in interfaceShape
- Overrides:
configureForElement
in classAreaShape
- Parameters:
bck
- The rendering back-end.element
- The specific element to render.skel
- The element geometry and information.camera
- the view parameters.
-
make
Description copied from interface:Shape
Must create the shape from informations given earlier, that is, resize it if needed and position it, and do all the things that are specific to each element, and cannot be done for the group of elements. This method is made to be called inside the render() method, hence it is protected. -
makeShadow
Description copied from interface:Shape
Same as#make(Camera)
for the shadow shape. The shadow shape may be moved and resized compared to the original shape. This method is made to be called inside the renderShadow() method, hence it is protected.- Specified by:
makeShadow
in interfaceShape
-