Class PolygonalShape
java.lang.Object
org.graphstream.ui.swing.renderer.shape.Decorable
org.graphstream.ui.swing.renderer.shape.swing.baseShapes.AreaShape
org.graphstream.ui.swing.renderer.shape.swing.baseShapes.PolygonalShape
- All Implemented Interfaces:
Shape
- Direct Known Subclasses:
CrossShape
,DiamondShape
,PolygonShape
,SpriteArrowShape
,TriangleShape
public abstract class PolygonalShape extends AreaShape
-
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.swing.renderer.shape.swing.baseShapes.AreaShape
area, fillable, shadowable, strokable
-
Constructor Summary
Constructors Constructor Description PolygonalShape()
-
Method Summary
Modifier and Type Method Description void
render(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skel)
Render the shape for the given element.void
renderShadow(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skel)
Render the shape shadow for the given element.java.awt.geom.Path2D.Double
theShape()
Methods inherited from class org.graphstream.ui.swing.renderer.shape.swing.baseShapes.AreaShape
configureForElement, configureForGroup
Methods inherited from class org.graphstream.ui.swing.renderer.shape.Decorable
configureDecorableForElement, configureDecorableForGroup, decorArea, decorConnector
-
Field Details
-
skel
We will use it often, better store it.
-
-
Constructor Details
-
PolygonalShape
public PolygonalShape()
-
-
Method Details
-
renderShadow
public void renderShadow(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skel)Description copied from interface:Shape
Render the shape shadow for the given element. The shadow is rendered in a different pass than usual rendering, therefore it is a separate method. -
render
public void render(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skel)Description copied from interface:Shape
Render the shape for the given element.camera
- The view parameters.element
- The element to render.skel
- The element geometry and information.
-
theShape
public java.awt.geom.Path2D.Double theShape()
-