|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.collab.PropertiedThing
ucar.unidata.idv.control.multi.DisplayComponent
ucar.unidata.idv.control.chart.ChartWrapper
ucar.unidata.idv.control.chart.PlotWrapper
public abstract class PlotWrapper
Abstract class for chart implementations
| Nested Class Summary | |
|---|---|
protected class |
PlotWrapper.MyChartPanel
Class MyChartPanel adds items to a popup menu |
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.chart.ChartWrapper |
|---|
ChartWrapper.FieldProperties |
| Field Summary | |
|---|---|
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 |
| Fields inherited from class ucar.unidata.idv.control.chart.ChartWrapper |
|---|
animationWidget, dataChoiceWrappers, PROP_SELECTEDTIME, PROP_TIMERANGE, timeFilterSource, timeSelectSource |
| Fields inherited from class ucar.unidata.idv.control.multi.DisplayComponent |
|---|
CMD_SAVEIMAGE, CMD_SAVEMOVIE, displayControl, displayLabel, hasBeenInitialized, isRemoved, PROP_REMOVED |
| Fields inherited from class ucar.unidata.collab.PropertiedThing |
|---|
propertiesDialog |
| Constructor Summary | |
|---|---|
PlotWrapper()
Default ctor |
|
PlotWrapper(String name,
List dataChoices)
Ctor |
|
| Method Summary | |
|---|---|
void |
annotationChanged(ChartAnnotation chartAnnotation)
The annotation changed somehow |
protected boolean |
applyProperties()
Apply properties |
protected boolean |
canDoColors()
Can this chart do colors |
String |
chartPanelGetToolTipText(MouseEvent event)
Hook to intercept these calls on the chart |
boolean |
chartPanelMouseClicked(MouseEvent e)
Hook to intercept these calls on the chart |
boolean |
chartPanelMouseDragged(MouseEvent event)
Hook to intercept these calls on the chart |
boolean |
chartPanelMousePressed(MouseEvent e)
Hook to intercept these calls on the chart |
boolean |
chartPanelMouseReleased(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. |
Color |
getBackgroundColor()
Get the BackgroundColor property. |
protected org.jfree.chart.ChartPanel |
getChartPanel()
Get the chart |
Color |
getDataAreaColor()
Get the DataAreaColor property. |
LineState |
getDomainLineState()
Get the DomainLineState property. |
protected List |
getPopupMenuItems(List items)
Get the menu items |
protected Dimension |
getPreferredChartSize()
Get the chart size |
protected void |
getPropertiesComponents(List comps,
int tabIdx)
Create the properties contents |
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(KeyEvent e)
Handle event |
void |
keyReleased(KeyEvent e)
Noop |
void |
keyTyped(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(Color value)
Set the BackgroundColor property. |
void |
setDataAreaColor(Color value)
Set the DataAreaColor property. |
void |
setDomainLineState(LineState value)
Set the DomainLineState property. |
void |
setName(String value)
Set the Name property. |
void |
setRangeLineState(LineState value)
Set the RangeLineState property. |
void |
signalChartChanged()
update chart |
| Methods inherited from class ucar.unidata.idv.control.multi.DisplayComponent |
|---|
addGroupMenuItems, doMakeContents, doMakeDisplayLabel, doSaveImage, doSaveMovie, getContents, getDisplayables, getDisplayControl, getDisplayGroup, getDisplayLabel, getIsRemoved, getLabelShown, getName, initAfterUnPersistence, removeDisplayComponent, setDisplayControl, setDisplayGroup, setIsRemoved, setLabelShown, showPopup, showProperties, toString |
| Methods inherited from class ucar.unidata.collab.PropertiedThing |
|---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyListeners, isShowing, removePropertyChangeListener, showProperties |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final boolean EVENT_PASSON
protected static final boolean EVENT_DONTPASSON
protected PlotWrapper.MyChartPanel chartPanel
protected org.jfree.chart.JFreeChart chart
| Constructor Detail |
|---|
public PlotWrapper()
public PlotWrapper(String name,
List dataChoices)
name - The namedataChoices - List of data choices| Method Detail |
|---|
public void keyReleased(KeyEvent e)
keyReleased in interface KeyListenerkeyReleased in class ChartWrappere - The eventpublic void keyTyped(KeyEvent e)
keyTyped in interface KeyListenerkeyTyped in class ChartWrappere - The eventpublic boolean okToDraw(ChartAnnotation annotation)
annotation - The annotation
protected boolean canDoColors()
public void annotationChanged(ChartAnnotation chartAnnotation)
chartAnnotation - The annotationpublic String[] getPropertyTabs()
getPropertyTabs in class PropertiedThing
protected void getPropertiesComponents(List comps,
int tabIdx)
getPropertiesComponents in class ChartWrappercomps - List of componentstabIdx - Which tabprotected boolean applyProperties()
applyProperties in class ChartWrapperprotected List getPopupMenuItems(List items)
getPopupMenuItems in class ChartWrapperitems - List of menu items
public void setName(String value)
setName in class DisplayComponentvalue - The new value for Namepublic String chartPanelGetToolTipText(MouseEvent event)
event - The event
public boolean chartPanelMousePressed(MouseEvent e)
e - The event
public boolean chartPanelMouseClicked(MouseEvent e)
e - The event
public boolean chartPanelMouseDragged(MouseEvent event)
event - The event
public boolean chartPanelMouseReleased(MouseEvent event)
event - The event
protected org.jfree.chart.ChartPanel getChartPanel()
public void signalChartChanged()
protected PlotWrapper.MyChartPanel doMakeChartPanel(org.jfree.chart.JFreeChart chart)
chart - The chart
protected void panPlot(boolean right)
right - to right
protected void panPlot(boolean right,
double percent)
right - to rightpercent - by how muchpublic void keyPressed(KeyEvent e)
keyPressed in interface KeyListenerkeyPressed in class ChartWrappere - The eventprotected void initXYPlot(org.jfree.chart.plot.XYPlot plot)
plot - the plotxprotected Dimension getPreferredChartSize()
public void setBackgroundColor(Color value)
setBackgroundColor in class DisplayComponentvalue - The new value for BackgroundColorpublic Color getBackgroundColor()
getBackgroundColor in class DisplayComponentpublic void setDataAreaColor(Color value)
value - The new value for DataAreaColorpublic 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||