|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.gauge.DialLabel
public class DialLabel
A Drawable class that can be used to add text to a Dial.
Dial.addDrawable(com.jidesoft.chart.Drawable)| Constructor Summary | |
|---|---|
DialLabel(Dial dial,
double radius,
double angle,
String label)
Create a textual label to add to a dial |
|
| Method Summary | |
|---|---|
void |
draw(Graphics g)
The method of the Drawable interface that paints the label |
double |
getAngle()
Returns the angle at which the label will be positioned |
Color |
getColor()
Returns the color of the text of the label |
Font |
getFont()
Returns the font being used for the label |
String |
getLabel()
Returns the text of the label |
double |
getRadius()
Returns the radius at which the label will be positioned |
void |
setAngle(double angle)
Specify the angle at which the label will be positioned |
void |
setColor(Color color)
Specify the color of the text of the label |
void |
setFont(Font font)
Specify the font used for the label |
void |
setLabel(String label)
Specify the text of the label |
void |
setRadius(double radius)
Specify the radius at which the label will be positioned |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DialLabel(Dial dial,
double radius,
double angle,
String label)
dial - the dial to which the label will be addedradius - the radius at which the label will be placed, as a proportion of the radius of the dialangle - the angle at which the label will be placed, in degreeslabel - the text of the label| Method Detail |
|---|
public Color getColor()
public void setColor(Color color)
color - the color of the text of the labelpublic Font getFont()
public void setFont(Font font)
font - the font used for the labelpublic String getLabel()
public void setLabel(String label)
label - the text of the labelpublic double getAngle()
public void setAngle(double angle)
angle - the angle at which the label will be positionedpublic double getRadius()
public void setRadius(double radius)
radius - the radius at which the label will be positionedpublic void draw(Graphics g)
draw in interface Drawableg - the Graphics context
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||