Class LabelledMarker


  • public class LabelledMarker
    extends java.lang.Object
    A utility class containing all information about a marker used with a LabbeledMarkerRenderer.
    Author:
    braeun
    • Constructor Detail

      • LabelledMarker

        public LabelledMarker​(double x,
                              java.lang.String label)
        Parameters:
        x - new X coordinate
        label - marker name
      • LabelledMarker

        public LabelledMarker​(double x,
                              java.lang.String label,
                              java.lang.String color)
        Parameters:
        x - new X coordinate
        label - marker name
        color - maker color
      • LabelledMarker

        public LabelledMarker​(double x,
                              java.lang.String label,
                              java.lang.String color,
                              double lineWidth)
        Parameters:
        x - new X coordinate
        label - marker name
        color - maker color
        lineWidth - marker line width
    • Method Detail

      • getDefaultColor

        public static java.lang.String getDefaultColor()
        Returns:
        default color
      • setDefaultColor

        public static void setDefaultColor​(java.lang.String defaultColor)
        Parameters:
        defaultColor - nomen est omen
      • getDefaultLineWidth

        public static double getDefaultLineWidth()
        Returns:
        nomen est omen
      • setDefaultLineWidth

        public static void setDefaultLineWidth​(double defaultLineWidth)
        Parameters:
        defaultLineWidth - nomen est omen
      • getDefaultFontSize

        public static double getDefaultFontSize()
        Returns:
        nomen est omen
      • setDefaultFontSize

        public static void setDefaultFontSize​(double defaultFontSize)
        Parameters:
        defaultFontSize - nomen est omen
      • shift

        public void shift​(double v)
        shift horizontal marker coordinate by shift parameter 'v'
        Parameters:
        v - horizontal shift parameter
      • getX

        public double getX()
        Returns:
        horizontal marker position
      • setX

        public void setX​(double x)
        Parameters:
        x - new horizontal marker position
      • getY

        public double getY()
        Returns:
        vertical marker position
      • setY

        public void setY​(double y)
        Parameters:
        y - new vertical marker position
      • getLabel

        public java.lang.String getLabel()
        Returns:
        marker label
      • setLabel

        public void setLabel​(java.lang.String label)
        Parameters:
        label - new maker label string
      • getColor

        public java.lang.String getColor()
        Returns:
        nomen est omen
      • setColor

        public void setColor​(java.lang.String color)
        Parameters:
        color - nomen est omen
      • getLineWidth

        public double getLineWidth()
        Returns:
        nomen est omen
      • setLineWidth

        public void setLineWidth​(double lineWidth)
        Parameters:
        lineWidth - nomen est omen
      • getFontSize

        public double getFontSize()
        Returns:
        nomen est omen
      • setFontSize

        public void setFontSize​(double fontSize)
        Parameters:
        fontSize - nomen est omen
      • getStyle

        public java.lang.String getStyle()
        Gets the style string for the marker.
        Returns:
        the style string