|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Polygon
drvgraph.j2d.Naf
public class Naf
Represents the negation-as-failure.
It is represented by a triangular graph element, which accepts "incoming" and
"outgoing" connections. The former are always (positive) class patterns and the
latter are always rule circles.
| Field Summary |
|---|
| Fields inherited from class java.awt.Polygon |
|---|
bounds, npoints, xpoints, ypoints |
| Constructor Summary | |
|---|---|
Naf()
Constructs a new Naf element. |
|
| Method Summary | |
|---|---|
java.awt.Point |
getEastPoint()
Gets the outgoing connection point. |
java.awt.Point |
getWestPoint()
Gets the incoming connection point. |
int |
getX()
Gets the x coordinate of the naf triangle. |
int |
getY()
Gets the y coordinate of the naf triangle. |
boolean |
isSelected()
Checks if the naf triangle is selected. |
void |
paint(java.awt.Graphics g)
Draws the naf triangle. |
void |
setEastPoint(java.awt.Point eastPoint)
Sets the outgoing connection point. |
void |
setSelected(boolean b)
Sets the "selected" status of the naf triangle. |
void |
setWestPoint(java.awt.Point westPoint)
Sets the incoming connection point. |
void |
setX(int x)
Sets the x coordinate of the naf triangle. |
void |
setY(int y)
Sets the y coordinate of the naf triangle. |
void |
translate(int dx,
int dy)
Moves the naf triangle by dx pixels in the x-axis and dy pixels in the y-axis. |
| Methods inherited from class java.awt.Polygon |
|---|
addPoint, contains, contains, contains, contains, contains, contains, getBoundingBox, getBounds, getBounds2D, getPathIterator, getPathIterator, inside, intersects, intersects, invalidate, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Naf()
| Method Detail |
|---|
public void setSelected(boolean b)
b - the "selected" status flag (true|false)public boolean isSelected()
public void translate(int dx,
int dy)
translate in class java.awt.Polygondx - the number of pixels to move the triangle in the x-axisdy - the number of pixels to move the triangle in the y-axispublic void paint(java.awt.Graphics g)
g - the Graphics component that draws the elementGraphicspublic java.awt.Point getEastPoint()
public void setEastPoint(java.awt.Point eastPoint)
eastPoint - the designated outgoing connection pointpublic java.awt.Point getWestPoint()
public void setWestPoint(java.awt.Point westPoint)
westPoint - the designated incoming connection pointpublic int getX()
public void setX(int x)
x - the specified x coordinate of the naf trianglepublic int getY()
public void setY(int y)
y - the specified y coordinate of the naf triangle.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||