public class GatewayShape
extends com.mxgraph.shape.mxRhombusShape
Modifier and Type | Field and 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 PI
|
protected static double |
POS_BASE_SHIFT
Base position shift.
|
protected int |
shapetype
The shape type
|
static 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 and Description |
---|
GatewayShape(int shapetype) |
Modifier and Type | Method and 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) |
public static final int GATEWAY_SHAPE_TYPE_EMPTY
public static final int GATEWAY_SHAPE_TYPE_XOR
public static final int GATEWAY_SHAPE_TYPE_AND
public static final int GATEWAY_SHAPE_TYPE_OR
public static final double BAR_LENGTH_RATIO
public static final double XOR_BAR_LENGTH_RATIO
public static final double BAR_WIDTH_RATIO
protected static final double PI2
protected static final double BAR_WIDTH_RATIO2
protected static final double POS_BASE_SHIFT
protected static final double XOR_POS_BASE_SHIFT
protected int shapetype
public void paintShape(com.mxgraph.canvas.mxGraphics2DCanvas canvas, com.mxgraph.view.mxCellState state)
paintShape
in interface com.mxgraph.shape.mxIShape
paintShape
in class com.mxgraph.shape.mxBasicShape
public static final java.awt.Shape getXorShape(int x, int y, int w, int h)
public static final java.awt.Shape getAndShape(int x, int y, int w, int h)
public static final java.awt.Shape getOrShape(int x, int y, int w, int h)