Documentation of 'edu.rit.numeric.plot.Strokes' Java class
Strokes
edu.rit.numeric.plot

Class Strokes



  • public class Strokes
    extends java.lang.Object
    Class Strokes provides operations for creating several common patterns of drawing strokes.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.awt.BasicStroke dashed(double theWidth)
      Returns a dashed stroke of the given width with square dashes.
      static java.awt.BasicStroke dashed(double theWidth, double d, double g)
      Returns a dashed stroke of the given width with square dashes.
      static java.awt.BasicStroke dotted(double theWidth)
      Returns a dotted stroke of the given width with square dots.
      static java.awt.BasicStroke readExternal(java.io.ObjectInput in)
      Read a BasicStroke object from the given object input stream.
      static java.awt.BasicStroke roundDashed(double theWidth)
      Returns a dashed stroke of the given width with rounded dashes.
      static java.awt.BasicStroke roundDashed(double theWidth, double d, double g)
      Returns a dashed stroke of the given width with rounded dashes.
      static java.awt.BasicStroke roundDotted(double theWidth)
      Returns a dotted stroke of the given width with round dots.
      static java.awt.BasicStroke roundSolid(double theWidth)
      Returns a solid stroke of the given width with round corners and ends.
      static java.awt.BasicStroke solid(double theWidth)
      Returns a solid stroke of the given width with square corners and ends.
      static void writeExternal(java.awt.BasicStroke theStroke, java.io.ObjectOutput out)
      Write the given BasicStroke object to the given object output stream.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • solid

        public static java.awt.BasicStroke solid(double theWidth)
        Returns a solid stroke of the given width with square corners and ends.
        Parameters:
        theWidth - Stroke width.
      • dotted

        public static java.awt.BasicStroke dotted(double theWidth)
        Returns a dotted stroke of the given width with square dots.
        Parameters:
        theWidth - Stroke width.
      • dashed

        public static java.awt.BasicStroke dashed(double theWidth)
        Returns a dashed stroke of the given width with square dashes. Each dash's length is three times the stroke width. The length of the gap between dashes equals the stroke width.
        Parameters:
        theWidth - Stroke width.
      • dashed

        public static java.awt.BasicStroke dashed(double theWidth,
                                                  double d,
                                                  double g)
        Returns a dashed stroke of the given width with square dashes. Each dash's length is d times the stroke width. The length of the gap between dashes equals g times the stroke width.
        Parameters:
        theWidth - Stroke width.
        d - Dash length in terms of stroke width.
        g - Gap length in terms of stroke width.
      • roundSolid

        public static java.awt.BasicStroke roundSolid(double theWidth)
        Returns a solid stroke of the given width with round corners and ends.
        Parameters:
        theWidth - Stroke width.
      • roundDotted

        public static java.awt.BasicStroke roundDotted(double theWidth)
        Returns a dotted stroke of the given width with round dots.
        Parameters:
        theWidth - Stroke width.
      • roundDashed

        public static java.awt.BasicStroke roundDashed(double theWidth)
        Returns a dashed stroke of the given width with rounded dashes. Each dash's length is three times the stroke width. The length of the gap between dashes equals the stroke width.
        Parameters:
        theWidth - Stroke width in points.
      • roundDashed

        public static java.awt.BasicStroke roundDashed(double theWidth,
                                                       double d,
                                                       double g)
        Returns a dashed stroke of the given width with rounded dashes. Each dash's length is d times the stroke width. The length of the gap between dashes equals g times the stroke width.
        Parameters:
        theWidth - Stroke width in points.
        d - Dash length in terms of stroke width.
        g - Gap length in terms of stroke width.
      • writeExternal

        public static void writeExternal(java.awt.BasicStroke theStroke,
                                         java.io.ObjectOutput out)
                                  throws java.io.IOException
        Write the given BasicStroke object to the given object output stream.
        Parameters:
        theStroke - Stroke.
        out - Object output stream.
        Throws:
        java.io.IOException - Thrown if an I/O error occurred.
      • readExternal

        public static java.awt.BasicStroke readExternal(java.io.ObjectInput in)
                                                 throws java.io.IOException,
                                                        java.lang.ClassNotFoundException
        Read a BasicStroke object from the given object input stream.
        Parameters:
        in - Object input stream.
        Returns:
        Stroke.
        Throws:
        java.io.IOException - Thrown if an I/O error occurred.
        java.lang.ClassNotFoundException - Thrown if a class needed to deserialize the stroke object could not be found.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.