Class OrientableRectangularAreaShape

All Implemented Interfaces:
Shape
Direct Known Subclasses:
OrientableSquareShape

public class OrientableRectangularAreaShape
extends RectangularAreaShape
  • Field Summary

    Fields 
    Modifier and Type Field Description
    ConnectorSkeleton skel
    We will use it often, better store it.

    Fields inherited from class org.graphstream.ui.swing.renderer.shape.swing.baseShapes.AreaShape

    area, fillable, shadowable, strokable

    Fields inherited from class org.graphstream.ui.swing.renderer.shape.Decorable

    text, theDecor
  • Constructor Summary

    Constructors 
    Constructor Description
    OrientableRectangularAreaShape()  
  • 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.
    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.

    Methods inherited from class org.graphstream.ui.swing.renderer.shape.swing.baseShapes.RectangularAreaShape

    theShape

    Methods inherited from class org.graphstream.ui.swing.renderer.shape.Decorable

    configureDecorableForElement, configureDecorableForGroup, decorArea, decorConnector

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • 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 interface Shape
      Overrides:
      configureForGroup in class AreaShape
      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 interface Shape
      Overrides:
      configureForElement in class AreaShape
      Parameters:
      bck - The rendering back-end.
      element - The specific element to render.
      skel - The element geometry and information.
      camera - the view parameters.
    • make

      public void make​(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera)
      Description copied from interface: Shape
      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. This method is made to be called inside the render() method, hence it is protected.
      Specified by:
      make in interface Shape
      Overrides:
      make in class RectangularAreaShape
      Parameters:
      backend - The rendering back-end.
      camera - the view parameters.
    • makeShadow

      public void makeShadow​(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera)
      Description copied from interface: Shape
      Same 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.
      Specified by:
      makeShadow in interface Shape
      Overrides:
      makeShadow in class RectangularAreaShape
    • render

      public void render​(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skel)
      Description copied from interface: Shape
      Render the shape for the given element.
      Specified by:
      render in interface Shape
      Overrides:
      render in class RectangularAreaShape
      camera - The view parameters.
      element - The element to render.
      skel - 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 skel)
      Description copied from interface: Shape
      Render the shape shadow for the given element. The shadow is rendered in a different pass than usual rendering, therefore it is a separate method.
      Specified by:
      renderShadow in interface Shape
      Overrides:
      renderShadow in class RectangularAreaShape