public abstract class PlotWrapper extends ChartWrapper implements java.awt.event.KeyListener
Modifier and Type | Class and Description |
---|---|
protected class |
PlotWrapper.MyChartPanel
Class MyChartPanel adds items to a popup menu
|
ChartWrapper.FieldProperties
Modifier and Type | Field and Description |
---|---|
protected org.jfree.chart.JFreeChart |
chart
The chart
|
protected PlotWrapper.MyChartPanel |
chartPanel
The main chart gui component
|
protected static boolean |
EVENT_DONTPASSON
Used by the MyChartPanel event bridge
|
protected static boolean |
EVENT_PASSON
Used by the MyChartPanel event bridge
|
animationWidget, dataChoiceWrappers, PROP_SELECTEDTIME, PROP_TIMERANGE, timeFilterSource, timeSelectSource
CMD_SAVEIMAGE, CMD_SAVEMOVIE, displayControl, displayLabel, hasBeenInitialized, isRemoved, PROP_REMOVED
propertiesDialog
Constructor and Description |
---|
PlotWrapper()
Default ctor
|
PlotWrapper(java.lang.String name,
java.util.List dataChoices)
Ctor
|
Modifier and Type | Method and Description |
---|---|
void |
annotationChanged(ChartAnnotation chartAnnotation)
The annotation changed somehow
|
protected boolean |
applyProperties()
Apply properties
|
protected boolean |
canDoColors()
Can this chart do colors
|
java.lang.String |
chartPanelGetToolTipText(java.awt.event.MouseEvent event)
Hook to intercept these calls on the chart
|
boolean |
chartPanelMouseClicked(java.awt.event.MouseEvent e)
Hook to intercept these calls on the chart
|
boolean |
chartPanelMouseDragged(java.awt.event.MouseEvent event)
Hook to intercept these calls on the chart
|
boolean |
chartPanelMousePressed(java.awt.event.MouseEvent e)
Hook to intercept these calls on the chart
|
boolean |
chartPanelMouseReleased(java.awt.event.MouseEvent event)
Hook to intercept these calls on the chart
|
protected PlotWrapper.MyChartPanel |
doMakeChartPanel(org.jfree.chart.JFreeChart chart)
Make the panel for the chart
|
boolean |
getAutoRange()
Get the AutoRange property.
|
java.awt.Color |
getBackgroundColor()
Get the BackgroundColor property.
|
protected org.jfree.chart.ChartPanel |
getChartPanel()
Get the chart
|
java.awt.Color |
getDataAreaColor()
Get the DataAreaColor property.
|
LineState |
getDomainLineState()
Get the DomainLineState property.
|
protected java.util.List |
getPopupMenuItems(java.util.List items)
Get the menu items
|
protected java.awt.Dimension |
getPreferredChartSize()
Get the chart size
|
protected void |
getPropertiesComponents(java.util.List comps,
int tabIdx)
Create the properties contents
|
java.lang.String[] |
getPropertyTabs()
Get the list of tab names for the properties dialog
|
LineState |
getRangeLineState()
Get the RangeLineState property.
|
protected void |
initXYPlot(org.jfree.chart.plot.XYPlot plot)
Utility to init xy plots
|
void |
keyPressed(java.awt.event.KeyEvent e)
Handle event
|
void |
keyReleased(java.awt.event.KeyEvent e)
Noop
|
void |
keyTyped(java.awt.event.KeyEvent e)
Noop
|
boolean |
okToDraw(ChartAnnotation annotation)
Is the annotation ok to draw
|
protected void |
panPlot(boolean right)
Pan plot
|
protected void |
panPlot(boolean right,
double percent)
Pan the plot
|
void |
setAutoRange(boolean value)
Set the AutoRange property.
|
void |
setBackgroundColor(java.awt.Color value)
Set the BackgroundColor property.
|
void |
setDataAreaColor(java.awt.Color value)
Set the DataAreaColor property.
|
void |
setDomainLineState(LineState value)
Set the DomainLineState property.
|
void |
setName(java.lang.String value)
Set the Name property.
|
void |
setRangeLineState(LineState value)
Set the RangeLineState property.
|
void |
signalChartChanged()
update chart
|
addDataChoice, addDataChoices, addField, animationTimeChanged, applyJython, applyJython, canBeASourceForTimeSelectionEvents, canDoDataChoiceList, canDoDriveTime, canDoJython, canDoMinMaxDate, canDoParameters, canDoRemoveParameters, canDoResolution, canDoTimeFilters, canDoTimeSelect, canDoWrapperColor, canDoWrapperSide, createDataChoiceWrapper, doApplyProperties, doMakeWrapperDisplayComponent, doMultipleAddFields, doRemove, filterData, formatValue, getAnimationShareGroup, getCategories, getDataChoices, getDataChoiceWrappers, getDriveTime, getFieldSelectionLabels, getFlatField, getInterpreter, getJython, getMaxDate, getMinDate, getResolution, getShowTime, getTimeFilterRanges, getTimeFilterSource, getTimeRanges, getTimeSelectSource, getTimeValues, getTypeName, init, initDone, initializeJython, loadData, propertyChange, removeTimeFilterSource, removeTimeSelectSource, setAnimationShareGroup, setDataChoiceWrappers, setDriveTime, setJython, setMaxDate, setMinDate, setResolution, setShowTime, setTimeFilterSource, setTimeFromAnimation, setTimeSelectSource, wrapDataChoices
addGroupMenuItems, doMakeContents, doMakeDisplayLabel, doSaveImage, doSaveMovie, getContents, getDisplayables, getDisplayControl, getDisplayGroup, getDisplayLabel, getIsRemoved, getLabelShown, getName, initAfterUnPersistence, removeDisplayComponent, setDisplayControl, setDisplayGroup, setIsRemoved, setLabelShown, showPopup, showProperties, toString
addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyListeners, isShowing, removePropertyChangeListener, showProperties
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
protected static final boolean EVENT_PASSON
protected static final boolean EVENT_DONTPASSON
protected PlotWrapper.MyChartPanel chartPanel
protected org.jfree.chart.JFreeChart chart
public PlotWrapper()
public PlotWrapper(java.lang.String name, java.util.List dataChoices)
name
- The namedataChoices
- List of data choicespublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
keyReleased
in class ChartWrapper
e
- The eventpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
keyTyped
in class ChartWrapper
e
- The eventpublic boolean okToDraw(ChartAnnotation annotation)
annotation
- The annotationprotected boolean canDoColors()
public void annotationChanged(ChartAnnotation chartAnnotation)
chartAnnotation
- The annotationpublic java.lang.String[] getPropertyTabs()
getPropertyTabs
in class PropertiedThing
protected void getPropertiesComponents(java.util.List comps, int tabIdx)
getPropertiesComponents
in class ChartWrapper
comps
- List of componentstabIdx
- Which tabprotected boolean applyProperties()
applyProperties
in class ChartWrapper
protected java.util.List getPopupMenuItems(java.util.List items)
getPopupMenuItems
in class ChartWrapper
items
- List of menu itemspublic void setName(java.lang.String value)
setName
in class DisplayComponent
value
- The new value for Namepublic java.lang.String chartPanelGetToolTipText(java.awt.event.MouseEvent event)
event
- The eventpublic boolean chartPanelMousePressed(java.awt.event.MouseEvent e)
e
- The eventpublic boolean chartPanelMouseClicked(java.awt.event.MouseEvent e)
e
- The eventpublic boolean chartPanelMouseDragged(java.awt.event.MouseEvent event)
event
- The eventpublic boolean chartPanelMouseReleased(java.awt.event.MouseEvent event)
event
- The eventprotected org.jfree.chart.ChartPanel getChartPanel()
public void signalChartChanged()
protected PlotWrapper.MyChartPanel doMakeChartPanel(org.jfree.chart.JFreeChart chart)
chart
- The chartprotected void panPlot(boolean right)
right
- to rightprotected void panPlot(boolean right, double percent)
right
- to rightpercent
- by how muchpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
keyPressed
in class ChartWrapper
e
- The eventprotected void initXYPlot(org.jfree.chart.plot.XYPlot plot)
plot
- the plotxprotected java.awt.Dimension getPreferredChartSize()
public void setBackgroundColor(java.awt.Color value)
setBackgroundColor
in class DisplayComponent
value
- The new value for BackgroundColorpublic java.awt.Color getBackgroundColor()
getBackgroundColor
in class DisplayComponent
public void setDataAreaColor(java.awt.Color value)
value
- The new value for DataAreaColorpublic java.awt.Color getDataAreaColor()
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 setAutoRange(boolean value)
value
- The new value for AutoRangepublic boolean getAutoRange()