Package jadex.tools.comanalyzer.diagram
Class DiagramConstants
- java.lang.Object
-
- jadex.tools.comanalyzer.diagram.DiagramConstants
-
public class DiagramConstants extends java.lang.Object
Drawing constants for agent and message canvas.
-
-
Field Summary
Fields Modifier and Type Field Description static int
arrowHeight
arrow constantsstatic int
arrowNotch
static int
arrowWidth
static java.awt.Color
COLOR_MESSAGENUMBER
Color of the message numberstatic 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 ComponentCanvasstatic 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 numberstatic int
xOffsetTimeline
The x-offset of timeline.static int
yDistTimeline
The y-distance between timelines.static int
yOffsetComponentbox
The y-offset to componentboxstatic int
yOffsetMessageLabel
The y-offset for the labelstatic int
yOffsetMessageNumber
static int
yOffsetTimeline
The y-offset of timeline.
-
Constructor Summary
Constructors Constructor Description DiagramConstants()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
arrowHeight
public static final int arrowHeight
arrow constants- See Also:
- Constant Field Values
-
arrowWidth
public static final int arrowWidth
- See Also:
- Constant Field Values
-
arrowNotch
public static final int arrowNotch
- See Also:
- Constant Field Values
-
xDistTimeline
public static final int xDistTimeline
The x-distance between timelines.- See Also:
- Constant Field Values
-
yDistTimeline
public static final int yDistTimeline
The y-distance between timelines.- See Also:
- Constant Field Values
-
xOffsetTimeline
public static final int xOffsetTimeline
The x-offset of timeline.- See Also:
- Constant Field Values
-
yOffsetTimeline
public static final int yOffsetTimeline
The y-offset of timeline.- See Also:
- Constant Field Values
-
heightComponentbox
public static final int heightComponentbox
The height of the componentbox.- See Also:
- Constant Field Values
-
widthComponentbox
public static final int widthComponentbox
The width of the componentbox.- See Also:
- Constant Field Values
-
yOffsetComponentbox
public static final int yOffsetComponentbox
The y-offset to componentbox- See Also:
- Constant Field Values
-
xOffsetMessageNumber
public static final int xOffsetMessageNumber
The x- and y-offset of the message number- See Also:
- Constant Field Values
-
yOffsetMessageNumber
public static final int yOffsetMessageNumber
- See Also:
- Constant Field Values
-
yOffsetMessageLabel
public static final int yOffsetMessageLabel
The y-offset for the label- See Also:
- Constant Field Values
-
COLOR_MESSAGENUMBER
public static final java.awt.Color COLOR_MESSAGENUMBER
Color of the message number
-
COLOR_TIMELINE
public static final java.awt.Color COLOR_TIMELINE
Color of the timeline.
-
heigtComponentboxTimeline
public static final int heigtComponentboxTimeline
The height for the timeline in ComponentCanvas- See Also:
- Constant Field Values
-
-
Method Detail
-
getTimelineX
public static int getTimelineX(int component_position)
Get the x-position for the timeline from the index of an component.- Parameters:
component_position
- The index of the component- Returns:
- x-position of the timeline.
-
getTimelineY
public static int getTimelineY(int message_position)
Get the y-position for the timeline from the index of a message.- Parameters:
message_position
- The index of the message- Returns:
- y-position of the timeline.
-
-