|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.idv.control.chart.ChartManager
public abstract class ChartManager
A time series chart
| Nested Class Summary | |
|---|---|
static class |
ChartManager.FixedWidthLogarithmicAxis
Class FixedWidthLogarithmicAxis fixed width log axis |
static class |
ChartManager.FixedWidthNumberAxis
Class FixedWidthNumberAxis fixed width axis |
| Field Summary | |
|---|---|
static int |
AXIS_WIDTH
width of axis_ |
protected List |
chartHolders
the charts |
protected JComponent |
contents
gui_ |
protected DisplayControlImpl |
control
my control |
static int |
LAYOUT_2COLGRID
chart layout type |
static int |
LAYOUT_3COLGRID
chart layout type |
static int |
LAYOUT_CARD
chart layout type |
static int |
LAYOUT_GRAPH
chart layout type |
static int |
LAYOUT_HSTACK
chart layout type |
static int |
LAYOUT_TAB
chart layout type |
static int |
LAYOUT_VSTACK
chart layout type |
protected Object |
MUTEX
for synching_ |
protected boolean |
okToDraw
ok to draw charts |
protected boolean |
settingData
currently setting data in chart_ |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ChartManager()
ctor |
|
ChartManager(DisplayControlImpl control)
ctor |
|
ChartManager(DisplayControlImpl control,
String chartName)
Default constructor. |
|
| Method Summary | |
|---|---|
protected void |
addChart(ChartHolder chartHolder)
add chart |
protected void |
addLineState(LineState lineState)
add line state |
protected void |
addRange(double min,
double max,
String name)
add a range |
void |
addViewMenuItems(List items)
add menu items |
protected boolean |
applyProperties(ChartHolder chartHolder)
apply properties to chart |
protected void |
chartNameChanged(String oldName,
String newName)
The chart name has changed |
protected void |
clearLineStates()
clear all saved line states |
protected void |
doMakeContents()
make gui |
abstract org.jfree.chart.plot.Plot |
doMakePlot()
factory method to make the plot |
protected void |
doneLoadingData()
Call this after you are done loading data into the charts. |
void |
editLayout()
change layout |
protected ChartHolder |
findChartHolder(String name)
find chart with name |
protected ChartHolder |
getChartHolder(LineState lineState)
Get the chart holder that is displaying the given line state. |
protected ChartHolder |
getChartHolder(String name)
find chart with name |
List |
getChartHolders()
Get the ChartHolders property. |
JComponent |
getContents()
get gui |
DisplayControlImpl |
getControl()
Get the Control property. |
List |
getCurrentRanges()
get the ranges |
protected String |
getDefaultChartName()
get name to use for default chart |
int |
getGridLayoutDimension()
Get the GridLayoutDimension property. |
int |
getLayout()
Get the Layout property. |
protected Object |
getMutex()
for synching the charts |
boolean |
getOkToDraw()
ok to draw chart |
List |
getPlotNames()
get list of chart names |
protected List |
getPlots()
Get the plots |
protected void |
getPopupMenuItems(ChartHolder chartHolder,
List items)
get menu items for chart |
protected Dimension |
getPreferredChartSize()
Get the preferred chart size |
protected void |
getPropertiesComponents(ChartHolder chartHolder,
List comps)
get properties widgets |
boolean |
getSettingData()
Are we currently setting data |
boolean |
getShowThumb()
Get the ShowThumb property. |
JLabel |
getThumb()
get thumb label |
boolean |
hasStuff()
do we have anything to show |
boolean |
imageUpdate(Image img,
int flags,
int x,
int y,
int width,
int height)
Handle the image update |
protected void |
initChart(ChartHolder chartHolder)
init chart |
protected void |
initCharts()
init all charts |
protected void |
initPlot(org.jfree.chart.plot.Plot plot)
init plot |
void |
saveImage()
Save the image |
void |
setChartHolders(List value)
Set the ChartHolders property. |
void |
setControl(DisplayControlImpl value)
Set the Control property. |
void |
setGridLayoutDimension(int value)
Set the GridLayoutDimension property. |
void |
setLayout(int value)
Set the Layout property. |
void |
setLayoutType(Integer i)
set layout |
void |
setShowThumb(boolean value)
Set the ShowThumb property. |
protected void |
showPropertiesDialog(ChartHolder chartHolder)
show dialog for chart |
void |
signalChartChanged()
Tell the chart holds that something changed |
protected void |
startLoadingData()
Call this before you start loading data into the charts. |
void |
timeChanged()
Stub for handling time change events. |
void |
timeChanged(Real value)
Stub for handling time change events. |
protected void |
updateContents()
update gui |
protected void |
updateContents(boolean force)
update gui |
void |
updateThumb()
update thumbnail legend image |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LAYOUT_HSTACK
public static final int LAYOUT_VSTACK
public static final int LAYOUT_2COLGRID
public static final int LAYOUT_3COLGRID
public static final int LAYOUT_GRAPH
public static final int LAYOUT_TAB
public static final int LAYOUT_CARD
public static final int AXIS_WIDTH
protected Object MUTEX
protected List chartHolders
protected DisplayControlImpl control
protected JComponent contents
protected boolean settingData
protected boolean okToDraw
| Constructor Detail |
|---|
public ChartManager()
public ChartManager(DisplayControlImpl control)
control - the control
public ChartManager(DisplayControlImpl control,
String chartName)
control - the controlchartName - name of default chart| Method Detail |
|---|
protected void addLineState(LineState lineState)
lineState - line statepublic void saveImage()
protected void clearLineStates()
protected void chartNameChanged(String oldName,
String newName)
oldName - old namenewName - new nameprotected void initCharts()
public List getCurrentRanges()
protected void addRange(double min,
double max,
String name)
min - minmax - maxname - nameprotected Object getMutex()
protected void initChart(ChartHolder chartHolder)
chartHolder - The chartprotected void initPlot(org.jfree.chart.plot.Plot plot)
plot - plotpublic abstract org.jfree.chart.plot.Plot doMakePlot()
protected List getPlots()
public void updateThumb()
public void signalChartChanged()
protected void doneLoadingData()
protected void startLoadingData()
protected void getPopupMenuItems(ChartHolder chartHolder,
List items)
chartHolder - chart_items - itemsprotected void showPropertiesDialog(ChartHolder chartHolder)
chartHolder - chart
protected void getPropertiesComponents(ChartHolder chartHolder,
List comps)
chartHolder - the chartcomps - compsprotected boolean applyProperties(ChartHolder chartHolder)
chartHolder - the chart
public void setLayoutType(Integer i)
i - layout typepublic void editLayout()
public void addViewMenuItems(List items)
items - itemspublic boolean getOkToDraw()
public boolean getSettingData()
public void timeChanged()
public void timeChanged(Real value)
value - the time value (may be null);
public boolean imageUpdate(Image img,
int flags,
int x,
int y,
int width,
int height)
imageUpdate in interface ImageObserverimg - imgflags - flagsx - xy - ywidth - widthheight - height
public boolean hasStuff()
public JComponent getContents()
public List getPlotNames()
protected ChartHolder getChartHolder(LineState lineState)
lineState - The line state
protected ChartHolder findChartHolder(String name)
name - name
protected ChartHolder getChartHolder(String name)
name - name
protected void addChart(ChartHolder chartHolder)
chartHolder - chartprotected Dimension getPreferredChartSize()
protected void doMakeContents()
protected String getDefaultChartName()
protected void updateContents()
protected void updateContents(boolean force)
force - always do itpublic JLabel getThumb()
public void setLayout(int value)
value - The new value for Layoutpublic int getLayout()
public void setGridLayoutDimension(int value)
value - The new value for GridLayoutDimensionpublic int getGridLayoutDimension()
public void setChartHolders(List value)
value - The new value for ChartHolderspublic List getChartHolders()
public void setControl(DisplayControlImpl value)
value - The new value for Controlpublic DisplayControlImpl getControl()
public void setShowThumb(boolean value)
value - The new value for ShowThumbpublic boolean getShowThumb()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||