Class GPath

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Iterable<GPoint>

    public class GPath
    extends GMultiPoint
    • Constructor Detail

      • GPath

        public GPath​(GPath e)
        Copy constructor
        Parameters:
        e - GPath to copy
        Throws:
        java.lang.IllegalArgumentException - if e is null
      • GPath

        public GPath​(int size)
        Parameters:
        size - initial reserved size
        Throws:
        java.lang.NegativeArraySizeException - if size is less than zero
      • GPath

        public GPath​(int[] xs,
                     int[] ys)
        Parameters:
        xs - list of X coordinates
        ys - list of Y coordinates
        Throws:
        java.lang.IllegalArgumentException - if either array is null
        InvalidArgumentException - if the array size doesn't match
      • GPath

        public GPath()
        Creates a new empty Path
    • Method Detail

      • draw

        public void draw​(java.awt.Graphics2D g)
        Description copied from class: GraphicE
        Draws the component on the given graphics
        Specified by:
        draw in class GraphicE
        Parameters:
        g - where to draw