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 SummaryFields 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 SummaryConstructors Constructor Description GatewayShape(int shapetype)
 - 
Method SummaryAll 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_EMPTYpublic static final int GATEWAY_SHAPE_TYPE_EMPTY Empty gateway shape.- See Also:
- Constant Field Values
 
 - 
GATEWAY_SHAPE_TYPE_XORpublic static final int GATEWAY_SHAPE_TYPE_XOR XOR gateway shape.- See Also:
- Constant Field Values
 
 - 
GATEWAY_SHAPE_TYPE_ANDpublic static final int GATEWAY_SHAPE_TYPE_AND AND gateway shape.- See Also:
- Constant Field Values
 
 - 
GATEWAY_SHAPE_TYPE_ORpublic static final int GATEWAY_SHAPE_TYPE_OR OR gateway shape.- See Also:
- Constant Field Values
 
 - 
BAR_LENGTH_RATIOpublic static final double BAR_LENGTH_RATIO Bar size as ratio of element size.- See Also:
- Constant Field Values
 
 - 
XOR_BAR_LENGTH_RATIOpublic static final double XOR_BAR_LENGTH_RATIO Bar size as ratio for xor of element size.- See Also:
- Constant Field Values
 
 - 
BAR_WIDTH_RATIOpublic static final double BAR_WIDTH_RATIO Bar thickness as ratio of rhombus side length.- See Also:
- Constant Field Values
 
 - 
PI2protected static final double PI2 Half of PI- See Also:
- Constant Field Values
 
 - 
BAR_WIDTH_RATIO2protected static final double BAR_WIDTH_RATIO2 Half of bar thickness as ratio of rhombus side length.- See Also:
- Constant Field Values
 
 - 
POS_BASE_SHIFTprotected static final double POS_BASE_SHIFT Base position shift.- See Also:
- Constant Field Values
 
 - 
XOR_POS_BASE_SHIFTprotected static final double XOR_POS_BASE_SHIFT Base position shift for xor.- See Also:
- Constant Field Values
 
 - 
shapetypeprotected int shapetype The shape type
 
- 
 - 
Method Detail- 
paintShapepublic void paintShape(com.mxgraph.canvas.mxGraphics2DCanvas canvas, com.mxgraph.view.mxCellState state)- Specified by:
- paintShapein interface- com.mxgraph.shape.mxIShape
- Overrides:
- paintShapein class- com.mxgraph.shape.mxBasicShape
 
 - 
getXorShapepublic static final java.awt.Shape getXorShape(int x, int y, int w, int h)
 - 
getAndShapepublic static final java.awt.Shape getAndShape(int x, int y, int w, int h)
 - 
getOrShapepublic static final java.awt.Shape getOrShape(int x, int y, int w, int h)
 
- 
 
-