|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.idv.control.chart.ChartHolder
public class ChartHolder
Class ChartHolder hodls a chart
| Field Summary | |
|---|---|
protected JComponent |
backgroundSwatch
For properties dialog |
protected JComponent |
dataAreaSwatch
For properties dialog |
protected org.jfree.chart.axis.AxisLocation |
lastSide
last axis side |
protected JTextField |
nameFld
for gui |
protected JCheckBox |
showThumbnailCbx
for gui |
protected JCheckBox |
showTitleCbx
for gui |
| Constructor Summary | |
|---|---|
ChartHolder()
ctor |
|
ChartHolder(ChartManager chartManager,
String name,
Dimension preferredSize)
ctor |
|
| Method Summary | |
|---|---|
protected void |
add(org.jfree.data.xy.XYDataset dataset,
org.jfree.chart.axis.ValueAxis rangeAxis,
org.jfree.chart.renderer.xy.XYItemRenderer renderer,
org.jfree.chart.axis.AxisLocation side)
add data set |
protected void |
applyPlotProperties()
apply props |
protected boolean |
applyProperties()
apply properties |
void |
doSaveAs()
write image |
Color |
getBackgroundColor()
Get the BackgroundColor property. |
protected boolean |
getBeingShown()
Get the BeingShown property. |
ChartManager |
getChartManager()
Get the ChartManager property. |
protected org.jfree.chart.ChartPanel |
getChartPanel()
get panel |
Color |
getDataAreaColor()
Get the DataAreaColor property. |
LineState |
getDomainLineState()
Get the DomainLineState property. |
Rectangle |
getLayoutRect()
Get the LayoutRect property. |
protected void |
getMenuItems(List items)
get items |
String |
getName()
Get the Name property. |
org.jfree.chart.plot.Plot |
getPlot()
get plot |
Dimension |
getPreferredSize()
Get the PreferredSize property. |
protected void |
getPropertiesComponents(List comps)
get properties widgets |
LineState |
getRangeLineState()
Get the RangeLineState property. |
boolean |
getShowThumbnail()
Get the ShowThumbnail property. |
boolean |
getShowTitle()
Get the ShowTitle property. |
boolean |
hasParameters()
ahs parameters |
protected void |
init()
init |
protected void |
initChart()
init |
void |
keyPressed(KeyEvent e)
Handle event |
protected void |
panPlot(boolean right)
Pan plot |
protected void |
panPlot(boolean right,
double percent)
Pan the plot |
protected void |
resetChartPanel()
create new chart panel |
void |
setBackgroundColor(Color value)
Set the BackgroundColor property. |
protected void |
setBeingShown(boolean value)
Set the BeingShown property. |
void |
setChartManager(ChartManager value)
Set the ChartManager property. |
void |
setDataAreaColor(Color value)
Set the DataAreaColor property. |
void |
setDomainLineState(LineState value)
Set the DomainLineState property. |
void |
setLayoutRect(Rectangle value)
Set the LayoutRect property. |
void |
setName(String value)
Set the Name property. |
void |
setPreferredSize(Dimension value)
Set the PreferredSize property. |
void |
setRangeLineState(LineState value)
Set the RangeLineState property. |
void |
setShowThumbnail(boolean value)
Set the ShowThumbnail property. |
void |
setShowTitle(boolean value)
Set the ShowTitle property. |
void |
showPropertiesDialog()
show dialog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.jfree.chart.axis.AxisLocation lastSide
protected JCheckBox showThumbnailCbx
protected JCheckBox showTitleCbx
protected JComponent backgroundSwatch
protected JComponent dataAreaSwatch
protected JTextField nameFld
| Constructor Detail |
|---|
public ChartHolder()
public ChartHolder(ChartManager chartManager,
String name,
Dimension preferredSize)
chartManager - The chart managername - namepreferredSize - size| Method Detail |
|---|
protected boolean applyProperties()
protected void getPropertiesComponents(List comps)
comps - widgetsprotected void applyPlotProperties()
protected void init()
protected void setBeingShown(boolean value)
value - The new value for BeingShownprotected boolean getBeingShown()
protected org.jfree.chart.ChartPanel getChartPanel()
public org.jfree.chart.plot.Plot getPlot()
public void doSaveAs()
public void showPropertiesDialog()
protected void getMenuItems(List items)
items - itemsprotected void resetChartPanel()
public void keyPressed(KeyEvent e)
e - The eventprotected void panPlot(boolean right)
right - to right
protected void panPlot(boolean right,
double percent)
right - to rightpercent - by how muchprotected void initChart()
protected void add(org.jfree.data.xy.XYDataset dataset,
org.jfree.chart.axis.ValueAxis rangeAxis,
org.jfree.chart.renderer.xy.XYItemRenderer renderer,
org.jfree.chart.axis.AxisLocation side)
dataset - datasetrangeAxis - axisrenderer - rendererside - which sidepublic boolean hasParameters()
public void setLayoutRect(Rectangle value)
value - The new value for LayoutRectpublic Rectangle getLayoutRect()
public void setName(String value)
value - The new value for Namepublic String getName()
public void setChartManager(ChartManager value)
value - The new value for ChartManagerpublic ChartManager getChartManager()
public void setDomainLineState(LineState value)
value - The new value for DomainLineStatepublic LineState getDomainLineState()
public void setRangeLineState(LineState value)
value - The new value for RangeLineStatepublic LineState getRangeLineState()
public void setShowThumbnail(boolean value)
value - The new value for ShowThumbnailpublic boolean getShowThumbnail()
public void setBackgroundColor(Color value)
value - The new value for BackgroundColorpublic Color getBackgroundColor()
public void setDataAreaColor(Color value)
value - The new value for DataAreaColorpublic Color getDataAreaColor()
public void setShowTitle(boolean value)
value - The new value for ShowTitlepublic boolean getShowTitle()
public void setPreferredSize(Dimension value)
value - The new value for PreferredSizepublic Dimension getPreferredSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||