Class FreePlaneEdgeShape
java.lang.Object
org.graphstream.ui.swing.renderer.shape.Connector
org.graphstream.ui.swing.renderer.shape.swing.baseShapes.ConnectorShape
org.graphstream.ui.swing.renderer.shape.swing.baseShapes.LineConnectorShape
org.graphstream.ui.swing.renderer.shape.swing.advancedShapes.FreePlaneEdgeShape
- All Implemented Interfaces:
Shape
public class FreePlaneEdgeShape extends LineConnectorShape
-
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.LineConnectorShape
fillableLine, shadowableLine, strokableLineFields inherited from class org.graphstream.ui.swing.renderer.shape.swing.baseShapes.ConnectorShape
decorableFields inherited from class org.graphstream.ui.swing.renderer.shape.Connector
isDirected, theEdge, theSize, theSourceSize, theTargetSize -
Constructor Summary
Constructors Constructor Description FreePlaneEdgeShape() -
Method Summary
Modifier and Type Method Description 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.voidrender(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skeleton)Render the shape for the given element.voidrenderShadow(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skeleton)Render the shape shadow for the given element.Methods inherited from class org.graphstream.ui.swing.renderer.shape.swing.baseShapes.LineConnectorShape
configureForElement, configureForGroupMethods inherited from class org.graphstream.ui.swing.renderer.shape.Connector
byPos1, byPos2, configureConnectorForElement, configureConnectorForGroup, endPoints, endPoints, endPoints, endPoints, fromPos, positionForLinesAndCurves, positionForLinesAndCurves, toPos
-
Field Details
-
skel
We will use it often, better store it.
-
-
Constructor Details
-
FreePlaneEdgeShape
public FreePlaneEdgeShape()
-
-
Method Details
-
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. -
render
public void render(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skeleton)Description copied from interface:ShapeRender the shape for the given element.camera- The view parameters.element- The element to render.skeleton- The element geometry and information.
-
renderShadow
public void renderShadow(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skeleton)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.
-