Package com.dkt.graphics.elements
Class GPath
- java.lang.Object
-
- com.dkt.graphics.elements.GraphicE
-
- com.dkt.graphics.elements.GFillableE
-
- com.dkt.graphics.elements.GMultiPoint
-
- com.dkt.graphics.elements.GPath
-
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Iterable<GPoint>
public class GPath extends GMultiPoint
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GPath
clone()
void
draw(java.awt.Graphics2D g)
Draws the component on the given graphics-
Methods inherited from class com.dkt.graphics.elements.GFillableE
fill, getFillPaint, setFill, setFillPaint
-
Methods inherited from class com.dkt.graphics.elements.GMultiPoint
append, append, appendNR, clear, ensureCapacity, equals, getPointAt, getPoints, getShape, hashCode, indexOf, indexOf, indexOf, indexOf, isEmpty, iterator, remove, remove, remove, size, sortByX, traslate, trimToSize
-
-
-
-
Constructor Detail
-
GPath
public GPath(GPath e)
Copy constructor- Parameters:
e
-GPath
to copy- Throws:
java.lang.IllegalArgumentException
- ife
isnull
-
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 coordinatesys
- list of Y coordinates- Throws:
java.lang.IllegalArgumentException
- if either array isnull
InvalidArgumentException
- if the array size doesn't match
-
GPath
public GPath()
Creates a new empty Path
-
-