|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Connection
A Connection represents some sort of relation between two Boxes. For example, a scalebar needs to be related to a map in order to draw itself properly. A Connection can be used to visualize this relation in the PageEditor.
Method Summary | |
---|---|
void |
disconnect()
Disconnects this connection from its source and target |
Box |
getSource()
The Box returned represents a object that uses the target of the connection somehow. |
Box |
getTarget()
This represents a link between a Box and this class. |
boolean |
isConnected()
|
void |
reconnect()
Reconnects this connection to its target and source, as if it was just created. |
void |
reconnect(Box source,
Box target)
Reconnects this connection to a new source Box and a new target Box this is the same as: |
void |
setConnected(boolean value)
Sets the value of the ' Connected ' attribute. |
void |
setSource(Box value)
Sets the value of the ' Source ' reference. |
void |
setTarget(Box value)
Sets the value of the ' Target ' reference. |
Methods inherited from interface net.refractions.udig.printing.model.Element |
---|
getLocation, getSize, setLocation, setSize |
Method Detail |
---|
boolean isConnected()
void setConnected(boolean value)
Connected
' attribute.
Sets the connected state of this connection to the value provided
value
- the new value of the 'Connected' attribute.isConnected()
Box getSource()
Box
void setSource(Box value)
Source
' reference.
Sets this connection's source Box
This will affect the connection by notifying any listeners of the change.
value
- the new value of the 'Source' reference.getSource()
Box getTarget()
Box
void setTarget(Box value)
Target
' reference.
Sets this connection's source Box
This represents a link between a Box and this class. The target of a
connection is often used by the source to retrieve information, or
maybe for manipulation.
value
- the new value of the 'Target' reference.getTarget()
void disconnect()
void reconnect()
void reconnect(Box source, Box target)
{ setSource(source); setTarget(target); reconnect(); }
source
- the Connection's new sourcetarget
- the Connection's new target
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |