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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()voiddraw(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, trimToSizeMethods inherited from class com.dkt.graphics.elements.GFillableE
fill, getFillPaint, setFill, setFillPaintMethods inherited from class com.dkt.graphics.elements.GraphicE
getPaint, getStroke, setPaint, setStrokeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
GPath
Copy constructor- Parameters:
e-GPathto copy- Throws:
IllegalArgumentException- ifeisnull
-
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 isnullInvalidArgumentException- if the array size doesn't match
-
GPath
public GPath()Creates a new empty Path
-
-
Method Details
-
draw
Description copied from class:GraphicEDraws the component on the given graphics -
clone
- Specified by:
clonein classGFillableE
-