|
MEOopArray objectReprs (MEOop receiver)
Returns an MEOopArray of the object representations in the
receiver argument, a diagram MEOop. The result is in Z-order, backmost
first.
|
|
MEOopArray bindingReprs (MEOop receiver)
Returns an MEOopArray of the binding representations in the
receiver argument, a diagram MEOop. The result is in Z-order, backmost
first.
|
|
MEAny grid (MEOop receiver)
Returns an MEAny containing a point specifying the size of the
grid in the receiver argument, a diagram MEOop.
|
|
MENull setGrid (MEOop receiver, MEAny grid)
Sets the size of the grid in the receiver argument, a diagram
MEOop. The value is an MEAny containing a point specifying the size of the
grid.
|
|
boolean displayGrid (MEOop receiver)
Returns a Boolean indicating whether the grid is displayed in
the receiver argument, a diagram MEOop.
|
|
MENull setDisplayGrid (MEOop receiver, boolean displayGrid)
Sets a Boolean indicating whether the grid is displayed in the
receiver argument, a diagram MEOop.
|
|
boolean useGrid (MEOop receiver)
Returns a Boolean indicating whether Snap to Grid is on in the
receiver argument, a diagram MEOop.
|
|
MENull setUseGrid (MEOop receiver, boolean useGrid)
Sets a Boolean indicating whether Snap to Grid is on in the
receiver argument, a diagram MEOop.
|
|
MEAny place (MEOop receiver)
Returns the position of the receiver, an MEOop for an object
or binding representation in a diagram argument. The result returned is an MEAny
containing a point, where 1 represents 1 pixel at 100% zoom.
|
|
MENull setPlace (MEOop receiver, MEAny place)
Sets the position of the receiver argument, an MEOop for an
object or binding representation in a diagram. The value is an MEAny containing
a point, where 1 represents 1 pixel at 100% zoom.
|
|
MEAny scale (MEOop receiver)
Returns the scale of the receiver argument, an MEOop for an
object or binding representation in a diagram. The result returned is an MEAny
containing a point, where 1 represents 100%.
|
|
MENull setScale (MEOop receiver, MEAny scale)
Sets the scale of the receiver argument, an MEOop for an
object or binding representation in a diagram. The value is an MEAny containing
a point, where 1 represents 100%.
|
|
boolean isStraight (MEOop receiver)
Returns a Boolean indicating whether the receiver argument, a
diagram binding representation MEOop, is straight.
|
|
MENull setIsStraight (MEOop receiver, boolean isStraight)
Sets a Boolean indicating whether the receiver argument, a
diagram binding representation MEOop, is straight.
|
|
MENull straighten (MEOop receiver)
Straightens the receiver argument, a diagram binding
representation MEOop. The receiver must be a binary binding. All breakpoints and
target point offsets are removed from all connection representations, and the
relationship position is set to the midpoint of the role lines.
|
|
MENull layout (MEOop receiver, METype layoutRelationship, METype fromRole,
METype toRole, string direction, boolean manhattan)
Creates a new diagram representation with automatic layout for
the graph denoted by the first MEOop argument. The auto-layout algorithm assumes
a directed acyclic graph (DAG) as its input and therefore the user must provide
the API call with rules according to which the DAG is built. Therefore, the
following argument, relationship, defines the relationship type which instances
appear as edges in the DAG. The two following arguments, parentRole and
childRole, define the directivity according to which the DAG is build. The fifth
argument, direction, provides the information how the layout is distributed and
can have either 'vertical' or 'horizontal' as values. The final argument,
manhattan, toggles the usage of orthogonal or diagonal lines between DAG nodes.
If the layout algorithm encounters cycle in the graph, it will proceed
automatically with a loose tree (as if the cycle had been broken).
|
|
MEOop addNewObjectRepFor (MEOop receiver, MEOop
addNewObjectRepFor, int beforeIndex, MEAny place)
Adds a new object representation to the receiver argument, a
diagram MEOop. The second argument is the MEOop of the object to represent. The
third argument is a 1-based integer before which to insert the new binding
representation in the Z-ordered collection of binding representations, 1 being
the backmost element (use 0 to place the object at the top of the Z-order). The
fourth argument is an MEAny containing the point position of the new object
representation. The return value is the MEOop of the new object
representation.
|
|
MEOop addNewBindingRepFor (MEOop receiver, MEOop addNewBindingRepFor, int
beforeIndex, MEAny place)
Adds a new binding representation to the receiver argument, a
diagram MEOop. The second argument is the MEOop of the binding to represent. The
third argument is a 1-based integer before which to insert the new binding
representation in the Z-ordered collection of binding representations, 1 being
the backmost element (use 0 to place the object at the top of the Z-order). The
fourth argument is an MEAny containg the point position of the relationship
representation. The return value is the MEOop of the new binding
representation.
|
|
MEAnyArray connectionReprIds (MEOop receiver)
Returns an MEAnyArray containing the integer ids of the
connections represented in the receiver argument, a diagram binding
representation MEOop.
|
|
MEAnyArray breakpoints (MEOop receiver, int breakpointsWithId)
Returns an MEAnyArray containing the breakpoints of a role
representation in the receiver argument, a diagram binding representation MEOop.
The second argument is the integer id of the connection within this
binding.
|
|
MENull setBreakpoints (MEOop receiver, MEAnyArray setBreakpoints, int
id)
Sets the breakpoints of a role representation in the receiver
argument, a diagram binding representation MEOop. The second argument is an
MEAnyArray containing the coordinates of the breakpoints. The third argument is
the integer id of the connection within this binding. This operation also flags
the binding repr non-straight, which is needed after setting the breakpoints in
order to ensure proper behaviour.
|
|
MENull addPoint (MEOop receiver, MEAny addPoint, int index, int id)
Adds a new breakpoint to a role representation in the receiver
argument, a diagram binding representation MEOop. The second argument is an
MEAny containing the breakpoint coordinate. The third argument is the 1-based
integer index before which to insert the new breakpoint, counting from the
object. The fourth argument is the integer id of the connection within this
binding.
|
|
MENull putPointAtIndex (MEOop receiver, int at, MEAny putPoint, int id)
Moves the position of a breakpoint in a role representation in
the receiver argument, a diagram binding representation MEOop. The second
argument is the 1-based integer index of the breakpoint, counting from the
object. The third argument is an MEAny containing the new coordinate for the
breakpoint. The fourth argument is the integer id of the connection within this
binding.
|
|
MEAny removePoint (MEOop receiver, MEAny removePoint, int id)
Removes a breakpoint from a role representation in the
receiver argument, a diagram binding representation MEOop. The second argument
is an MEAny containing the breakpoint coordinate. The third argument is the
integer id of the connection within this binding.
|
|
MEAny objTargetOffset (MEOop receiver, int objTargetOffsetWithId)
Returns the target point offset for a role representation in
the receiver argument, a diagram binding representation MEOop. The second
argument is the integer id of the connection within this binding.
|
|
MENull setObjTargetOffset (MEOop receiver, MEAny objTargetOffset, int
id)
Sets the target point offset for a role representation in the
receiver argument, a diagram binding representation MEOop. The second argument
is an MEAny containing the offset coordinate. The third argument is the integer
id of the connection within this binding.
|
|
boolean isMovable (MEOop receiver, int isMovableWithId)
Returns a boolean indicating whether the target point offset
of a given binding connection should be interpreted as the offset for the whole
dynamic port (if connected to one) or just as the offset for the role's
connection point. The receiver argument is a diagram binding representation
MEOop. The second argument is the integer id of the connection within this
binding.
|
|
MENull setIsMovable (MEOop receiver, boolean isMovable, int id)
Sets the boolean indicating whether the target point offset of
a given binding connection should be interpreted as the offset for the whole
dynamic port (if connected to one) or just as the offset for the role's
connection point. The receiver argument is a diagram binding representation
MEOop. The second argument is the boolean indicating if the offset is for the
whole dynamic port. The third argument is the integer id of the connection
within this binding.
|
|
MENull importGraph (MEOop receiver)
Update the receiver, an MEOop of a Diagram, with the objects
and bindings that are in the Graph but not this Diagram.
|