|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eu.sk.zero.acd.Component | +--org.eu.sk.zero.acd.Area
Area - relation between several nodes.
Field Summary |
Fields inherited from class org.eu.sk.zero.acd.Component |
id, type |
Constructor Summary | |
Area(org.eu.sk.zero.acd.ComponentType t)
Constructs a new empty area. |
|
Area(org.eu.sk.zero.acd.ComponentType t,
int[] xpoints,
int[] ypoints,
int npoints)
Constructs a new area with the given boundary points. |
Method Summary | |
void |
addPoint(int x,
int y)
Adds a new boundary point. |
void |
draw(Graphics2D g)
Draws the area using the given Graphics object. |
protected boolean |
farEnough(int a,
int x,
int y)
|
Polygon |
getPolygon()
Returns the boundary polygon. |
protected boolean |
isInLine(int a,
int b,
int x,
int y)
|
protected boolean |
isInLine(int a,
int b,
int x,
int y,
boolean sectionOnly)
|
void |
moveOrMergePoint(int n,
int x,
int y)
Moves a point elsewhere. |
void |
movePoint(int n,
int x,
int y)
Moves a point elsewhere unconditionally. |
protected void |
removePoint(int n)
Removes a point. |
Methods inherited from class org.eu.sk.zero.acd.Component |
addValue, deselect, getId, getType, hide, isError, isHidden, isSelected, select, setError, show, toString, value, value, valueIterator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Area(org.eu.sk.zero.acd.ComponentType t, int[] xpoints, int[] ypoints, int npoints)
public Area(org.eu.sk.zero.acd.ComponentType t)
Method Detail |
public void addPoint(int x, int y)
public void moveOrMergePoint(int n, int x, int y)
public void movePoint(int n, int x, int y)
protected void removePoint(int n)
protected boolean farEnough(int a, int x, int y)
protected boolean isInLine(int a, int b, int x, int y)
protected boolean isInLine(int a, int b, int x, int y, boolean sectionOnly)
public void draw(Graphics2D g)
public Polygon getPolygon()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |