|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.cabrillo.tracker.TTrack.StepArray
protected class TTrack.StepArray
| Field Summary | |
|---|---|
protected Step[] |
array
|
protected int |
delta
|
protected int |
length
|
| Constructor Summary | |
|---|---|
TTrack.StepArray()
Constructs a default StepArray. |
|
TTrack.StepArray(Step step)
Constructs an autofill StepArray and fills the array with clones of the specified step. |
|
TTrack.StepArray(Step step,
int increment)
Constructs an autofill StepArray and fills the array with clones of the specified step. |
|
| Method Summary | |
|---|---|
boolean |
contains(Step step)
Determines if this step array contains the specified step. |
Step |
getStep(int n)
Gets the step at the specified index. |
boolean |
isAutofill()
|
boolean |
isEmpty()
Determines if this is empty. |
boolean |
isPreceded(int n)
Determines if the specified step is preceded by a lower index step. |
void |
setLength(int len)
Sets the length of the array. |
void |
setStep(int n,
Step step)
Sets the step at the specified index. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int length
protected Step[] array
protected int delta
| Constructor Detail |
|---|
public TTrack.StepArray()
public TTrack.StepArray(Step step)
step - the step to fill the array with
public TTrack.StepArray(Step step,
int increment)
step - the step to fill the array withincrement - the array sizing increment| Method Detail |
|---|
public Step getStep(int n)
n - the array index
public void setStep(int n,
Step step)
n - the array indexstep - the new steppublic boolean contains(Step step)
step - the new step
true if this contains the steppublic void setLength(int len)
len - the new length of the arraypublic boolean isEmpty()
public boolean isPreceded(int n)
n - the step index
public boolean isAutofill()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||