|
Venice 0.7beta | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mov.ui.PointChangeFormat
public class PointChangeFormat
Representation of a quote's point change for display in a table. This class is
used by the AbstractTable class to identify the value type so that it can
render the value correctly. If the day close of a stock today is 30.0 and the day
close of the stock yesterday was 29.0, then today's point change is +1.
| Constructor Summary | |
|---|---|
PointChangeFormat(double change)
Create a new point change format object. |
|
PointChangeFormat(double initialValue,
double finalValue)
Create a new point change format object. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object object)
Compare two change objects. |
double |
getPointChange()
Return the point change. |
java.lang.String |
toString()
Create a string representation of the point change. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PointChangeFormat(double change)
change - the point change.
public PointChangeFormat(double initialValue,
double finalValue)
initialValue - the initial quote valuefinalValue - the final quote value| Method Detail |
|---|
public double getPointChange()
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object object)
compareTo in interface java.lang.Comparableobject - change object to compare to
0 if the change objects are equal;
1 if this change object is after the specified change
object or
-1 if this change object is before the specified change
object
|
Venice 0.7beta | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||