public class DiagramConstants
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
arrowHeight
arrow constants
|
static int |
arrowNotch |
static int |
arrowWidth |
static java.awt.Color |
COLOR_MESSAGENUMBER
Color of the message number
|
static java.awt.Color |
COLOR_TIMELINE
Color of the timeline.
|
static int |
heightComponentbox
The height of the componentbox.
|
static int |
heigtComponentboxTimeline
The height for the timeline in ComponentCanvas
|
static int |
widthComponentbox
The width of the componentbox.
|
static int |
xDistTimeline
The x-distance between timelines.
|
static int |
xOffsetMessageNumber
The x- and y-offset of the message number
|
static int |
xOffsetTimeline
The x-offset of timeline.
|
static int |
yDistTimeline
The y-distance between timelines.
|
static int |
yOffsetComponentbox
The y-offset to componentbox
|
static int |
yOffsetMessageLabel
The y-offset for the label
|
static int |
yOffsetMessageNumber |
static int |
yOffsetTimeline
The y-offset of timeline.
|
Constructor and Description |
---|
DiagramConstants() |
Modifier and Type | Method and Description |
---|---|
static int |
getTimelineX(int component_position)
Get the x-position for the timeline from the index of an component.
|
static int |
getTimelineY(int message_position)
Get the y-position for the timeline from the index of a message.
|
public static final int arrowHeight
public static final int arrowWidth
public static final int arrowNotch
public static final int xDistTimeline
public static final int yDistTimeline
public static final int xOffsetTimeline
public static final int yOffsetTimeline
public static final int heightComponentbox
public static final int widthComponentbox
public static final int yOffsetComponentbox
public static final int xOffsetMessageNumber
public static final int yOffsetMessageNumber
public static final int yOffsetMessageLabel
public static final java.awt.Color COLOR_MESSAGENUMBER
public static final java.awt.Color COLOR_TIMELINE
public static final int heigtComponentboxTimeline
public static int getTimelineX(int component_position)
component_position
- The index of the componentpublic static int getTimelineY(int message_position)
message_position
- The index of the message