|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.router.BusDescriptor
public class BusDescriptor
A descriptor for bus-related information to be associated with an edge. It consists of a bus ID defining the bus of the associated edge, two optional edge group IDs for specifying the edge grouping at the source and target side, respectively, and an optional boolean flag to mark the edge as fixed.
Every object exceptnull can be used as valid bus ID. Every edge of ID null forms a group
of its own. Also, every object except null can be used as valid edge group ID. If there is no group ID
defined for an edge or if null is set, a default group ID is used. Therefore, all such edges ending at
the same node belong to the same group.
| Constructor Summary | |
|---|---|
BusDescriptor(Object busID)
Creates a new instance of BusDescriptor for the specified bus ID which is marked as not fixed and uses
the default edge group IDs. |
|
BusDescriptor(Object busID,
boolean fixed)
Creates a new instance of BusDescriptor for the specified parameters and default group IDs. |
|
BusDescriptor(Object busID,
boolean fixed,
Object sourceGroupID,
Object targetGroupID)
Creates a new instance of BusDescriptor for the specified parameters. |
|
BusDescriptor(Object busID,
Object sourceGroupID,
Object targetGroupID)
Creates a new instance of BusDescriptor for the specified parameters and marks it as not fixed. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
Object |
getID()
Returns the bus ID. |
Object |
getSourceGroupID()
Returns the group ID for the source side of the edge. |
Object |
getTargetGroupID()
Returns the group ID for the target side of the edge. |
int |
hashCode()
|
boolean |
isFixed()
Returns whether the associated edge is fixed or not. |
void |
setFixed(boolean fixed)
Sets whether the associated edge is fixed or not. |
void |
setID(Object busID)
Sets the bus ID. |
void |
setSourceGroupID(Object sourceGroupID)
Sets the new group ID for the source side of the edge. |
void |
setTargetGroupID(Object targetGroupID)
Sets the new group ID for the target side of the edge. |
String |
toString()
Returns a string consisting of the bus ID, the fixed flag, and both group IDs. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BusDescriptor(Object busID)
BusDescriptor for the specified bus ID which is marked as not fixed and uses
the default edge group IDs.
busID - the ID of the bus the associated edge belongs to
public BusDescriptor(Object busID,
Object sourceGroupID,
Object targetGroupID)
BusDescriptor for the specified parameters and marks it as not fixed.
busID - the ID of the bus the associated edge belongs tosourceGroupID - the group ID of the source sidetargetGroupID - the group ID of the target side
public BusDescriptor(Object busID,
boolean fixed)
BusDescriptor for the specified parameters and default group IDs.
busID - the ID of the bus the associated edge belongs tofixed - whether the associated edge is fixed or not
public BusDescriptor(Object busID,
boolean fixed,
Object sourceGroupID,
Object targetGroupID)
BusDescriptor for the specified parameters.
busID - the ID of the bus the associated edge belongs tofixed - whether the associated edge is fixed or notsourceGroupID - the group ID of the source sidetargetGroupID - the group ID of the target side| Method Detail |
|---|
public boolean equals(Object obj)
equals in class Objectobj - the reference object with which to compare.
true if all corresponding parameters are equal; false otherwise.public int hashCode()
hashCode in class Objectpublic Object getID()
public void setID(Object busID)
busID - the bus IDpublic Object getSourceGroupID()
public void setSourceGroupID(Object sourceGroupID)
sourceGroupID - the group ID to setpublic Object getTargetGroupID()
public void setTargetGroupID(Object targetGroupID)
targetGroupID - the group ID to setpublic boolean isFixed()
true if the edge is fixedpublic void setFixed(boolean fixed)
fixed - whether the associated edge is fixed or notpublic String toString()
toString in class Object
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||