public final class StubCursor extends Object implements Comparable<StubCursor>, Cloneable, nl.lxtreme.ols.api.data.Cursor
Constructor and Description |
---|
StubCursor(int aIndex)
Creates a new
StubCursor instance. |
StubCursor(int aIndex,
long aTimestamp)
Creates a new
StubCursor instance. |
StubCursor(int aIndex,
Long aTimestamp)
Creates a new Cursor instance.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
StubCursor |
clone() |
int |
compareTo(StubCursor aOtherCursor) |
boolean |
equals(Object aObject) |
Color |
getColor() |
int |
getIndex() |
String |
getLabel() |
long |
getTimestamp() |
int |
hashCode() |
boolean |
hasLabel() |
boolean |
inArea(long aTimestamp,
double aDelta) |
boolean |
isDefined() |
void |
setColor(Color aColor) |
void |
setLabel(String aLabel) |
void |
setTimestamp(long aTimestamp) |
String |
toString() |
public StubCursor(int aIndex)
StubCursor
instance.aIndex
- the index of this cursor, >= 0 && < .IllegalArgumentException
- in case the given index was invalid.public StubCursor(int aIndex, long aTimestamp)
StubCursor
instance.aIndex
- the index of this cursor, >= 0 && < ;aTimestamp
- the timestamp of this cursor.IllegalArgumentException
- in case the given index was invalid.public StubCursor(int aIndex, Long aTimestamp)
aIndex
- the index of this cursor, >= 0 && < ;aTimestamp
- the timestamp of this cursor, can be null
in case
this cursor is undefined.IllegalArgumentException
- in case the given index was invalid.public void clear()
clear
in interface nl.lxtreme.ols.api.data.Cursor
public StubCursor clone()
public int compareTo(StubCursor aOtherCursor)
compareTo
in interface Comparable<StubCursor>
public Color getColor()
getColor
in interface nl.lxtreme.ols.api.data.Cursor
public int getIndex()
getIndex
in interface nl.lxtreme.ols.api.data.Cursor
public String getLabel()
getLabel
in interface nl.lxtreme.ols.api.data.Cursor
public long getTimestamp()
getTimestamp
in interface nl.lxtreme.ols.api.data.Cursor
public boolean hasLabel()
hasLabel
in interface nl.lxtreme.ols.api.data.Cursor
public boolean inArea(long aTimestamp, double aDelta)
inArea
in interface nl.lxtreme.ols.api.data.Cursor
public boolean isDefined()
isDefined
in interface nl.lxtreme.ols.api.data.Cursor
public void setColor(Color aColor)
setColor
in interface nl.lxtreme.ols.api.data.Cursor
public void setLabel(String aLabel)
setLabel
in interface nl.lxtreme.ols.api.data.Cursor
public void setTimestamp(long aTimestamp)
setTimestamp
in interface nl.lxtreme.ols.api.data.Cursor
Copyright © 2015 L'Xtreme IT consultancy. All rights reserved.