Class GatewayShape

  • All Implemented Interfaces:
    com.mxgraph.shape.mxIShape

    public class GatewayShape
    extends com.mxgraph.shape.mxRhombusShape
    • Constructor Summary

      Constructors 
      Constructor Description
      GatewayShape​(int shapetype)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.awt.Shape getAndShape​(int x, int y, int w, int h)  
      static java.awt.Shape getOrShape​(int x, int y, int w, int h)  
      static java.awt.Shape getXorShape​(int x, int y, int w, int h)  
      void paintShape​(com.mxgraph.canvas.mxGraphics2DCanvas canvas, com.mxgraph.view.mxCellState state)  
      • Methods inherited from class com.mxgraph.shape.mxRhombusShape

        createShape
      • Methods inherited from class com.mxgraph.shape.mxBasicShape

        configureGraphics, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadow
      • Methods inherited from class java.lang.Object

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

      • GATEWAY_SHAPE_TYPE_EMPTY

        public static final int GATEWAY_SHAPE_TYPE_EMPTY
        Empty gateway shape.
        See Also:
        Constant Field Values
      • GATEWAY_SHAPE_TYPE_XOR

        public static final int GATEWAY_SHAPE_TYPE_XOR
        XOR gateway shape.
        See Also:
        Constant Field Values
      • GATEWAY_SHAPE_TYPE_AND

        public static final int GATEWAY_SHAPE_TYPE_AND
        AND gateway shape.
        See Also:
        Constant Field Values
      • GATEWAY_SHAPE_TYPE_OR

        public static final int GATEWAY_SHAPE_TYPE_OR
        OR gateway shape.
        See Also:
        Constant Field Values
      • BAR_LENGTH_RATIO

        public static final double BAR_LENGTH_RATIO
        Bar size as ratio of element size.
        See Also:
        Constant Field Values
      • XOR_BAR_LENGTH_RATIO

        public static final double XOR_BAR_LENGTH_RATIO
        Bar size as ratio for xor of element size.
        See Also:
        Constant Field Values
      • BAR_WIDTH_RATIO

        public static final double BAR_WIDTH_RATIO
        Bar thickness as ratio of rhombus side length.
        See Also:
        Constant Field Values
      • BAR_WIDTH_RATIO2

        protected static final double BAR_WIDTH_RATIO2
        Half of bar thickness as ratio of rhombus side length.
        See Also:
        Constant Field Values
      • POS_BASE_SHIFT

        protected static final double POS_BASE_SHIFT
        Base position shift.
        See Also:
        Constant Field Values
      • XOR_POS_BASE_SHIFT

        protected static final double XOR_POS_BASE_SHIFT
        Base position shift for xor.
        See Also:
        Constant Field Values
      • shapetype

        protected int shapetype
        The shape type
    • Constructor Detail

      • GatewayShape

        public GatewayShape​(int shapetype)
    • Method Detail

      • paintShape

        public void paintShape​(com.mxgraph.canvas.mxGraphics2DCanvas canvas,
                               com.mxgraph.view.mxCellState state)
        Specified by:
        paintShape in interface com.mxgraph.shape.mxIShape
        Overrides:
        paintShape in class com.mxgraph.shape.mxBasicShape
      • getXorShape

        public static final java.awt.Shape getXorShape​(int x,
                                                       int y,
                                                       int w,
                                                       int h)
      • getAndShape

        public static final java.awt.Shape getAndShape​(int x,
                                                       int y,
                                                       int w,
                                                       int h)
      • getOrShape

        public static final java.awt.Shape getOrShape​(int x,
                                                      int y,
                                                      int w,
                                                      int h)