|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.eltima.chart.LabelModel
The LabelModel class.
Copyright: Copyright (c) 2000-2005
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 not null, else returns object.toString() method 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. |
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. |
| 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 - Color| Method 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)
public void setFont(java.awt.Font f)
public 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)
public java.lang.String format(java.lang.Object o)
o - Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||