|
|||||||||
| 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
uk.ac.ic.doc.automed.editor.autolayout.AutoLayoutSchemaObject
public class AutoLayoutSchemaObject
| Field Summary | |
|---|---|
protected java.awt.Point |
boundsCorrection
|
protected static ExpandedArrayList |
myGraph
|
| Fields inherited from class uk.ac.ic.doc.automed.editor.autolayout.AutoLayoutPositionable |
|---|
autoLayoutPositionablesTable, currentSchema, myPositionableObj, newObjectsClass, pos |
| Constructor Summary | |
|---|---|
AutoLayoutSchemaObject(Positionable positionableObject)
Creates a new instance of AutoLayoutPositionableect |
|
| Method Summary | |
|---|---|
java.awt.Point |
getAbsolutePosition()
|
protected AutoLayoutSchemaObject[] |
getAllObjInSchema()
|
protected int |
getConstructClass()
Returns the class of the construct. |
protected AutoLayoutSchemaObject[] |
getDependentAutoLayoutPositionables()
Return all AutoLayoutSchemaObject which have a reference to this AutoLayout* in their scheme. |
protected AutoLayoutSchemaObject[] |
getDependentAutoLayoutPositionables(int constructClass)
Return AutoLayoutSchemaObject of a particular Construct which have a reference to this AutoLayout* object in their scheme. |
java.awt.Rectangle |
getFutureBounds()
|
protected java.awt.Rectangle |
getFutureSchemaBounds()
|
AutoLayoutSchemaObject |
getObjectBetweenMeAnd(AutoLayoutSchemaObject obj)
Return object which connect this and obj. |
protected AutoLayoutSchemaObject[] |
getReferencedAutoLayoutPositionables()
Returns the array of AutoLayoutSchemaObject that are referenced directly or indirectly by this AutoLayout* . |
protected AutoLayoutSchemaObject[] |
getSchemaObjectsToLayout()
Same as calling getSchemaObjectsToLayout(null) |
protected AutoLayoutSchemaObject[] |
getSchemaObjectsToLayout(AutoLayoutSchemaObject butIgnoreMe)
Get array of objects to layout connected to this object. |
protected boolean |
hasChild(AutoLayoutPositionable u)
Function return true if array returned by getSchemaObjectsToLayout() contain u. |
static void |
initAutoLayoutPositionablesTable(Schema schema)
|
protected void |
initializeMyGraph(ExpandedArrayList myGraph)
|
boolean |
isDependent()
|
boolean |
isOnCurrentSchema()
Detect whether the SchemaObject object connected to this AutoLayout* is present on the current Schema. |
void |
setAbsolutePosition(int x,
int y)
|
void |
setFinalPosition()
Set position in Automed GUI. |
| Methods inherited from class uk.ac.ic.doc.automed.editor.autolayout.AutoLayoutPositionable |
|---|
doLayout, findAutoLayoutPositionableFor, getDrawable, getLabel, getPosition, isHide, round, setPosition |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.awt.Point boundsCorrection
protected static ExpandedArrayList myGraph
| Constructor Detail |
|---|
public AutoLayoutSchemaObject(Positionable positionableObject)
| Method Detail |
|---|
protected AutoLayoutSchemaObject[] getSchemaObjectsToLayout()
protected AutoLayoutSchemaObject[] getSchemaObjectsToLayout(AutoLayoutSchemaObject butIgnoreMe)
Instead of getDependentAutoLayoutPositionables() or getReferencedAutoLayoutPositionables() this function returns only objects to layout (e.g. it won't return object that is in hide state or which has been layouted already).
butIgnoreMe - Ignore this object and don.t put it in returned array.
If null function return all objects to layout.
protected AutoLayoutSchemaObject[] getDependentAutoLayoutPositionables()
protected AutoLayoutSchemaObject[] getDependentAutoLayoutPositionables(int constructClass)
protected AutoLayoutSchemaObject[] getReferencedAutoLayoutPositionables()
protected int getConstructClass()
public boolean isOnCurrentSchema()
AutoLayoutPositionable.initAutoLayoutPositionablesTable(Schema)public static void initAutoLayoutPositionablesTable(Schema schema)
public AutoLayoutSchemaObject getObjectBetweenMeAnd(AutoLayoutSchemaObject obj)
public void setAbsolutePosition(int x,
int y)
public java.awt.Point getAbsolutePosition()
protected AutoLayoutSchemaObject[] getAllObjInSchema()
public java.awt.Rectangle getFutureBounds()
protected java.awt.Rectangle getFutureSchemaBounds()
protected boolean hasChild(AutoLayoutPositionable u)
AutoLayoutPositionable#getSchemaObjectsToLayoutprotected void initializeMyGraph(ExpandedArrayList myGraph)
public void setFinalPosition()
While doing algorithms iterations (method doLayout) objects position is stored in internal variable and GUI isn't updated. To update Automed GUI use this function.
public boolean isDependent()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||