|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.editor.autolayout.AutoLayoutPositionable
public class AutoLayoutPositionable
Base class for ale others AutoLayout* classes.
| Field Summary | |
|---|---|
static ExpandedHashMap |
autoLayoutPositionablesTable
HashMap which map SchemaObjects to AutoLayput* objects. |
static Schema |
currentSchema
|
protected Positionable |
myPositionableObj
Positionable object connected to this AutoLayoutPositionable. |
protected static int |
newObjectsClass
|
protected java.awt.Point |
pos
While doing algorithms iterations (method doLayout) objects position is stored in this variable and GUI isn't updated |
| Constructor Summary | |
|---|---|
AutoLayoutPositionable(Positionable positionableObject)
Creates a new instance of AutoLayoutPositionable |
|
| Method Summary | |
|---|---|
void |
doLayout()
Perform layout process on whole graph starting from this object. |
static AutoLayoutPositionable |
findAutoLayoutPositionableFor(Positionable positionable)
Find AutoLayout* object that represent SchemaObject. |
protected Drawable |
getDrawable()
|
java.lang.String |
getLabel()
Get the text used to label this SchemaObject. |
java.awt.Point |
getPosition()
|
static void |
initAutoLayoutPositionablesTable(Schema schema)
Initialize internal HashMap. |
boolean |
isHide()
Method return true when object is hidden. |
protected static int |
round(double x)
Convert double to int. |
void |
setPosition(int x,
int y)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static int newObjectsClass
protected java.awt.Point pos
public static Schema currentSchema
protected Positionable myPositionableObj
public static ExpandedHashMap autoLayoutPositionablesTable
findAutoLayoutPositionableFor(Positionable)| Constructor Detail |
|---|
public AutoLayoutPositionable(Positionable positionableObject)
| Method Detail |
|---|
public static AutoLayoutPositionable findAutoLayoutPositionableFor(Positionable positionable)
AutoLayout* objects represent SchemaObjects. To find AutoLayout* object that represent SchemaObject use this function. Important: after initAutoLayoutPositionablesTable() don't create new AutoLayout* objects (e.g. new AutoLayoutSpringObject(positionable)) because there will be two different object referencing one SchemaObject.
protected final Drawable getDrawable()
throws NotFoundException
NotFoundExceptionpublic static void initAutoLayoutPositionablesTable(Schema schema)
HashMap connect SchemaObjects with AutoLayout* objects.
schema - Initialize all object on this Schema. Parameter schema is
remembered in internal field currentSchema.findAutoLayoutPositionableFor(Positionable)public final java.lang.String getLabel()
public boolean isHide()
public void setPosition(int x,
int y)
public java.awt.Point getPosition()
protected static final int round(double x)
public void doLayout()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||