Class AnchorShapeRegistry

java.lang.Object
org.pathvisio.libgpml.model.shape.AnchorShapeRegistry

class AnchorShapeRegistry
extends java.lang.Object
Defines and registers all Anchor shapes. Shapes are defined and registered in the static section of this class.
Author:
unknown, finterly
  • Field Summary

    Fields
    Modifier and Type Field Description
    private static int ANCHOR_CIRCLE_SIZE  
    private static int ANCHOR_NONE_SIZE
    These are all model coordinates:
    private static int ANCHOR_SQUARE_SIZE  
  • Constructor Summary

    Constructors
    Constructor Description
    AnchorShapeRegistry()  
  • Method Summary

    Modifier and Type Method Description
    private static java.awt.Shape getAnchorCircle()
    Returns circle anchor shape.
    private static java.awt.Shape getAnchorNone()
    Returns anchor shape none, which appears invisible.
    private static java.awt.Shape getAnchorSquare()
    Returns default square anchor shape.
    (package private) static void registerShapes()  

    Methods inherited from class java.lang.Object

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

    • ANCHOR_NONE_SIZE

      private static final int ANCHOR_NONE_SIZE
      These are all model coordinates:
      See Also:
      Constant Field Values
    • ANCHOR_SQUARE_SIZE

      private static final int ANCHOR_SQUARE_SIZE
      See Also:
      Constant Field Values
    • ANCHOR_CIRCLE_SIZE

      private static final int ANCHOR_CIRCLE_SIZE
      See Also:
      Constant Field Values
  • Constructor Details

    • AnchorShapeRegistry

      AnchorShapeRegistry()
  • Method Details

    • registerShapes

      static void registerShapes()
    • getAnchorNone

      private static java.awt.Shape getAnchorNone()
      Returns anchor shape none, which appears invisible.
      Returns:
      the anchor shape for none.
    • getAnchorSquare

      private static java.awt.Shape getAnchorSquare()
      Returns default square anchor shape.
      Returns:
      the default square anchor shape.
    • getAnchorCircle

      private static java.awt.Shape getAnchorCircle()
      Returns circle anchor shape.
      Returns:
      the circle anchor shape.