public class LineShape extends LineConnectorShape
Modifier and Type | Field and Description |
---|---|
ConnectorSkeleton |
skel
We will use it often, better store it.
|
protected Form |
theShape |
protected Form.CubicCurve2D |
theShapeC |
protected Form.Line2D |
theShapeL |
fillableLine, shadowableLine, strokableLine
decorable
isDirected, theEdge, theSize, theSourceSize, theTargetSize
Constructor and Description |
---|
LineShape() |
Modifier and Type | Method and Description |
---|---|
void |
make(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.
|
void |
makeShadow(Backend backend,
org.graphstream.ui.view.camera.DefaultCamera2D camera)
Same as
#make(Camera) for the shadow shape. |
void |
render(Backend bck,
org.graphstream.ui.view.camera.DefaultCamera2D camera,
org.graphstream.ui.graphicGraph.GraphicElement element,
Skeleton skeleton)
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 skeleton)
Render the shape shadow for the given element.
|
configureForElement, configureForGroup
byPos1, byPos2, configureConnectorForElement, configureConnectorForGroup, endPoints, endPoints, endPoints, endPoints, fromPos, positionForLinesAndCurves, positionForLinesAndCurves, toPos
protected Form.Line2D theShapeL
protected Form.CubicCurve2D theShapeC
protected Form theShape
public ConnectorSkeleton skel
public void make(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera)
Shape
backend
- The rendering back-end.camera
- the view parameters.public void makeShadow(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera)
Shape
#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.public void render(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skeleton)
Shape
camera
- The view parameters.element
- The element to render.skeleton
- The element geometry and information.public void renderShadow(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skeleton)
Shape