| net.refractions.udig.printing.model.Connection
All known Subclasses: net.refractions.udig.printing.model.impl.ConnectionImpl,
Connection | public interface Connection extends Element(Code) | | 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.
author: rgould since: 0.6.0 |
disconnect | public void disconnect()(Code) | | Disconnects this connection from its source and target
|
getSource | public Box getSource()(Code) | | The Box returned represents a object that uses the target of the
connection somehow.
See Also: Box the Box that is the source of this connection |
getTarget | public Box getTarget()(Code) | | 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.
See Also: Box the Box that is the target of this connection |
isConnected | public boolean isConnected()(Code) | | true if this connection is actually connected, false otherwise |
reconnect | public void reconnect()(Code) | | Reconnects this connection to its target and source, as if it
was just created.
|
reconnect | public void reconnect(Box source, Box target)(Code) | | Reconnects this connection to a new source Box and a new target Box
this is the same as:
{
setSource(source);
setTarget(target);
reconnect();
}
Parameters: source - the Connection's new source Parameters: target - the Connection's new target |
|
|