|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetcharts.pro.common.NFBaseClass
netcharts.pro.charts.dial.NFDialHand
public class 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
BLOCK Hand Style. |
static java.util.Hashtable |
handStyle
The set of allowed hand styles. |
static int |
LINE
LINE Hand Style. |
static int |
NEEDLEBUTTON
NEEDLEBUTTON Hand Style. |
static int |
NEEDLEFILL
NEEDLEFILL Hand Style. |
static int |
NEEDLELINE
NEEDLELINE Hand Style. |
static int |
NONE
NONE Hand Style. |
static int |
RECTBUTTON
RECTBUTTON Hand Style. |
static int |
ROUND
ROUND Hand Style. |
static int |
SHARP
SHARP Hand Style. |
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 |
NFLine |
getBorder()
Get the border for this hand. |
boolean |
getBorderModified()
Gets if the hand border 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 |
getCDLHandBorder()
Generate CDL parameters representing this hand's border |
java.lang.String |
getCDLHandData()
Generate CDL parameters representing this hand's data |
java.lang.String |
getCDLHandLabelStyle()
Generate CDL parameters representing this hand's label style |
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. |
java.lang.String |
getHandLabel()
Get this dial hand's label. |
double |
getHandLabelPosition()
Get the position of a hand label relative to the radius of the dial. |
NFTextStyle |
getHandLabelStyle()
Get the text style of the hand label. |
boolean |
getHandModified()
Gets if the hand definition has been modified |
java.lang.String |
getHandName()
Get this dial hand's name. |
boolean |
getLabelModified()
Gets if the hand's label style has been modified |
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 |
getShowHandLabel()
Get whether or not the label should be shown for the hand. |
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 |
setBorder(NFLine border)
Set the border for this hand. |
void |
setCDLBorder(java.lang.String cdl)
Configures this object from a CDL parameter representation. |
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 |
setCDLHandLabelStyle(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 |
setHandLabel(java.lang.String handLabel)
Set this dial hand's label. |
void |
setHandLabelPosition(double handLabelPosition)
Set the position of a hand label relative to the radius of the dial. |
void |
setHandLabelStyle(NFTextStyle handLabelStyle)
Set the text style of the hand label. |
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 |
setShowHandLabel(boolean showHandLabel)
Set whether or not the label should be shown for the hand. |
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
NONE, LINE, BLOCK, SHARP, ROUND, NEEDLELINE, NEEDLEFILL, NEEDLEBUTTON
.
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
public static final int NEEDLELINE
public static final int NEEDLEFILL
public static final int NEEDLEBUTTON
public static final int RECTBUTTON
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 NFBaseClass
java.lang.CloneNotSupportedException
public void setHandName(java.lang.String handName)
handName
- The name of the hand.public java.lang.String getHandName()
public void setHandLabel(java.lang.String handLabel)
handLabel
- Text to use for this dial hand.public java.lang.String getHandLabel()
public void setTipColor(java.awt.Color tipColor)
None
tipColor
- 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, ROUND, NEEDLELINE, NEEDLEFILL, NEEDLEBUTTON
public 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 void setBorder(NFLine border)
border
- The hand's border.public NFLine getBorder()
public void setShowHandLabel(boolean showHandLabel)
showHandLabel
- If true, show the label.public boolean getShowHandLabel()
public void setHandLabelPosition(double handLabelPosition)
handLabelPosition
- The radial position of the label.public double getHandLabelPosition()
public void setHandLabelStyle(NFTextStyle handLabelStyle)
handLabelStyle
- The text style object for hand label.public NFTextStyle getHandLabelStyle()
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 getCDLHandLabelStyle()
("handName", showHandLabel, handLabelPosition, textColor, font, fontsize, angle)
public void setCDLHandLabelStyle(java.lang.String cdl)
cdl
- CDL in the form: ("handName", showHandLabel, handLabelPosition, textColor, font, fontsize, angle)
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 java.lang.String getCDLHandBorder()
("handName", style, thickness, color)
public void setCDLHandActiveLabel(java.lang.String cdl)
cdl
- CDL in the form: ("handName", "label", "url", "target")
public void setCDLBorder(java.lang.String cdl)
cdl
- CDL in the form: ("handName", style, thickness, color)
public boolean getHandModified()
public boolean getDataModified()
public boolean getLabelModified()
public boolean getStyleModified()
public boolean getActiveLabelModified()
public boolean getBorderModified()
|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2011 |
Last Modified: Jun 28, 2011 |