|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Rule objects are the preferred way of defining the capabilities
and interactive behavior of VisualGraph elements. A
Rule can, for example, be used to impose a limit on the number
of incoming connections to a certain type of VisualNode or
even specify that certain visual edges are not detachable. These
customizations provide the flexibility that is required to use the GraphAPI
in a broad variety of applications.
Every Rule has a name that is unique in a
RuleRegistry
instance. Once retrieved, the Rule name is then assigned to the
elements of a VisualGraph object, whereby a global rule, the
so-called GraphRule,
is assigned to the top-level VisualGraphView object itself.
Each visual object subsequently references the name of the rule it is
associated with and automatically checks the rule for compliance prior to
executing most of its runtime operations.
RuleRegistry| Method Summary | |
Rule |
deepCopy()
Returns a deep copy of the rule. |
java.lang.String |
getDescription()
Return a description of this rule. |
java.lang.String |
getName()
Returns the name of the rule. |
| Method Detail |
public java.lang.String getName()
public java.lang.String getDescription()
public Rule deepCopy()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||