|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.eltima.chart.LabelModel
public class LabelModel
The LabelModel class.
Copyright: Copyright (c) 2000-2007
Company: Eltima Software
Constructor Summary | |
---|---|
LabelModel()
Creates new instance of LabelModel. |
|
LabelModel(java.awt.Font font,
java.awt.Color foreground,
java.awt.Color background)
Creates new instance of LabelModel with specified font, foreground and background colors. |
Method Summary | |
---|---|
java.lang.String |
format(java.lang.Object o)
Returns formatted string if current format is not null, else returns object.toString() result. |
java.awt.Color |
getBackground()
Returns the background color. |
javax.swing.border.Border |
getBorder()
Returns the border. |
int |
getBorderType()
Returns the border type. |
java.awt.Font |
getFont()
Returns the font. |
java.awt.Color |
getForeground()
Returns the foreground color. |
java.text.Format |
getFormat()
Returns the Format. |
int |
getShadowLength()
|
double |
getTheta()
|
void |
setBackground(java.awt.Color c)
Sets the background color. |
void |
setBorderType(int type)
Sets the border type. |
void |
setFont(java.awt.Font f)
Sets the font. |
void |
setForeground(java.awt.Color c)
Sets the foreground color. |
void |
setFormat(java.text.Format f)
Sets the Format. |
void |
setShadowLength(int shadowLength)
|
void |
setTheta(double theta)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LabelModel()
public LabelModel(java.awt.Font font, java.awt.Color foreground, java.awt.Color background)
font
- Fontforeground
- Colorbackground
- ColorMethod Detail |
---|
public java.awt.Color getBackground()
public javax.swing.border.Border getBorder()
public java.awt.Font getFont()
public java.awt.Color getForeground()
public void setBackground(java.awt.Color c)
c
- Colorpublic void setFont(java.awt.Font f)
f
- Fontpublic void setForeground(java.awt.Color c)
c
- Colorpublic int getBorderType()
public void setBorderType(int type)
type
- intpublic java.text.Format getFormat()
public void setFormat(java.text.Format f)
f
- Formatpublic java.lang.String format(java.lang.Object o)
o
- Object
public double getTheta()
public void setTheta(double theta)
public int getShadowLength()
public void setShadowLength(int shadowLength)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |