|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.ui.model.imp.GaugeDataModelImp
| Nested Class Summary | |
static class |
GaugeDataModelImp.GaugeItem
Item of the Gauge control |
| Field Summary | |
private java.util.Vector |
items
The segments which compose the gauge |
private static long |
serialVersionUID
Serial Version UID |
private java.lang.String |
text
The optional text which is shown next to the gauge |
| Constructor Summary | |
GaugeDataModelImp()
Constructor |
|
| Method Summary | |
void |
addItem(double amount,
java.lang.String tooltip,
Color color)
Adds a ne Item to the gauge data model |
void |
addItem(GaugeDataModelImp.GaugeItem item)
Adds a ne Item to the gauge data model |
double |
getAmount(int index)
Returns the absolute amount of the given segment. |
ClientHandler |
getClientHandler(int index)
Returns a set of client Handlers for this segment |
Color |
getColor(int index)
Returns the color of the given segment |
java.lang.String |
getHyperlink(int index)
Returns a hyperlink for the given segment |
GaugeDataModelImp.GaugeItem |
getItem(int index)
Retrieves the segment with the given index |
java.lang.String |
getTarget(int index)
Returns the target where to open the hyperlink |
java.lang.String |
getText()
Returns the text that should be displayed next to the gauge |
java.lang.String |
getTooltip(int index)
Returns the tooltip text for the given segment |
void |
setText(java.lang.String string)
Sets t which is displayed next to the gauge |
int |
size()
Returns the number of segments of the gauge |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final long serialVersionUID
private java.lang.String text
private java.util.Vector items
| Constructor Detail |
public GaugeDataModelImp()
| Method Detail |
public void addItem(GaugeDataModelImp.GaugeItem item)
item - the gauge item to add
public void addItem(double amount,
java.lang.String tooltip,
Color color)
amount - The absolute amounttooltip - Tooltip textcolor - Colorpublic GaugeDataModelImp.GaugeItem getItem(int index)
index - segments index
public double getAmount(int index)
GaugeDataModel
getAmount in interface GaugeDataModelindex - segments index
GaugeDataModel.getAmount(int)public Color getColor(int index)
GaugeDataModel
getColor in interface GaugeDataModelindex - segments index
GaugeDataModel.getColor(int)public java.lang.String getText()
GaugeDataModel
getText in interface GaugeDataModelnullGaugeDataModel.getText()public ClientHandler getClientHandler(int index)
GaugeDataModel
getClientHandler in interface GaugeDataModelindex - segment index
nullGaugeDataModel.getClientHandler(int)public java.lang.String getHyperlink(int index)
GaugeDataModel
getHyperlink in interface GaugeDataModelindex - segment index
nullGaugeDataModel.getHyperlink(int)public java.lang.String getTarget(int index)
GaugeDataModel
getTarget in interface GaugeDataModelindex - segment index
nullGaugeDataModel.getTarget(int)public java.lang.String getTooltip(int index)
GaugeDataModel
getTooltip in interface GaugeDataModelindex - segments index
nullGaugeDataModel.getTooltip(int)public int size()
GaugeDataModel
size in interface GaugeDataModelGaugeDataModel.size()public void setText(java.lang.String string)
string - Text
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||