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
- Author:
- Federico Vera <[email protected]>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
void
draw
(Graphics2D g) Draws the component on the given graphicsMethods 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
Methods inherited from class com.dkt.graphics.elements.GFillableE
fill, getFillPaint, setFill, setFillPaint
Methods inherited from class com.dkt.graphics.elements.GraphicE
getPaint, getStroke, setPaint, setStroke
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
GPath
Copy constructor- Parameters:
e
-GPath
to copy- Throws:
IllegalArgumentException
- ife
isnull
-
GPath
public GPath(int size) - Parameters:
size
- initial reserved size- Throws:
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:
IllegalArgumentException
- if either array isnull
InvalidArgumentException
- if the array size doesn't match
-
GPath
public GPath()Creates a new empty Path
-
-
Method Details
-
draw
Description copied from class:GraphicE
Draws the component on the given graphics -
clone
- Specified by:
clone
in classGFillableE
-