|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgoanim.primitives.generators.Generator
algoanim.animalscript.AnimalGenerator
algoanim.animalscript.AnimalConceptualStackGenerator<T>
public class AnimalConceptualStackGenerator<T>
ConceptualStackGenerator| Field Summary |
|---|
| Fields inherited from class algoanim.primitives.generators.Generator |
|---|
lang |
| Constructor Summary | |
|---|---|
AnimalConceptualStackGenerator(Language aLang)
|
|
| Method Summary | |
|---|---|
void |
create(ConceptualStack<T> cs)
Creates the originating script code for a given ConceptualStack,
due to the fact that before a primitive can be worked with it has to be
defined and made known to the script language. |
void |
highlightTopCell(ConceptualStack<T> cs,
Timing delay,
Timing duration)
Highlights the cell which contains the top element of the given ConceptualStack. |
void |
highlightTopElem(ConceptualStack<T> cs,
Timing delay,
Timing duration)
Highlights the top element of the given ConceptualStack. |
void |
isEmpty(ConceptualStack<T> cs,
Timing delay,
Timing duration)
Tests if the given ConceptualStack is empty. |
void |
pop(ConceptualStack<T> cs,
Timing delay,
Timing duration)
Removes the element at the top of the given ConceptualStack. |
void |
push(ConceptualStack<T> cs,
T elem,
Timing delay,
Timing duration)
Pushes the element elem onto the top of the given ConceptualStack. |
void |
top(ConceptualStack<T> cs,
Timing delay,
Timing duration)
Retrieves (without removing) the element at the top of the given ConceptualStack. |
void |
unhighlightTopCell(ConceptualStack<T> cs,
Timing delay,
Timing duration)
Unhighlights the cell which contains the top element of the given ConceptualStack. |
void |
unhighlightTopElem(ConceptualStack<T> cs,
Timing delay,
Timing duration)
Unhighlights the top element of the given ConceptualStack. |
| Methods inherited from class algoanim.animalscript.AnimalGenerator |
|---|
addBooleanOption, addBooleanSwitch, addColorOption, addColorOption, addFontOption, addFontOption, addIntOption, addWithTiming, changeColor, exchange, hide, makeColorDef, makeColorDef, makeDisplayOptionsDef, makeDisplayOptionsDef, makeDurationTimingDef, makeHiddenDef, makeNodeDef, makeOffsetTimingDef, moveBy, moveTo, moveVia, rotate, rotate, show |
| Methods inherited from class algoanim.primitives.generators.Generator |
|---|
getLanguage, isNameUsed, isValidDirection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface algoanim.primitives.generators.GeneratorInterface |
|---|
changeColor, exchange, getLanguage, hide, moveBy, moveTo, moveVia, rotate, rotate, show |
| Constructor Detail |
|---|
public AnimalConceptualStackGenerator(Language aLang)
aLang - the associated Language object.| Method Detail |
|---|
public void create(ConceptualStack<T> cs)
ConceptualStackGeneratorConceptualStack,
due to the fact that before a primitive can be worked with it has to be
defined and made known to the script language.
create in interface ConceptualStackGenerator<T>cs - the ConceptualStack for which the initiate script code
shall be created.#create(algoanim.primitives.ConceptualStack)
public void pop(ConceptualStack<T> cs,
Timing delay,
Timing duration)
ConceptualStackGeneratorConceptualStack.
pop in interface ConceptualStackGenerator<T>cs - the ConceptualStack from which to pop the element.delay - [optional] the time to wait until the operation shall be performed.duration - [optional] the duration of the operation.
public void push(ConceptualStack<T> cs,
T elem,
Timing delay,
Timing duration)
ConceptualStackGeneratorelem onto the top of the given ConceptualStack.
push in interface ConceptualStackGenerator<T>cs - the ConceptualStack onto the top of which to push the element.elem - the element to be pushed onto the stack.delay - [optional] the time to wait until the operation shall be performed.duration - [optional] the duration of the operation.
public void top(ConceptualStack<T> cs,
Timing delay,
Timing duration)
ConceptualStackGeneratorConceptualStack.
top in interface ConceptualStackGenerator<T>cs - the ConceptualStack from which to retrieve the top element.delay - [optional] the time to wait until the operation shall be performed.duration - [optional] the duration of the operation.
public void isEmpty(ConceptualStack<T> cs,
Timing delay,
Timing duration)
ConceptualStackGeneratorConceptualStack is empty.
isEmpty in interface ConceptualStackGenerator<T>cs - the ConceptualStack which is tested.delay - [optional] the time to wait until the operation shall be performed.duration - [optional] the duration of the operation.
public void highlightTopCell(ConceptualStack<T> cs,
Timing delay,
Timing duration)
ConceptualStackGeneratorConceptualStack.
highlightTopCell in interface ConceptualStackGenerator<T>cs - the ConceptualStack to work on.delay - [optional] the time to wait until the operation shall be performed.duration - [optional] the duration of the operation.
public void highlightTopElem(ConceptualStack<T> cs,
Timing delay,
Timing duration)
ConceptualStackGeneratorConceptualStack.
highlightTopElem in interface ConceptualStackGenerator<T>cs - the ConceptualStack to work on.delay - [optional] the time to wait until the operation shall be performed.duration - [optional] the duration of the operation.
public void unhighlightTopCell(ConceptualStack<T> cs,
Timing delay,
Timing duration)
ConceptualStackGeneratorConceptualStack.
unhighlightTopCell in interface ConceptualStackGenerator<T>cs - the ConceptualStack to work on.delay - [optional] the time to wait until the operation shall be performed.duration - [optional] the duration of the operation.
public void unhighlightTopElem(ConceptualStack<T> cs,
Timing delay,
Timing duration)
ConceptualStackGeneratorConceptualStack.
unhighlightTopElem in interface ConceptualStackGenerator<T>cs - the ConceptualStack to work on.delay - [optional] the time to wait until the operation shall be performed.duration - [optional] the duration of the operation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||