|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.standard.AbstractFigure
org.jhotdraw.figures.PolyLineFigure
org.jhotdraw.figures.LineFigure
public class LineFigure
A line figure.
Field Summary |
---|
Fields inherited from class org.jhotdraw.figures.PolyLineFigure |
---|
ARROW_TIP_BOTH, ARROW_TIP_END, ARROW_TIP_NONE, ARROW_TIP_START |
Fields inherited from interface org.jhotdraw.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 org.jhotdraw.figures.PolyLineFigure |
---|
addPoint, connectorAt, containsPoint, displayBox, draw, findSegment, getAttribute, getAttribute, getEndDecoration, getStartDecoration, handles, insertPointAt, isEmpty, joinSegments, locator, pointAt, pointCount, points, read, removePointAt, setAttribute, setAttribute, setEndDecoration, setPointAt, setStartDecoration, splitSegment, write |
Methods inherited from class org.jhotdraw.standard.AbstractFigure |
---|
addDependendFigure, addFigureChangeListener, addToContainer, canConnect, center, changed, clone, connectedTextLocator, connectionInsets, connectorVisibility, decompose, displayBox, displayBox, figures, findFigureInside, getDecoratedFigure, getDependendFigures, getTextHolder, getZValue, includes, invalidate, listener, moveBy, release, removeDependendFigure, removeFigureChangeListener, removeFromContainer, setZValue, size, visit, willChange |
Methods inherited from class java.lang.Object |
---|
equals, 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 |