Class LineStyle

    • Constructor Summary

      Constructors 
      Constructor Description
      LineStyle​(java.awt.Color color, java.awt.Stroke stroke, boolean antialias)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      LineTracer createLineTracer​(java.awt.Graphics g, java.awt.Rectangle bounds, int nwork, boolean isPixel)
      Convenience method to return a line tracer that will use this style.
      boolean equals​(java.lang.Object o)  
      boolean getAntialias()
      Indicates whether the line will be antialiased in suitable (bitmapped) contexts.
      java.awt.Color getColor()
      Returns the line colour.
      javax.swing.Icon getLegendIcon()
      Returns an icon suitable for displaying in a legend for this style.
      java.awt.Stroke getStroke()
      Returns the object used to stroke the line.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LineStyle

        public LineStyle​(java.awt.Color color,
                         java.awt.Stroke stroke,
                         boolean antialias)
        Constructor.
        Parameters:
        color - line colour
        stroke - line stroke
        antialias - whether line is to be antialiased (only likely to make a difference on bitmapped paper)
    • Method Detail

      • getColor

        public java.awt.Color getColor()
        Returns the line colour.
        Returns:
        colour
      • getStroke

        public java.awt.Stroke getStroke()
        Returns the object used to stroke the line.
        Returns:
        stroke
      • getAntialias

        public boolean getAntialias()
        Indicates whether the line will be antialiased in suitable (bitmapped) contexts.
        Returns:
        true for antialiasing
      • getLegendIcon

        public javax.swing.Icon getLegendIcon()
        Description copied from interface: Style
        Returns an icon suitable for displaying in a legend for this style.
        Specified by:
        getLegendIcon in interface Style
      • createLineTracer

        public LineTracer createLineTracer​(java.awt.Graphics g,
                                           java.awt.Rectangle bounds,
                                           int nwork,
                                           boolean isPixel)
        Convenience method to return a line tracer that will use this style.
        Parameters:
        g - graphics context
        bounds - clip bounds
        nwork - workspace array size
        isPixel - if true graphics context is considered pixellised
        Returns:
        new line tracer
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object