@OpenApiAll
public final class Connection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ARROW |
static int |
ARROW_SMALL |
static int |
ARROW_THIN |
static int |
ARROW_WIDE |
static int |
CIRCLE |
static int |
CLOSED
Should figure be closed (none is the same as opened)
in some cases this mask is not used, example drawing circle
|
static int |
CROSSED_CIRCLE |
static int |
CROSSED_CIRCLE_DIAG |
static int |
DIAMOND_1 |
static int |
DIAMOND_SQUARE |
static int |
FILLED
should be filled, this field is already combined with CLOSED
|
static int |
GENERALIZATION |
static int |
GENERALIZATION2 |
static int |
HALF_CIRCLE |
static int |
NONE
no drawings, just simple line
|
static int |
SLASH |
static int |
SQUARE |
static int[] |
STYLES |
Constructor and Description |
---|
Connection() |
Modifier and Type | Method and Description |
---|---|
static java.awt.Point |
drawConnection(java.awt.Graphics2D g,
int type,
int x,
int y,
int x2,
int y2,
int preferredSize,
java.awt.Rectangle shapeBounds)
method for Path end shape drawing
draw lots of shapes
|
static java.awt.Point |
drawConnection(java.awt.Graphics2D g,
int type,
int x,
int y,
int x2,
int y2,
int preferredSize,
java.awt.Shape boundingShape,
boolean useCorrecting)
Method for Path end shape drawing.
|
static java.awt.Point |
drawConnection(java.awt.Graphics2D g,
com.nomagic.magicdraw.ui.pathicon.PathIcon icon,
boolean left,
int x,
int y,
int x2,
int y2,
int size,
java.awt.Rectangle shapeBounds,
java.util.function.Function<ResizableIcon,ResizableIcon> iconTransformer) |
static java.awt.Point |
drawConnection(java.awt.Graphics2D g,
com.nomagic.magicdraw.ui.pathicon.PathIcon icon,
boolean left,
int x,
int y,
int x2,
int y2,
int size,
java.awt.Shape boundingShape,
boolean fixOverlapping,
java.util.function.Function<ResizableIcon,ResizableIcon> iconTransformer)
Paints connection end.
|
static java.awt.Point |
drawConnection(java.awt.Graphics2D g,
ResizableIcon icon,
int x,
int y,
int x2,
int y2,
int size,
java.awt.Rectangle shapeBounds,
java.util.function.Function<ResizableIcon,ResizableIcon> iconTransformer) |
public static final int CLOSED
public static final int FILLED
public static final int NONE
public static final int ARROW
public static final int GENERALIZATION
public static final int GENERALIZATION2
public static final int CIRCLE
public static final int SQUARE
public static final int DIAMOND_SQUARE
public static final int DIAMOND_1
public static final int ARROW_WIDE
public static final int ARROW_THIN
public static final int CROSSED_CIRCLE
public static final int ARROW_SMALL
public static final int CROSSED_CIRCLE_DIAG
public static final int SLASH
public static final int HALF_CIRCLE
public static final int[] STYLES
public static java.awt.Point drawConnection(java.awt.Graphics2D g, int type, int x, int y, int x2, int y2, int preferredSize, java.awt.Shape boundingShape, boolean useCorrecting)
g
- graphics context.type
- path end draw style.x
- from point.y
- from point.x2
- to point.y2
- to point.preferredSize
- preferred size of path end shape.boundingShape
- client bounding shape.useCorrecting
- use correcting in case the link end symbol covers specified bounds.Connection
public static java.awt.Point drawConnection(java.awt.Graphics2D g, int type, int x, int y, int x2, int y2, int preferredSize, @CheckForNull java.awt.Rectangle shapeBounds)
g
- graphics contexttype
- path end draw stylex
- from pointy
- from pointx2
- to pointy2
- to pointpreferredSize
- preferred size of path end shapeshapeBounds
- client shape boundsConnection
public static java.awt.Point drawConnection(java.awt.Graphics2D g, com.nomagic.magicdraw.ui.pathicon.PathIcon icon, boolean left, int x, int y, int x2, int y2, int size, java.awt.Shape boundingShape, boolean fixOverlapping, java.util.function.Function<ResizableIcon,ResizableIcon> iconTransformer)
g
- graphics context.icon
- icon of the end.left
- left connection.x
- x coordinate of the intersection with the shape point.y
- y coordinate of the intersection with the shape point.x2
- x coordinate of the next link segment point.y2
- y coordinate of the next link segment point.size
- size of the icon.boundingShape
- bounding shape.fixOverlapping
- if true then correcting of the link end shape covering client or supplier
shape should be used.public static java.awt.Point drawConnection(java.awt.Graphics2D g, com.nomagic.magicdraw.ui.pathicon.PathIcon icon, boolean left, int x, int y, int x2, int y2, int size, @CheckForNull java.awt.Rectangle shapeBounds, java.util.function.Function<ResizableIcon,ResizableIcon> iconTransformer)
public static java.awt.Point drawConnection(java.awt.Graphics2D g, ResizableIcon icon, int x, int y, int x2, int y2, int size, @CheckForNull java.awt.Rectangle shapeBounds, java.util.function.Function<ResizableIcon,ResizableIcon> iconTransformer)