|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTabbedPane
org.jppf.ui.monitoring.charts.config.JPPFChartBuilder
public class JPPFChartBuilder
This class is used as a factory to create different charts, as well as for propagating the data updates to all defined charts.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTabbedPane |
|---|
JTabbedPane.AccessibleJTabbedPane, JTabbedPane.ModelListener |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JTabbedPane |
|---|
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUT |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JPPFChartBuilder()
Initialize this charts builder. |
|
| Method Summary | |
|---|---|
void |
addChart(TabConfiguration tab,
ChartConfiguration config)
Add a chart to a tab. |
void |
addTab(TabConfiguration tab)
Remove a tab from the list of tabs. |
ChartConfiguration |
createChart(ChartConfiguration config,
boolean preview)
Create a chart based on a chart configuration. |
void |
createDefaultCharts()
Create a set of default charts if none is defined. |
void |
createInitialCharts()
Create a set of default charts if none is defined. |
void |
dataUpdated(StatsHandlerEvent event)
Update the data displayed in the charts. |
PreferencesStorage |
getStorage()
Get the object used to store and retrieve the configuration, to and from the preferences tree. |
JTabbedPane |
getTabbedPane()
Get the tabbed pane in which each pane contains user-defined charts. |
List<TabConfiguration> |
getTabList()
Get the list of active tabs in this chart builder. |
JPanel |
getTabPanel(String tabName)
Get the tab chartPanel with the specified name. |
void |
removeChart(TabConfiguration tab,
ChartConfiguration config)
Remove a specified configuration from the list of active configurations. |
void |
removeTab(TabConfiguration tab)
Remove a tab from the list of tabs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JPPFChartBuilder()
| Method Detail |
|---|
public ChartConfiguration createChart(ChartConfiguration config,
boolean preview)
config - holds the configuration parameters for the chart created, modified by this method.preview - determines whether the configuration should be added to the list of active configurations or not.
A negative value means it's simply appended.
public void removeTab(TabConfiguration tab)
tab - the configuration information for the tab to remove.public void addTab(TabConfiguration tab)
tab - the configuration information for the tab to remove.
public void removeChart(TabConfiguration tab,
ChartConfiguration config)
tab - the configuration information for the tab containing the chart.config - the configuration to remove.public void dataUpdated(StatsHandlerEvent event)
dataUpdated in interface StatsHandlerListenerevent - holds the new stats values.public JTabbedPane getTabbedPane()
JTabbedPane instance.public List<TabConfiguration> getTabList()
public JPanel getTabPanel(String tabName)
tabName - the name of the tab to lookup.
JPanel instance.public void createInitialCharts()
public void createDefaultCharts()
public void addChart(TabConfiguration tab,
ChartConfiguration config)
tab - the tab to add a chart to.config - the chart to add.public PreferencesStorage getStorage()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||