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 SummaryFields 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 SummaryConstructors Constructor Description DiagramConstants()
 - 
Method SummaryAll 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- 
arrowHeightpublic static final int arrowHeight arrow constants- See Also:
- Constant Field Values
 
 - 
arrowWidthpublic static final int arrowWidth - See Also:
- Constant Field Values
 
 - 
arrowNotchpublic static final int arrowNotch - See Also:
- Constant Field Values
 
 - 
xDistTimelinepublic static final int xDistTimeline The x-distance between timelines.- See Also:
- Constant Field Values
 
 - 
yDistTimelinepublic static final int yDistTimeline The y-distance between timelines.- See Also:
- Constant Field Values
 
 - 
xOffsetTimelinepublic static final int xOffsetTimeline The x-offset of timeline.- See Also:
- Constant Field Values
 
 - 
yOffsetTimelinepublic static final int yOffsetTimeline The y-offset of timeline.- See Also:
- Constant Field Values
 
 - 
heightComponentboxpublic static final int heightComponentbox The height of the componentbox.- See Also:
- Constant Field Values
 
 - 
widthComponentboxpublic static final int widthComponentbox The width of the componentbox.- See Also:
- Constant Field Values
 
 - 
yOffsetComponentboxpublic static final int yOffsetComponentbox The y-offset to componentbox- See Also:
- Constant Field Values
 
 - 
xOffsetMessageNumberpublic static final int xOffsetMessageNumber The x- and y-offset of the message number- See Also:
- Constant Field Values
 
 - 
yOffsetMessageNumberpublic static final int yOffsetMessageNumber - See Also:
- Constant Field Values
 
 - 
yOffsetMessageLabelpublic static final int yOffsetMessageLabel The y-offset for the label- See Also:
- Constant Field Values
 
 - 
COLOR_MESSAGENUMBERpublic static final java.awt.Color COLOR_MESSAGENUMBER Color of the message number
 - 
COLOR_TIMELINEpublic static final java.awt.Color COLOR_TIMELINE Color of the timeline.
 - 
heigtComponentboxTimelinepublic static final int heigtComponentboxTimeline The height for the timeline in ComponentCanvas- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getTimelineXpublic 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.
 
 - 
getTimelineYpublic 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.
 
 
- 
 
-