|
NetCharts Pro | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--netcharts.pro.common.NFBaseClass
|
+--netcharts.pro.charts.dial.NFDialHand
Dial hand object. A dial hand is represented by a line drawn to the given value with the given length. The value of a hand is mapped according the the scale of the dial. The length of the hand is a percentage where 100 will draw to the dial's border.
| Field Summary | |
static int |
BLOCK
|
static java.util.Hashtable |
handStyle
handStyle hashtable |
static int |
LINE
|
static int |
NONE
|
static int |
ROUND
|
static int |
SHARP
|
| Constructor Summary | |
NFDialHand()
Constructs a default dial hand. |
|
NFDialHand(java.lang.String handName)
Constructs a dial hand with the given name. |
|
| Method Summary | |
java.lang.Object |
clone()
Does a deep copy of this dial hand object |
NFActiveLabel |
getActiveLabel()
Get the active label for this hand. |
boolean |
getActiveLabelModified()
Gets if the hand active label has been modified |
java.lang.String |
getCDLHand(java.lang.String dialName)
Generate CDL parameters representing this hand |
java.lang.String |
getCDLHandActiveLabel()
Generate CDL parameters representing this hand's active label |
java.lang.String |
getCDLHandData()
Generate CDL parameters representing this hand's data |
java.lang.String |
getCDLHandStyle()
Generate CDL parameters representing this hand's display style |
boolean |
getDataModified()
Gets if the hand data has been modified |
int |
getEndStyle()
Get how the end of the hand is to be drawn. |
boolean |
getHandModified()
Gets if the hand definition has been modified |
java.lang.String |
getHandName()
Get this dial hand's name. |
double |
getLength()
Get the hand length. |
java.awt.Color |
getShaftColor()
Set the hand shaft (line) color. |
double |
getShaftWidth()
Get the width of the hand's shaft (line) |
boolean |
getStyleModified()
Gets if the hand style has been modified |
java.awt.Color |
getTipColor()
Get the color of the end of the hand. |
double |
getTipWidth()
Get the width of the hand end. |
double |
getValue()
Get the hand value. |
void |
setActiveLabel(NFActiveLabel activeLabel)
Set the active label for this hand. |
void |
setCDLHand(java.lang.String cdl)
Configures this object from a CDL parameter representation. |
void |
setCDLHandActiveLabel(java.lang.String cdl)
Configures this object from a CDL parameter representation. |
void |
setCDLHandData(java.lang.String cdl)
Configures this object from a CDL parameter representation. |
void |
setCDLHandStyle(java.lang.String cdl)
Configures this object from a CDL parameter representation. |
void |
setEndStyle(int endStyle)
Set how the end of the hand is to be drawn. |
void |
setHandName(java.lang.String handName)
Set this hand's name. |
void |
setLength(double length)
Set the hand length. |
void |
setShaftColor(java.awt.Color shaftColor)
Set the hand shaft (line) color. |
void |
setShaftWidth(double shaftWidth)
Set the width of the hand's shaft (line) |
void |
setTipColor(java.awt.Color tipColor)
Set the color of the end of the hand. |
void |
setTipWidth(double tipWidth)
Set the width of the hand end. |
void |
setValue(double value)
Set the hand value. |
| Methods inherited from class netcharts.pro.common.NFBaseClass |
getModified, getUserObject, setModified, setUserObject |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.util.Hashtable handStyle
public static final int NONE
public static final int LINE
public static final int BLOCK
public static final int SHARP
public static final int ROUND
| Constructor Detail |
public NFDialHand()
public NFDialHand(java.lang.String handName)
handName - | Method Detail |
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class NFBaseClasspublic void setHandName(java.lang.String handName)
handName - The name of the hand.public java.lang.String getHandName()
public void setTipColor(java.awt.Color tipColor)
NonetipColor - Color of the end of the hand.public java.awt.Color getTipColor()
public void setShaftColor(java.awt.Color shaftColor)
shaftColor - The line colorpublic java.awt.Color getShaftColor()
public void setValue(double value)
value - The value of this hand.public double getValue()
public void setLength(double length)
length - The length of the hand.public double getLength()
public void setEndStyle(int endStyle)
If the value passed is not a valid end style type an IllegalArgumentException will be thrown.
endStyle. - One of NONE, LINE, BLOCK, SHARP, ROUNDpublic int getEndStyle()
SHARP if not defined.public void setTipWidth(double tipWidth)
tipWidth - Width in pixels of the hand end.public double getTipWidth()
public void setShaftWidth(double shaftWidth)
shaftWidth - Width in pixels of the shaft.public double getShaftWidth()
public void setActiveLabel(NFActiveLabel activeLabel)
activeLabel - The hand's active label.public NFActiveLabel getActiveLabel()
public java.lang.String getCDLHand(java.lang.String dialName)
dialName - The dial that this hand is associated with.("handName", tipColor, shaftColor, "dialName")public void setCDLHand(java.lang.String cdl)
cdl - CDL in the form: ("handName", tipColor, shaftColor, "dialName")public java.lang.String getCDLHandData()
("handName", value, length)public void setCDLHandData(java.lang.String cdl)
cdl - CDL in the form: ("handName", value, length)public java.lang.String getCDLHandStyle()
("handName", handStyle, tipWidth, shaftWidth)public void setCDLHandStyle(java.lang.String cdl)
cdl - CDL in the form: ("handName", handStyle, tipWidth, shaftWidth)public java.lang.String getCDLHandActiveLabel()
("handName", "label", "url", "target")public void setCDLHandActiveLabel(java.lang.String cdl)
cdl - CDL in the form: ("handName", "label", "url", "target")public boolean getHandModified()
public boolean getDataModified()
public boolean getStyleModified()
public boolean getActiveLabelModified()
|
NetCharts Pro | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2004 |
Last Modified: Apr 1, 2004 |