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 doubleBAR_LENGTH_RATIOBar size as ratio of element size.static doubleBAR_WIDTH_RATIOBar thickness as ratio of rhombus side length.protected static doubleBAR_WIDTH_RATIO2Half of bar thickness as ratio of rhombus side length.static intGATEWAY_SHAPE_TYPE_ANDAND gateway shape.static intGATEWAY_SHAPE_TYPE_EMPTYEmpty gateway shape.static intGATEWAY_SHAPE_TYPE_OROR gateway shape.static intGATEWAY_SHAPE_TYPE_XORXOR gateway shape.protected static doublePI2Half of PIprotected static doublePOS_BASE_SHIFTBase position shift.protected intshapetypeThe shape typestatic doubleXOR_BAR_LENGTH_RATIOBar size as ratio for xor of element size.protected static doubleXOR_POS_BASE_SHIFTBase 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.ShapegetAndShape(int x, int y, int w, int h)static java.awt.ShapegetOrShape(int x, int y, int w, int h)static java.awt.ShapegetXorShape(int x, int y, int w, int h)voidpaintShape(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:
paintShapein interfacecom.mxgraph.shape.mxIShape- Overrides:
paintShapein 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)
-
-