CH.ifa.draw.figures
Class LineFigure
- java.lang.Object
-
- CH.ifa.draw.standard.AbstractFigure
-
- CH.ifa.draw.figures.PolyLineFigure
-
- CH.ifa.draw.figures.LineFigure
-
public class LineFigure extends PolyLineFigure
A line figure.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class CH.ifa.draw.figures.PolyLineFigure
ARROW_TIP_BOTH, ARROW_TIP_END, ARROW_TIP_NONE, ARROW_TIP_START
-
Fields inherited from interface CH.ifa.draw.framework.Figure
POPUP_MENU
-
-
Constructor Summary
Constructors Constructor and Description LineFigure()Constructs a LineFigure with both start and end set to Point(0,0).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidbasicDisplayBox(java.awt.Point origin, java.awt.Point corner)Sets the display box of a figure.java.awt.PointendPoint()Gets a copy of the end point.voidendPoint(int x, int y)Sets the end point.voidsetPoints(java.awt.Point start, java.awt.Point end)Sets the start and end point.java.awt.PointstartPoint()Gets a copy of the start point.voidstartPoint(int x, int y)Sets the start point.-
Methods inherited from class CH.ifa.draw.figures.PolyLineFigure
addPoint, connectorAt, containsPoint, displayBox, draw, findSegment, getAttribute, getEndDecoration, getStartDecoration, handles, insertPointAt, isEmpty, joinSegments, locator, pointAt, pointCount, points, read, removePointAt, setAttribute, setEndDecoration, 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
-
-
-
-
Constructor Detail
-
LineFigure
public LineFigure()
Constructs a LineFigure with both start and end set to Point(0,0).
-
-
Method Detail
-
startPoint
public java.awt.Point startPoint()
Gets a copy of the start point.
-
endPoint
public java.awt.Point endPoint()
Gets a copy of the end point.
-
startPoint
public void startPoint(int x, int y)Sets the start point.
-
endPoint
public void endPoint(int x, int y)Sets the end point.
-
setPoints
public void setPoints(java.awt.Point start, java.awt.Point end)Sets the start and end point.
-
basicDisplayBox
public void basicDisplayBox(java.awt.Point origin, java.awt.Point corner)Description copied from class:AbstractFigureSets the display box of a figure. This is the method that subclassers override. Clients usually call displayBox.- Specified by:
basicDisplayBoxin interfaceFigure- Overrides:
basicDisplayBoxin classPolyLineFigure- Parameters:
origin- the new origincorner- the new corner- See Also:
AbstractFigure.displayBox(java.awt.Point, java.awt.Point)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG