com.cc.framework.ui.model.imp
Class GaugeDataModelImp.GaugeItem

java.lang.Object
  extended bycom.cc.framework.ui.model.imp.ClientHandlerImp
      extended bycom.cc.framework.ui.model.imp.GaugeDataModelImp.GaugeItem
All Implemented Interfaces:
ClientHandler, java.io.Serializable
Enclosing class:
GaugeDataModelImp

public static class GaugeDataModelImp.GaugeItem
extends ClientHandlerImp
implements java.io.Serializable

Item of the Gauge control

See Also:
Serialized Form

Field Summary
private  double amount
          The absolute amount
private  Color color
          Segments color
private  java.lang.String hyperlink
          optional hyperlink
private static long serialVersionUID
           
private  java.lang.String target
          optional hyperlink target attribute
private  java.lang.String tooltip
          optional tooltip text
 
Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp
 
Constructor Summary
GaugeDataModelImp.GaugeItem()
          Constructor
GaugeDataModelImp.GaugeItem(double amount, java.lang.String tooltip, Color color)
          Constructor
 
Method Summary
 double getAmount()
          Returns the absolute amount of the given segment.
 Color getColor()
          Returns the color of the given segment
 java.lang.String getHyperlink()
          Returns a hyperlink for the given segment
 java.lang.String getTarget()
          Returns the traget where to open the hyperlink
 java.lang.String getTooltip()
          Returns the tooltip text for the given segment
 void setAmount(double d)
           
 void setColor(Color color)
           
 void setHyperlink(java.lang.String string)
           
 void setTarget(java.lang.String string)
           
 void setTooltip(java.lang.String string)
           
 
Methods inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp
evaluate, getHandler, getHandlers, setHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

amount

private double amount
The absolute amount


tooltip

private java.lang.String tooltip
optional tooltip text


target

private java.lang.String target
optional hyperlink target attribute


hyperlink

private java.lang.String hyperlink
optional hyperlink


color

private Color color
Segments color

Constructor Detail

GaugeDataModelImp.GaugeItem

public GaugeDataModelImp.GaugeItem()
Constructor


GaugeDataModelImp.GaugeItem

public GaugeDataModelImp.GaugeItem(double amount,
                                   java.lang.String tooltip,
                                   Color color)
Constructor

Parameters:
amount - The absolute amount
tooltip - Tooltip text
color - Color
Method Detail

getAmount

public double getAmount()
Returns the absolute amount of the given segment. The Gaug Control will calculate the segments width from this value.

Returns:
Amount

getTooltip

public java.lang.String getTooltip()
Returns the tooltip text for the given segment

Returns:
Tooltip Text or null

getColor

public Color getColor()
Returns the color of the given segment

Returns:
Color

getHyperlink

public java.lang.String getHyperlink()
Returns a hyperlink for the given segment

Returns:
Hyperlink or null

getTarget

public java.lang.String getTarget()
Returns the traget where to open the hyperlink

Returns:
Target or null

setAmount

public void setAmount(double d)
Parameters:
d - absolute amount

setColor

public void setColor(Color color)
Parameters:
color - Color

setHyperlink

public void setHyperlink(java.lang.String string)
Parameters:
string - Hyperlink

setTarget

public void setTarget(java.lang.String string)
Parameters:
string - Target attribute

setTooltip

public void setTooltip(java.lang.String string)
Parameters:
string - tooltip


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.