Package jadex.tools.comanalyzer.diagram
Class DiagramConstants
- java.lang.Object
-
- jadex.tools.comanalyzer.diagram.DiagramConstants
-
public class DiagramConstants extends java.lang.ObjectDrawing constants for agent and message canvas.
-
-
Field Summary
Fields Modifier and Type Field Description static intarrowHeightarrow constantsstatic intarrowNotchstatic intarrowWidthstatic java.awt.ColorCOLOR_MESSAGENUMBERColor of the message numberstatic java.awt.ColorCOLOR_TIMELINEColor of the timeline.static intheightComponentboxThe height of the componentbox.static intheigtComponentboxTimelineThe height for the timeline in ComponentCanvasstatic intwidthComponentboxThe width of the componentbox.static intxDistTimelineThe x-distance between timelines.static intxOffsetMessageNumberThe x- and y-offset of the message numberstatic intxOffsetTimelineThe x-offset of timeline.static intyDistTimelineThe y-distance between timelines.static intyOffsetComponentboxThe y-offset to componentboxstatic intyOffsetMessageLabelThe y-offset for the labelstatic intyOffsetMessageNumberstatic intyOffsetTimelineThe y-offset of timeline.
-
Constructor Summary
Constructors Constructor Description DiagramConstants()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetTimelineX(int component_position)Get the x-position for the timeline from the index of an component.static intgetTimelineY(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.
-
-