|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.upb.swt.epctools.model.Arc
public class Arc
This class represents an EPC arc
| Field Summary | |
|---|---|
int |
a_type
|
static int |
ANCHOR_BOTTOM
|
static int |
ANCHOR_LEFT
|
static int |
ANCHOR_NONE
|
static int |
ANCHOR_RIGHT
|
static int |
ANCHOR_TOP
|
private java.util.Vector |
m_bend_points
|
private EPC |
m_epc
|
private int |
m_folder_number
|
private int |
m_id
|
private ModelListenerList |
m_listener
|
private Node |
m_source
|
private int |
m_source_anchor_id
|
private Node |
m_target
|
private int |
m_target_anchor_id
|
ArcPart |
part
|
int |
r_type
|
static int |
TYPE_ANY
|
static int |
TYPE_FLOW
|
static int |
TYPE_INPUT
|
static int |
TYPE_OUTPUT
|
static int |
TYPE_RELATION
|
static int |
TYPE_ROLE
|
| Constructor Summary | |
|---|---|
Arc(EPC parent_epc,
Node source,
Node target,
int source_anchor_id,
int target_anchor_id)
Initialization. |
|
| Method Summary | |
|---|---|
void |
addListener(ModelListener obj)
This function adds a listener to the list of listeners. |
void |
addToNodes()
This function adds this Arc to all connected Nodes. |
void |
forwardMessage(int message)
This function forwards a message to all listeners. |
private static java.awt.Point |
getAnchorPosition(java.awt.Rectangle r,
java.awt.Point reference,
int id)
Returns the anchor position. |
java.util.Vector |
getBendPoints()
Returns a Vector of bend points. |
Arc |
getDistantArc()
This function scans parent or child Arcs and returns an Arc as far as possible from "this". |
Arc |
getDistantChild()
This function scans child Arcs and return a Arc as far as possible from "this". |
Arc |
getDistantParent()
This function scans parent Arcs and return an Arc as far as possible from "this". |
EPC |
getEPC()
Returns the parent EPC. |
int |
getFolders()
Returns number of process folders on this Arc. |
int |
getId()
Returns the Id of "this" Arc. |
static int |
getNearestAnchor(java.awt.Rectangle r,
java.awt.Point p)
Returns the nearest anchor to a given point. |
Node |
getSource()
Returns the source node of this connection. |
int |
getSourceAnchorId()
Returns the anchor id of "this" Arc's source point. |
java.awt.Point |
getSourceAnchorPosition()
Returns the anchor position to the source Node. |
Node |
getTarget()
Returns the target Node. |
int |
getTargetAnchorId()
Returns the anchor id of this Arc's target point. |
java.awt.Point |
getTargetAnchorPosition()
Returns the anchor position to the target Node. |
void |
removeFromNodes()
This function removes "this" Arc from all connected Nodes. |
void |
removeListener(ModelListener obj)
This function removes a listener. |
void |
setFolders(int i)
This function specifies the number of folders. |
void |
setId(int id)
This function specifies the Id of "this" Arc. |
void |
setSource(Node source_node)
This function specifies a source Node and registers "this" Arc in the Node. |
void |
setSourceAnchorId(int id)
This function specifies the anchor id of "this" Arc's source point |
void |
setTarget(Node target_node)
This function specifies a target Node and registers "this" Arc in the Node. |
void |
setTargetAnchorId(int id)
This function specifies the anchor id of "this" Arc's target point. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ANCHOR_NONE
public static final int ANCHOR_LEFT
public static final int ANCHOR_RIGHT
public static final int ANCHOR_BOTTOM
public static final int ANCHOR_TOP
private int m_id
private int m_folder_number
private Node m_source
private Node m_target
private EPC m_epc
private java.util.Vector m_bend_points
private int m_source_anchor_id
private int m_target_anchor_id
public static final int TYPE_FLOW
public static final int TYPE_RELATION
public int a_type
public static final int TYPE_ROLE
public static final int TYPE_INPUT
public static final int TYPE_OUTPUT
public static final int TYPE_ANY
public int r_type
private ModelListenerList m_listener
public ArcPart part
| Constructor Detail |
|---|
public Arc(EPC parent_epc,
Node source,
Node target,
int source_anchor_id,
int target_anchor_id)
| Method Detail |
|---|
public EPC getEPC()
public int getId()
public void setId(int id)
public void removeFromNodes()
public void addToNodes()
public java.util.Vector getBendPoints()
public Node getSource()
public void setSource(Node source_node)
public void setTarget(Node target_node)
public void addListener(ModelListener obj)
public void forwardMessage(int message)
public void removeListener(ModelListener obj)
public Node getTarget()
public int getFolders()
public void setFolders(int i)
public int getSourceAnchorId()
public void setSourceAnchorId(int id)
public void setTargetAnchorId(int id)
public int getTargetAnchorId()
public java.awt.Point getSourceAnchorPosition()
public java.awt.Point getTargetAnchorPosition()
public Arc getDistantParent()
public Arc getDistantChild()
public Arc getDistantArc()
private static java.awt.Point getAnchorPosition(java.awt.Rectangle r,
java.awt.Point reference,
int id)
r - Size and position of the node bounding boxid - anchor id
public static int getNearestAnchor(java.awt.Rectangle r,
java.awt.Point p)
r - Size and position of the Node bounding boxp -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||