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
-
Field Summary
FieldsFields inherited from class org.graphstream.ui.swing.renderer.shape.swing.baseShapes.AreaShape
area, fillable, shadowable, strokable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrender(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skel) Render the shape for the given element.voidrenderShadow(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.theShape()Methods inherited from class org.graphstream.ui.swing.renderer.shape.swing.baseShapes.AreaShape
configureForElement, configureForGroupMethods inherited from class org.graphstream.ui.swing.renderer.shape.Decorable
configureDecorableForElement, configureDecorableForGroup, decorArea, decorConnectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graphstream.ui.swing.renderer.shape.Shape
make, makeShadow
-
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:ShapeRender 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:ShapeRender the shape for the given element.camera- The view parameters.element- The element to render.skel- The element geometry and information.
-
theShape
-