|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.geometry.PointList
org.eclipse.gmf.runtime.draw2d.ui.geometry.PrecisionPointList
public class PrecisionPointList
Class implementing a list of PrecisionPoint
similarly to
PointList
class.
Constructor Summary | |
---|---|
PrecisionPointList()
Constructs an empty PrecisionPointList. |
|
PrecisionPointList(double[] points)
Constructs a PointList with the given points. |
|
PrecisionPointList(int size)
Constructs a PrecisionPointList with initial capacity size, but no points. |
|
PrecisionPointList(PointList pointList)
|
Method Summary | |
---|---|
void |
addAll(PointList source)
|
void |
addAll(PrecisionPointList source)
Appends all of the given points to this PrecisionPointList. |
void |
addPoint(Point p)
|
void |
addPrecisionPoint(double x,
double y)
Adds the input point values to this PointList. |
Rectangle |
getBounds()
|
PrecisionPointList |
getCopy()
|
Point |
getLastPoint()
|
Point |
getMidpoint()
|
Point |
getPoint(int index)
|
Point |
getPoint(Point p,
int index)
|
void |
insertPoint(Point p,
int index)
|
void |
performScale(double factor)
|
void |
performTranslate(int dx,
int dy)
|
void |
removeAllPoints()
|
Point |
removePoint(int index)
|
void |
reverse()
|
void |
setPoint(Point pt,
int index)
|
void |
setSize(int newSize)
|
int |
size()
|
double[] |
toDoubleArray()
Returns the contents of this PrecisionPointList as a double array. |
int[] |
toIntArray()
|
void |
translate(int x,
int y)
|
void |
transpose()
|
Methods inherited from class org.eclipse.draw2d.geometry.PointList |
---|
addPoint, getFirstPoint, intersects, translate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrecisionPointList()
public PrecisionPointList(double[] points)
points
- double array where two consecutive double form the coordinates of a pointpublic PrecisionPointList(int size)
size
- Number of points to hold.public PrecisionPointList(PointList pointList)
Method Detail |
---|
public void addAll(PrecisionPointList source)
source
- the source PrecisionPointlistpublic void addAll(PointList source)
addAll
in class PointList
public void addPoint(Point p)
addPoint
in class PointList
public void addPrecisionPoint(double x, double y)
x
- X value of a point to addy
- Y value of a point to addpublic Rectangle getBounds()
getBounds
in class PointList
public PrecisionPointList getCopy()
getCopy
in class PointList
public Point getLastPoint()
getLastPoint
in class PointList
public Point getMidpoint()
getMidpoint
in class PointList
public Point getPoint(int index)
getPoint
in class PointList
public Point getPoint(Point p, int index)
getPoint
in class PointList
public void insertPoint(Point p, int index)
insertPoint
in class PointList
public void performScale(double factor)
performScale
in interface Translatable
performScale
in class PointList
public void performTranslate(int dx, int dy)
performTranslate
in interface Translatable
performTranslate
in class PointList
public void removeAllPoints()
removeAllPoints
in class PointList
public Point removePoint(int index)
removePoint
in class PointList
public void reverse()
reverse
in class PointList
public void setPoint(Point pt, int index)
setPoint
in class PointList
public void setSize(int newSize)
setSize
in class PointList
public int size()
size
in class PointList
public double[] toDoubleArray()
public int[] toIntArray()
toIntArray
in class PointList
public void translate(int x, int y)
translate
in class PointList
public void transpose()
transpose
in class PointList
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.