Class DiagramConstants


  • public class DiagramConstants
    extends java.lang.Object
    Drawing constants for agent and message canvas.
    • Field Detail

      • 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
      • 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
    • Constructor Detail

      • DiagramConstants

        public DiagramConstants()
    • 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.