|
JHotDraw 7.0.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionFigure
Figures to connect Connectors provided by Figures. A ConnectionFigure knows its start and end Connector. It uses the Connectors to locate its connection points.
A ConnectionFigure can have multiple bezier segments. It provides operations to split and join bezier segments.
| Method Summary | |
|---|---|
boolean |
canConnect(Figure start)
Checks if this ConnectionFigure can be attached to the provided start figure. |
boolean |
canConnect(Figure start,
Figure end)
Checks if two figures can be connected using this ConnectionFigure. |
boolean |
connectsSame(ConnectionFigure other)
Checks if the ConnectionFigure connects the same figures. |
Connector |
getEndConnector()
Gets the end Connector. |
Figure |
getEndFigure()
Gets the end figure of the connection. |
java.awt.geom.Point2D.Double |
getEndPoint()
Gets the end point. |
Liner |
getLiner()
Get a Liner object which encapsulated a lineout algorithm for this figure. |
java.awt.geom.Point2D.Double |
getPoint(int index)
Returns the specified point. |
int |
getPointCount()
Gets the point count. |
Connector |
getStartConnector()
Gets the start Connector. |
Figure |
getStartFigure()
Gets the start figure of the connection. |
java.awt.geom.Point2D.Double |
getStartPoint()
Gets the start point. |
void |
lineout()
A lineout algorithm is used to define how the child components should be laid out in relation to each other. |
void |
setEndConnector(Connector end)
Sets the end Connector of the connection. |
void |
setEndPoint(java.awt.geom.Point2D.Double p)
Sets the end point. |
void |
setLiner(Liner newValue)
Set a Liner object which encapsulated a lineout algorithm for this figure. |
void |
setPoint(int index,
java.awt.geom.Point2D.Double p)
Sets the specified point. |
void |
setStartConnector(Connector start)
Sets the start Connector of the connection. |
void |
setStartPoint(java.awt.geom.Point2D.Double p)
Sets the start point. |
void |
updateConnection()
Updates the connection. |
| Methods inherited from interface org.jhotdraw.xml.DOMStorable |
|---|
read, write |
| Method Detail |
|---|
void setStartConnector(Connector start)
start - the start figure of the connectionConnector getStartConnector()
void setEndConnector(Connector end)
end - the end figure of the connectionConnector getEndConnector()
void updateConnection()
boolean canConnect(Figure start,
Figure end)
boolean canConnect(Figure start)
boolean connectsSame(ConnectionFigure other)
void setStartPoint(java.awt.geom.Point2D.Double p)
void setEndPoint(java.awt.geom.Point2D.Double p)
void setPoint(int index,
java.awt.geom.Point2D.Double p)
int getPointCount()
java.awt.geom.Point2D.Double getPoint(int index)
java.awt.geom.Point2D.Double getStartPoint()
getStartPoint in interface FigureFigure.basicSetBounds(java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Double)java.awt.geom.Point2D.Double getEndPoint()
getEndPoint in interface FigureFigure.basicSetBounds(java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Double)Figure getStartFigure()
Figure getEndFigure()
Liner getLiner()
void lineout()
void setLiner(Liner newValue)
newValue - encapsulation of a lineout algorithm.
|
Copyright 1996-2006 © JHotDraw.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||