|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgoanim.primitives.Primitive
algoanim.primitives.ArrayPrimitive
public abstract class ArrayPrimitive
Base class for all concrete arrays.
| Field Summary | |
|---|---|
protected int |
length
|
| Fields inherited from class algoanim.primitives.Primitive |
|---|
gen |
| Constructor Summary | |
|---|---|
ArrayPrimitive(GeneratorInterface g,
DisplayOptions display)
|
|
| Method Summary | |
|---|---|
int |
getLength()
Returns the length of the internal array. |
abstract void |
swap(int what,
int with,
Timing t,
Timing d)
Swaps the elements at index what and
with. |
| Methods inherited from class algoanim.primitives.Primitive |
|---|
changeColor, exchange, getDisplayOptions, getName, hide, hide, moveBy, moveTo, moveVia, rotate, rotate, setName, show, show |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int length
| Constructor Detail |
|---|
public ArrayPrimitive(GeneratorInterface g,
DisplayOptions display)
g - the appropriate code Generator.display - [optional] the DisplayOptions of this
ArrayPrimitive.| Method Detail |
|---|
public int getLength()
public abstract void swap(int what,
int with,
Timing t,
Timing d)
throws java.lang.IndexOutOfBoundsException
what and
with.
This is the delayed version. The duration of this
operation may also be specified.
what - first element to swap.with - second element to swap.t - [optional] the delay which shall be applied to the
operation.d - [optional] the duration this action needs.
java.lang.IndexOutOfBoundsException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||