Class SpriteArrowShape
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
org.graphstream.ui.swing.renderer.shape.swing.spriteShapes.SpriteArrowShape
- All Implemented Interfaces:
Shape
public class SpriteArrowShape extends PolygonalShape
-
Field Summary
Fields Modifier and Type Field Description ConnectorSkeletonskelWe 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 SpriteArrowShape() -
Method Summary
Modifier and Type Method Description voidconfigureForElement(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.voidconfigureForGroup(Backend bck, org.graphstream.ui.graphicGraph.stylesheet.Style style, org.graphstream.ui.view.camera.DefaultCamera2D camera)Configure as much as possible the graphics before painting several version of this shape at different positions.voidmake(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.voidmakeShadow(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera)Same as#make(Camera)for the shadow shape.Methods inherited from class org.graphstream.ui.swing.renderer.shape.swing.baseShapes.PolygonalShape
render, renderShadow, theShapeMethods 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
-
SpriteArrowShape
public SpriteArrowShape()
-
-
Method Details
-
configureForGroup
public void configureForGroup(Backend bck, org.graphstream.ui.graphicGraph.stylesheet.Style style, org.graphstream.ui.view.camera.DefaultCamera2D camera)Description copied from interface:ShapeConfigure as much as possible the graphics before painting several version of this shape at different positions.- Specified by:
configureForGroupin interfaceShape- Overrides:
configureForGroupin classAreaShape- Parameters:
bck- The rendering back-end.style- The style for the group.camera- the view parameters.
-
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:ShapeConfigure 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:
configureForElementin interfaceShape- Overrides:
configureForElementin 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:ShapeMust 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.- Parameters:
backend- The rendering back-end.camera- the view parameters.
-
makeShadow
Description copied from interface:ShapeSame 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.
-