Class ConnectorShape
java.lang.Object
org.graphstream.ui.swing.renderer.shape.Connector
org.graphstream.ui.swing.renderer.shape.swing.baseShapes.ConnectorShape
- All Implemented Interfaces:
Shape
- Direct Known Subclasses:
AreaConnectorShape
,LineConnectorShape
public abstract class ConnectorShape extends Connector implements Shape
-
Field Summary
Fields Modifier and Type Field Description Decorable
decorable
ConnectorSkeleton
skel
We will use it often, better store it.Fields inherited from class org.graphstream.ui.swing.renderer.shape.Connector
isDirected, theEdge, theSize, theSourceSize, theTargetSize
-
Constructor Summary
Constructors Constructor Description ConnectorShape()
-
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
configureForGroup(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.Methods inherited from class org.graphstream.ui.swing.renderer.shape.Connector
byPos1, byPos2, configureConnectorForElement, configureConnectorForGroup, endPoints, endPoints, endPoints, endPoints, fromPos, positionForLinesAndCurves, positionForLinesAndCurves, toPos
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.graphstream.ui.swing.renderer.shape.Shape
make, makeShadow, render, renderShadow
-
Field Details
-
Constructor Details
-
ConnectorShape
public ConnectorShape()
-
-
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:Shape
Configure as much as possible the graphics before painting several version of this shape at different positions.- Specified by:
configureForGroup
in interfaceShape
- 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: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
- Parameters:
bck
- The rendering back-end.element
- The specific element to render.skel
- The element geometry and information.camera
- the view parameters.
-