|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.jfree.chart.plot.JThermometer
public class JThermometer
An initial quick and dirty. The concept behind this class would be to generate a gui bean that could be used within JBuilder, Netbeans etc...
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JThermometer()
Default constructor. |
Method Summary | |
---|---|
void |
addSubtitle(String subtitle)
Adds a subtitle to the chart. |
void |
addSubtitle(String subtitle,
Font font)
Adds a subtitle to the chart. |
void |
addSubtitle(Title subtitle)
Adds a subtitle to the chart. |
void |
changeTickFontSize(int delta)
Increases or decreases the tick font size. |
int |
getShowAxisLocation()
Returns the location for the axis. |
Font |
getTickLabelFont()
Returns the tick label font. |
Number |
getValue()
Returns the value of the thermometer. |
void |
setBackground(Color bg)
Sets the background color. |
void |
setFollowDataInSubranges(boolean flag)
Sets the flag that controls whether or not the display range follows the data value. |
void |
setForeground(Color fg)
Sets the foreground color. |
void |
setOutlinePaint(Paint p)
Sets the outline paint. |
void |
setRange(double lower,
double upper)
Sets the lower and upper bounds for the thermometer. |
void |
setShowAxisLocation(int location)
Sets the location for the axis. |
void |
setShowValueLines(boolean b)
Sets the flag that controls whether or not value lines are displayed. |
void |
setSubrangeInfo(int range,
double displayLow,
double displayHigh)
Sets the range. |
void |
setSubrangeInfo(int range,
double rangeLow,
double rangeHigh,
double displayLow,
double displayHigh)
Sets the range. |
void |
setTickFontStyle(int style)
Sets the tick font style. |
void |
setTickLabelFont(Font font)
Sets the tick label font. |
void |
setUnits(int i)
Sets the unit type. |
void |
setValue(double value)
Sets the value of the thermometer. |
void |
setValue(Number value)
Sets the value of the thermometer. |
void |
setValueFont(Font f)
Sets the value font. |
void |
setValueFormat(DecimalFormat df)
Sets the value format for the thermometer. |
void |
setValueLocation(int loc)
Sets the location at which the temperature value is displayed. |
void |
setValuePaint(Paint paint)
Sets the value paint. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JThermometer()
Method Detail |
---|
public void addSubtitle(Title subtitle)
subtitle
- the subtitle.public void addSubtitle(String subtitle)
subtitle
- the subtitle.public void addSubtitle(String subtitle, Font font)
subtitle
- the subtitle.font
- the subtitle font.public void setValueFormat(DecimalFormat df)
df
- the formatter.public void setRange(double lower, double upper)
lower
- the lower bound.upper
- the upper bound.public void setSubrangeInfo(int range, double displayLow, double displayHigh)
range
- the range type.displayLow
- the low value.displayHigh
- the high value.public void setSubrangeInfo(int range, double rangeLow, double rangeHigh, double displayLow, double displayHigh)
range
- the range type.rangeLow
- the low value for the range.rangeHigh
- the high value for the range.displayLow
- the low value for display.displayHigh
- the high value for display.public void setValueLocation(int loc)
loc
- the location.public void setValuePaint(Paint paint)
paint
- the paint.public Number getValue()
public void setValue(double value)
value
- the value.public void setValue(Number value)
value
- the value.public void setUnits(int i)
i
- the unit type.public void setOutlinePaint(Paint p)
p
- the paint.public void setForeground(Color fg)
setForeground
in class JComponent
fg
- the foreground color.public void setBackground(Color bg)
setBackground
in class JComponent
bg
- the background color.public void setValueFont(Font f)
f
- the font.public Font getTickLabelFont()
public void setTickLabelFont(Font font)
font
- the font.public void changeTickFontSize(int delta)
delta
- the change in size.public void setTickFontStyle(int style)
style
- the style.public void setFollowDataInSubranges(boolean flag)
flag
- the new value of the flag.public void setShowValueLines(boolean b)
b
- the new flag value.public void setShowAxisLocation(int location)
location
- the location.public int getShowAxisLocation()
|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |