|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 addpublic 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 GaugeDataModel
index
- segments index
GaugeDataModel.getAmount(int)
public Color getColor(int index)
GaugeDataModel
getColor
in interface GaugeDataModel
index
- segments index
GaugeDataModel.getColor(int)
public java.lang.String getText()
GaugeDataModel
getText
in interface GaugeDataModel
null
GaugeDataModel.getText()
public ClientHandler getClientHandler(int index)
GaugeDataModel
getClientHandler
in interface GaugeDataModel
index
- segment index
null
GaugeDataModel.getClientHandler(int)
public java.lang.String getHyperlink(int index)
GaugeDataModel
getHyperlink
in interface GaugeDataModel
index
- segment index
null
GaugeDataModel.getHyperlink(int)
public java.lang.String getTarget(int index)
GaugeDataModel
getTarget
in interface GaugeDataModel
index
- segment index
null
GaugeDataModel.getTarget(int)
public java.lang.String getTooltip(int index)
GaugeDataModel
getTooltip
in interface GaugeDataModel
index
- segments index
null
GaugeDataModel.getTooltip(int)
public int size()
GaugeDataModel
size
in interface GaugeDataModel
GaugeDataModel.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 |