|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MementoSupport
This interface is a cookie for the hierarchic layout algorithm
memento support.
Field Summary | |
---|---|
static byte |
LAYERING_PHASE
A constant describing the first phase of the hierarchic layout algorithm . |
static byte |
SEQUENCING_PHASE
A constant describing the second phase of the hierarchic layout algorithm . |
Method Summary | |
---|---|
java.lang.Object |
createMemento()
Creates a memento which can be held by the user. |
java.lang.Object |
getMemento()
Returns the currently active memento Object . |
boolean |
getMementoMode(byte phase)
Retrieves the current mode previously set by method setMementoMode(byte, boolean)
for the given phase of the algorithm. |
void |
setMemento(java.lang.Object memento)
Specifies the memento Object to be used for the next operation. |
void |
setMementoMode(byte phase,
boolean useMemento)
Specifies the mode for each phase of the algorithm. |
Field Detail |
---|
static final byte LAYERING_PHASE
hierarchic layout algorithm
.
setMementoMode(byte, boolean)
,
Constant Field Valuesstatic final byte SEQUENCING_PHASE
hierarchic layout algorithm
.
setMementoMode(byte, boolean)
,
Constant Field ValuesMethod Detail |
---|
java.lang.Object createMemento()
Before using the support, a valid memento Object
has to be set using the corresponding method
setMemento(Object)
.
void setMemento(java.lang.Object memento)
Object
to be used for the next operation.
memento
- the given created mementojava.lang.Object getMemento()
Object
.
setMemento(Object)
void setMementoMode(byte phase, boolean useMemento)
phase
- one of the predefined memento keysuseMemento
- true
if the algorithm should use the values stored in the memento from a previous
run, false
if the algorithm should store the information in the memento after the
next runboolean getMementoMode(byte phase)
setMementoMode(byte, boolean)
for the given phase of the algorithm.
phase
- one of the predefined memento keys
true
if the algorithm uses the values stored in the memento from a previous
run, false
if the algorithm stores the information in the memento after the next runsetMementoMode(byte, boolean)
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |