public class OrientableRectangularAreaShape extends RectangularAreaShape
| Modifier and Type | Field and Description |
|---|---|
ConnectorSkeleton |
skel
We will use it often, better store it.
|
area, fillable, shadowable, strokable| Constructor and Description |
|---|
OrientableRectangularAreaShape() |
| Modifier and Type | Method and 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.
|
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 skel)
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 skel)
Render the shape shadow for the given element.
|
theShapeconfigureDecorableForElement, configureDecorableForGroup, decorArea, decorConnectorpublic ConnectorSkeleton skel
public void configureForGroup(Backend bck, org.graphstream.ui.graphicGraph.stylesheet.Style style, org.graphstream.ui.view.camera.DefaultCamera2D camera)
ShapeconfigureForGroup in interface ShapeconfigureForGroup in class AreaShapebck - The rendering back-end.style - The style for the group.camera - the view parameters.public void configureForElement(Backend bck, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skel, org.graphstream.ui.view.camera.DefaultCamera2D camera)
ShapeconfigureForElement in interface ShapeconfigureForElement in class AreaShapebck - The rendering back-end.element - The specific element to render.skel - The element geometry and information.camera - the view parameters.public void make(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera)
Shapemake in interface Shapemake in class RectangularAreaShapebackend - 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.makeShadow in interface ShapemakeShadow in class RectangularAreaShapepublic void render(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skel)
Shaperender in interface Shaperender in class RectangularAreaShapecamera - The view parameters.element - The element to render.skel - The element geometry and information.public void renderShadow(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skel)
ShaperenderShadow in interface ShaperenderShadow in class RectangularAreaShape