com.mindfusion.diagramming.jlayout
Class LayoutRules

java.lang.Object
  extended by com.mindfusion.diagramming.jlayout.LayoutRules

public class LayoutRules
extends java.lang.Object

Summary description for LayoutRules.


Constructor Summary
LayoutRules()
          Initializes a new instance of the LayoutRules class.
 
Method Summary
 boolean addLayoutRule(java.lang.Object Key, java.lang.Object Value)
          Adds or sets a new rule, depending on if the rule with key - Key already exists or no;
 boolean AddLayoutRule(java.lang.Object Object1, java.lang.Object Object2, java.lang.Object Value)
          Builds a key as a pair of the objects Object1 and Object2 and adds or sets a new rule, with this key anf value - Value.
 java.lang.Object buildKey(java.lang.Object obj1, java.lang.Object obj2)
          Builds a key - object for the new rule, as a pair of two objects: obj1 and obj2
 boolean getLayoutRule(java.lang.Object Key, ByRef<java.lang.Object> Value)
          If there is rule with key - Key initializes - Value otherwise fails;
 boolean validateRules(java.util.ArrayList KeyList)
          Checks if there is a rule for each key in KeyList.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutRules

public LayoutRules()
Initializes a new instance of the LayoutRules class.

Method Detail

getLayoutRule

public boolean getLayoutRule(java.lang.Object Key,
                             ByRef<java.lang.Object> Value)
If there is rule with key - Key initializes - Value otherwise fails;


addLayoutRule

public boolean addLayoutRule(java.lang.Object Key,
                             java.lang.Object Value)
Adds or sets a new rule, depending on if the rule with key - Key already exists or no;


AddLayoutRule

public boolean AddLayoutRule(java.lang.Object Object1,
                             java.lang.Object Object2,
                             java.lang.Object Value)
Builds a key as a pair of the objects Object1 and Object2 and adds or sets a new rule, with this key anf value - Value.


buildKey

public java.lang.Object buildKey(java.lang.Object obj1,
                                 java.lang.Object obj2)
Builds a key - object for the new rule, as a pair of two objects: obj1 and obj2


validateRules

public boolean validateRules(java.util.ArrayList KeyList)
Checks if there is a rule for each key in KeyList.