public class ChartHolder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JComponent |
backgroundSwatch
For properties dialog
|
protected javax.swing.JComponent |
dataAreaSwatch
For properties dialog
|
protected org.jfree.chart.axis.AxisLocation |
lastSide
last axis side
|
protected javax.swing.JTextField |
nameFld
for gui
|
protected javax.swing.JCheckBox |
showThumbnailCbx
for gui
|
protected javax.swing.JCheckBox |
showTitleCbx
for gui
|
Constructor and Description |
---|
ChartHolder()
ctor
|
ChartHolder(ChartManager chartManager,
java.lang.String name,
java.awt.Dimension preferredSize)
ctor
|
Modifier and Type | Method and Description |
---|---|
protected void |
add(org.jfree.data.xy.XYDataset dataset,
org.jfree.chart.axis.ValueAxis rangeAxis,
org.jfree.chart.axis.ValueAxis domainAxis,
org.jfree.chart.renderer.xy.XYItemRenderer renderer,
org.jfree.chart.axis.AxisLocation side)
add data set
|
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 |
add(org.jfree.data.xy.XYDataset dataset,
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
|
java.awt.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
|
java.awt.Color |
getDataAreaColor()
Get the DataAreaColor property.
|
java.lang.String |
getDateFormat()
Get the date format for this plot.
|
LineState |
getDomainLineState()
Get the DomainLineState property.
|
java.awt.Rectangle |
getLayoutRect()
Get the LayoutRect property.
|
protected void |
getMenuItems(java.util.List items)
get items
|
java.lang.String |
getName()
Get the Name property.
|
org.jfree.chart.plot.Plot |
getPlot()
get plot
|
java.awt.Dimension |
getPreferredSize()
Get the PreferredSize property.
|
protected void |
getPropertiesComponents(java.util.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(java.awt.event.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(java.awt.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(java.awt.Color value)
Set the DataAreaColor property.
|
void |
setDateFormat(java.lang.String dateFormat)
Set the date format for this plot.
|
void |
setDomainLineState(LineState value)
Set the DomainLineState property.
|
void |
setLayoutRect(java.awt.Rectangle value)
Set the LayoutRect property.
|
void |
setName(java.lang.String value)
Set the Name property.
|
void |
setPreferredSize(java.awt.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
|
protected org.jfree.chart.axis.AxisLocation lastSide
protected javax.swing.JCheckBox showThumbnailCbx
protected javax.swing.JCheckBox showTitleCbx
protected javax.swing.JComponent backgroundSwatch
protected javax.swing.JComponent dataAreaSwatch
protected javax.swing.JTextField nameFld
public ChartHolder()
public ChartHolder(ChartManager chartManager, java.lang.String name, java.awt.Dimension preferredSize)
chartManager
- The chart managername
- namepreferredSize
- sizeprotected boolean applyProperties()
protected void getPropertiesComponents(java.util.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(java.util.List items)
items
- itemsprotected void resetChartPanel()
public void keyPressed(java.awt.event.KeyEvent e)
e
- The eventprotected void panPlot(boolean right)
right
- to rightprotected 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.renderer.xy.XYItemRenderer renderer, org.jfree.chart.axis.AxisLocation side)
dataset
- datasetrenderer
- rendererside
- which sideprotected 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 sideprotected void add(org.jfree.data.xy.XYDataset dataset, org.jfree.chart.axis.ValueAxis rangeAxis, org.jfree.chart.axis.ValueAxis domainAxis, org.jfree.chart.renderer.xy.XYItemRenderer renderer, org.jfree.chart.axis.AxisLocation side)
dataset
- datasetrangeAxis
- axisdomainAxis
- axisrenderer
- rendererside
- which sidepublic boolean hasParameters()
public void setLayoutRect(java.awt.Rectangle value)
value
- The new value for LayoutRectpublic java.awt.Rectangle getLayoutRect()
public void setName(java.lang.String value)
value
- The new value for Namepublic java.lang.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(java.awt.Color value)
value
- The new value for BackgroundColorpublic java.awt.Color getBackgroundColor()
public void setDataAreaColor(java.awt.Color value)
value
- The new value for DataAreaColorpublic java.awt.Color getDataAreaColor()
public java.lang.String getDateFormat()
public void setDateFormat(java.lang.String dateFormat)
dateFormat
- The date format for this plot.public void setShowTitle(boolean value)
value
- The new value for ShowTitlepublic boolean getShowTitle()
public void setPreferredSize(java.awt.Dimension value)
value
- The new value for PreferredSizepublic java.awt.Dimension getPreferredSize()