Class GatewayShape
- java.lang.Object
-
- com.mxgraph.shape.mxBasicShape
-
- com.mxgraph.shape.mxRhombusShape
-
- jadex.bpmn.editor.gui.stylesheets.GatewayShape
-
- All Implemented Interfaces:
com.mxgraph.shape.mxIShape
public class GatewayShape extends com.mxgraph.shape.mxRhombusShape
-
-
Field Summary
Fields Modifier and Type Field Description static double
BAR_LENGTH_RATIO
Bar size as ratio of element size.static double
BAR_WIDTH_RATIO
Bar thickness as ratio of rhombus side length.protected static double
BAR_WIDTH_RATIO2
Half of bar thickness as ratio of rhombus side length.static int
GATEWAY_SHAPE_TYPE_AND
AND gateway shape.static int
GATEWAY_SHAPE_TYPE_EMPTY
Empty gateway shape.static int
GATEWAY_SHAPE_TYPE_OR
OR gateway shape.static int
GATEWAY_SHAPE_TYPE_XOR
XOR gateway shape.protected static double
PI2
Half of PIprotected static double
POS_BASE_SHIFT
Base position shift.protected int
shapetype
The shape typestatic double
XOR_BAR_LENGTH_RATIO
Bar size as ratio for xor of element size.protected static double
XOR_POS_BASE_SHIFT
Base position shift for xor.
-
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)
-
-
-
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
-
PI2
protected static final double PI2
Half of PI- 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
-
-
Method Detail
-
paintShape
public void paintShape(com.mxgraph.canvas.mxGraphics2DCanvas canvas, com.mxgraph.view.mxCellState state)
- Specified by:
paintShape
in interfacecom.mxgraph.shape.mxIShape
- Overrides:
paintShape
in classcom.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)
-
-