Class LineStyle

java.lang.Object
be.quodlibet.boxable.line.LineStyle

public class LineStyle extends Object

The LineStyle class defines a basic set of rendering attributes for lines.

Author:
hstimac, mkuehne
  • Constructor Details

    • LineStyle

      public LineStyle(Color color, float width)

      Simple constructor for setting line Color and line width

      Parameters:
      color - The line Color
      width - The line width
  • Method Details

    • produceDotted

      public static LineStyle produceDotted(Color color, int width)

      Provides ability to produce dotted line.

      Parameters:
      color - The Color of the line
      width - The line width
      Returns:
      new styled line
    • produceDashed

      public static LineStyle produceDashed(Color color, int width)

      Provides ability to produce dashed line.

      Parameters:
      color - The Color of the line
      width - The line width
      Returns:
      new styled line
    • produceDashed

      public static LineStyle produceDashed(Color color, int width, float[] dashArray, float dashPhase)
      Parameters:
      color - The Color of the line
      width - The line width
      dashArray - Mimics the behavior of BasicStroke.getDashArray()
      dashPhase - Mimics the behavior of BasicStroke.getDashPhase()
      Returns:
      new styled line
    • getColor

      public Color getColor()
    • getWidth

      public float getWidth()
    • getDashArray

      public float[] getDashArray()
    • getDashPhase

      public float getDashPhase()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object