|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCH.ifa.draw.standard.AbstractFigure
CH.ifa.draw.figures.PolyLineFigure
CH.ifa.draw.figures.LineFigure
public class LineFigure
A line figure.
Field Summary |
---|
Fields inherited from class CH.ifa.draw.figures.PolyLineFigure |
---|
ARROW_TIP_BOTH, ARROW_TIP_END, ARROW_TIP_NONE, ARROW_TIP_START, fEndDecoration, fFrameColor, fPoints, fStartDecoration |
Fields inherited from interface CH.ifa.draw.framework.Figure |
---|
POPUP_MENU |
Constructor Summary | |
---|---|
LineFigure()
Constructs a LineFigure with both start and end set to Point(0,0). |
Method Summary | |
---|---|
void |
basicDisplayBox(java.awt.Point origin,
java.awt.Point corner)
Sets the display box of a figure. |
java.awt.Point |
endPoint()
Gets a copy of the end point. |
void |
endPoint(int x,
int y)
Sets the end point. |
void |
setPoints(java.awt.Point start,
java.awt.Point end)
Sets the start and end point. |
java.awt.Point |
startPoint()
Gets a copy of the start point. |
void |
startPoint(int x,
int y)
Sets the start point. |
Methods inherited from class CH.ifa.draw.figures.PolyLineFigure |
---|
addPoint, basicMoveBy, connectorAt, containsPoint, displayBox, draw, drawLine, findSegment, getAttribute, getEndDecoration, getFrameColor, getStartDecoration, handles, insertPointAt, isEmpty, joinSegments, locator, pointAt, pointCount, points, read, removePointAt, setAttribute, setEndDecoration, setFrameColor, setPointAt, setStartDecoration, splitSegment, write |
Methods inherited from class CH.ifa.draw.standard.AbstractFigure |
---|
addFigureChangeListener, addToContainer, canConnect, center, changed, clone, connectedTextLocator, connectionInsets, connectorVisibility, decompose, displayBox, displayBox, figures, findFigureInside, includes, invalidate, listener, moveBy, release, removeFigureChangeListener, removeFromContainer, size, willChange |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineFigure()
Method Detail |
---|
public java.awt.Point startPoint()
public java.awt.Point endPoint()
public void startPoint(int x, int y)
public void endPoint(int x, int y)
public void setPoints(java.awt.Point start, java.awt.Point end)
public void basicDisplayBox(java.awt.Point origin, java.awt.Point corner)
AbstractFigure
basicDisplayBox
in interface Figure
basicDisplayBox
in class PolyLineFigure
origin
- the new origincorner
- the new cornerAbstractFigure.displayBox(java.awt.Point, java.awt.Point)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |