|
||||||||||
| 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.AnimalGraphGenerator
public class AnimalGraphGenerator
| Field Summary |
|---|
| Fields inherited from class algoanim.primitives.generators.Generator |
|---|
lang |
| Constructor Summary | |
|---|---|
AnimalGraphGenerator(AnimalScript as)
|
|
| Method Summary | |
|---|---|
void |
create(Graph graph)
Creates the originating script code for a given graph,
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 |
hideEdge(Graph graph,
int startNode,
int endNode,
Timing offset,
Timing duration)
hides a selected (previously visible?) graph edge by turning it invisible |
void |
hideEdgeWeight(Graph graph,
int startNode,
int endNode,
Timing offset,
Timing duration)
hides a selected (previously visible?) graph edge weight by turning it invisible |
void |
hideNode(Graph graph,
int index,
Timing offset,
Timing duration)
hide a selected graph node by turning it invisible |
void |
hideNodes(Graph graph,
int[] indices,
Timing offset,
Timing duration)
hide a selected set of graph nodes by turning them invisible |
void |
highlightEdge(Graph graph,
int startNode,
int endNode,
Timing offset,
Timing duration)
Highlights the graph edge at a given position after a distinct offset. |
void |
highlightNode(Graph graph,
int node,
Timing offset,
Timing duration)
Highlights the chosen graph node after a distinct offset. |
void |
setEdgeWeight(Graph graph,
int startNode,
int endNode,
java.lang.String weight,
Timing offset,
Timing duration)
sets the weigth of a given edge |
void |
showEdge(Graph graph,
int startNode,
int endNode,
Timing offset,
Timing duration)
show a selected (previously hidden?) graph edge by turning it visible |
void |
showEdgeWeight(Graph graph,
int startNode,
int endNode,
Timing offset,
Timing duration)
show a selected (previously hidden?) graph edge weightby turning it visible |
void |
showNode(Graph graph,
int index,
Timing offset,
Timing duration)
show a selected (previously hidden) graph node by turning it visible |
void |
showNodes(Graph graph,
int[] indices,
Timing offset,
Timing duration)
show a selected (previously hidden) graph node by turning it visible |
void |
translateNode(Graph graph,
int nodeIndex,
Node location,
Timing offset,
Timing duration)
sets the position of a given node |
void |
translateNodes(Graph graph,
int[] nodeIndices,
Node location,
Timing offset,
Timing duration)
sets the position of a given set of nodes |
void |
translateWithFixedNodes(Graph graph,
int[] nodeIndices,
Node location,
Timing offset,
Timing duration)
sets the position of a given set of nodes |
void |
unhighlightEdge(Graph graph,
int startNode,
int endNode,
Timing offset,
Timing duration)
Unhighlights the graph edge at a given position after a distinct offset. |
void |
unhighlightNode(Graph graph,
int node,
Timing offset,
Timing duration)
Unhighlights the chosen graph node after a distinct offset. |
| 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 AnimalGraphGenerator(AnimalScript as)
as - the associated Language object.| Method Detail |
|---|
public void create(Graph graph)
GraphGeneratorgraph,
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 GraphGeneratorgraph - the graph for which the initiate script code
shall be created.
public void highlightEdge(Graph graph,
int startNode,
int endNode,
Timing offset,
Timing duration)
highlightEdge in interface GraphGeneratorgraph - the graph on which the operation is performedstartNode - the start node of the edge to highlight.endNode - the end node of the edge to highlight.offset - [optional] the offset after which the operation shall be
started.duration - [optional] the duration this operation lasts.
public void unhighlightEdge(Graph graph,
int startNode,
int endNode,
Timing offset,
Timing duration)
unhighlightEdge in interface GraphGeneratorgraph - the graph on which the operation is performedstartNode - the start node of the edge to unhighlight.endNode - the end node of the edge to unhighlight.offset - [optional] the offset after which the operation shall be
started.duration - [optional] the duration this operation lasts.
public void highlightNode(Graph graph,
int node,
Timing offset,
Timing duration)
highlightNode in interface GraphGeneratorgraph - the graph on which the operation is performednode - the node to highlight.offset - [optional] the offset after which the operation shall be
started.duration - [optional] the duration this operation lasts.
public void unhighlightNode(Graph graph,
int node,
Timing offset,
Timing duration)
unhighlightNode in interface GraphGeneratorgraph - the graph on which the operation is performednode - the node to unhighlight.offset - [optional] the offset after which the operation shall be
started.duration - [optional] the duration this operation lasts.
public void hideNode(Graph graph,
int index,
Timing offset,
Timing duration)
GraphGenerator
hideNode in interface GraphGeneratorindex - the index of the node to be hiddenoffset - [optional] the offset after which the operation shall be
started.duration - [optional] the duration this operation lasts.
public void hideNodes(Graph graph,
int[] indices,
Timing offset,
Timing duration)
GraphGenerator
hideNodes in interface GraphGeneratorindices - the set of node indices to be hiddenoffset - [optional] the offset after which the operation shall be
started.duration - [optional] the duration this operation lasts.
public void showNode(Graph graph,
int index,
Timing offset,
Timing duration)
GraphGenerator
showNode in interface GraphGeneratorindex - the index of the node to be shownoffset - [optional] the offset after which the operation shall be
started.duration - [optional] the duration this operation lasts.
public void showNodes(Graph graph,
int[] indices,
Timing offset,
Timing duration)
GraphGenerator
showNodes in interface GraphGeneratorindices - the index of the node to be shownoffset - [optional] the offset after which the operation shall be
started.duration - [optional] the duration this operation lasts.
public void hideEdge(Graph graph,
int startNode,
int endNode,
Timing offset,
Timing duration)
GraphGenerator
hideEdge in interface GraphGeneratorstartNode - the start index of the edge to be hiddenendNode - the end index of the edge to be hiddenoffset - [optional] the offset after which the operation shall be
started.duration - [optional] the duration this operation lasts.
public void hideEdgeWeight(Graph graph,
int startNode,
int endNode,
Timing offset,
Timing duration)
GraphGenerator
hideEdgeWeight in interface GraphGeneratorstartNode - the start index of the edge weight to be hiddenendNode - the end index of the edge weight to be hiddenoffset - [optional] the offset after which the operation shall be
started.duration - [optional] the duration this operation lasts.
public void showEdge(Graph graph,
int startNode,
int endNode,
Timing offset,
Timing duration)
GraphGenerator
showEdge in interface GraphGeneratorstartNode - the start index of the edge to be shownendNode - the end index of the node to be shownoffset - [optional] the offset after which the operation shall be
started.duration - [optional] the duration this operation lasts.
public void showEdgeWeight(Graph graph,
int startNode,
int endNode,
Timing offset,
Timing duration)
GraphGenerator
showEdgeWeight in interface GraphGeneratorstartNode - the start index of the edge weight to be shownendNode - the end index of the node weight to be shownoffset - [optional] the offset after which the operation shall be
started.duration - [optional] the duration this operation lasts.
public void setEdgeWeight(Graph graph,
int startNode,
int endNode,
java.lang.String weight,
Timing offset,
Timing duration)
GraphGenerator
setEdgeWeight in interface GraphGeneratorgraph - the underlying graphstartNode - the start node of the edgeendNode - the end node of the edgeweight - the new weight of the edgeoffset - [optional] the offset after which the operation shall be
started.duration - [optional] the duration this operation lasts.
public void translateNode(Graph graph,
int nodeIndex,
Node location,
Timing offset,
Timing duration)
GraphGenerator
translateNode in interface GraphGeneratorgraph - the underlying graphnodeIndex - the index of the node to be movedlocation - the target position of the nodeoffset - [optional] the offset after which the operation shall be
started.duration - [optional] the duration this operation lasts.
public void translateNodes(Graph graph,
int[] nodeIndices,
Node location,
Timing offset,
Timing duration)
GraphGenerator
translateNodes in interface GraphGeneratorgraph - the underlying graphnodeIndices - the indices of the nodes to be movedlocation - the target position of the nodeoffset - [optional] the offset after which the operation shall be
started.duration - [optional] the duration this operation lasts.
public void translateWithFixedNodes(Graph graph,
int[] nodeIndices,
Node location,
Timing offset,
Timing duration)
GraphGenerator
translateWithFixedNodes in interface GraphGeneratorgraph - the underlying graphnodeIndices - the indices of the nodes to be movedlocation - the target position of the nodeoffset - [optional] the offset after which the operation shall be
started.duration - [optional] the duration this operation lasts.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||