|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.monitorenter.gui.chart.controls.LayoutFactory
public final class LayoutFactory
Factory that provides creational methods for adding UI controls to
Chart2D
instances and
ITrace2D
instances.
Nested Class Summary | |
---|---|
static class |
LayoutFactory.BasicPropertyAdaptSupport
Implementation for a PropertyChangeListener that adpapts a wrapped
JComponent to the following properties. |
static class |
LayoutFactory.PropertyChangeCheckBoxMenuItem
A JCheckBoxMenuItem that listens for changes of background color, foreground
color and font of the given JComponent and adapts it's own settings. |
static class |
LayoutFactory.PropertyChangeMenuItem
A JMenuItem that listens for changes of background color, foreground color and
font of the given JComponent and adapts it's own settings. |
static class |
LayoutFactory.SelectionPropertyAdaptSupport
Implementation for a PropertyChangeListener that adpapts a wrapped
JComponent to the following properties. |
Method Summary | |
---|---|
protected JMenuItem |
createAxisMenuItem(IAxis axis,
int axisDimension,
boolean adaptUI2Chart)
Creates a JMenuItem that allows to trigger the features related to
AAxis features. |
JMenu |
createAxisRangePolicyMenu(Chart2D chart,
IAxis axis,
boolean adaptUI2Chart)
Creates a radio button menu for choose one the available IRangePolicy implementations to set to it's axis identified
by argument axis . |
JMenu |
createAxisTitleMenu(Chart2D chart,
IAxis axis,
int axisDimension,
boolean adaptUI2Chart)
Creates a menu for settings related to the axis title of the axis of the given chart that will be identified by argument axisDimension . |
JMenu |
createAxisTypeMenu(Chart2D chart,
IAxis axis,
int axisDimension,
boolean adaptUI2Chart)
Creates a radio button menu for choose one the available axis types of the given chart that will be set to it's axis identified by argument axisDimension . |
JMenu |
createBackgroundColorMenu(Chart2D chart,
boolean adaptUI2Chart)
Creates a menu for choosing the background color of the given chart. |
JLabel |
createContextMenuLabel(Chart2D chart,
ITrace2D trace,
boolean adaptUI2Chart)
Creates a JLabel that is capable of triggering a JPopupMenu for
the settings available for the ITrace2D . |
JMenu |
createErrorBarWizardMenu(Chart2D chart,
ITrace2D trace,
boolean adaptUI2Chart)
Creates a menu for showing the wizard for the instances
of the given trace. |
JMenuItem |
createForegroundColorMenu(Chart2D chart,
boolean adaptUI2Chart)
Creates a menu for choosing the foreground color of the given chart. |
JMenu |
createGridColorMenu(Chart2D chart,
boolean adaptUI2Chart)
Creates a menu for choosing the grid color of the given chart. |
JMenu |
createMenu(Chart2D chart,
boolean adaptUI2Chart)
Creates a menu that offers various controls over the given chart. |
JMenuBar |
createMenuBar(Chart2D chart,
boolean adaptUI2Chart)
Creates a menu bar that offers various controls over the given chart. |
void |
createPopupMenu(Chart2D chart,
boolean adaptUI2Chart)
Adds a popup menu to the given chart that offers various controls over it. |
JMenu |
createTraceColorMenu(Chart2D chart,
ITrace2D trace,
JComponent parent,
boolean adaptUI2Chart)
Creates a menu for choosing the color of the given trace. |
JMenu |
createTracePainterMenu(Chart2D chart,
ITrace2D trace,
boolean adaptUI2Chart)
Creates a menu for choosing the ITracePainter of the given trace. |
JMenu |
createTraceStrokesMenu(Chart2D chart,
ITrace2D trace,
boolean adaptUI2Chart)
Creates a menu for choosing the Stroke of the given trace. |
JMenu |
createTraceZindexMenu(Chart2D chart,
ITrace2D trace,
boolean adaptUI2Chart)
Creates a menu for choosing the z-index of the given trace. |
static LayoutFactory |
getInstance()
Singleton retrival method. |
boolean |
isShowAxisXGridMenu()
Returns wether the chart show x grid menu should be created. |
boolean |
isShowAxisXMenu()
Returns whether the axis x menu is shown. |
boolean |
isShowAxisXRangePolicyMenu()
Returns whether the axis x range policy menu is shown. |
boolean |
isShowAxisXTypeMenu()
Returns whether the axis x type menu is shown. |
boolean |
isShowAxisYGridMenu()
Returns whether the axis y show grid menu is shown. |
boolean |
isShowAxisYMenu()
Returns whether the axis y menu is shown. |
boolean |
isShowAxisYRangePolicyMenu()
Returns whether the axis y range policy menu is shown. |
boolean |
isShowAxisYTypeMenu()
Returns whether the axis y type menu is shown. |
boolean |
isShowChartBackgroundMenu()
Returns whether the chart set background color menu is shown. |
boolean |
isShowChartForegroundMenu()
Returns whether the chart set foreground color menu is shown. |
boolean |
isShowGridColorMenu()
Returns whether the chart grid color menu is shown. |
protected boolean |
isShowPhysicalUnitsMenu()
|
protected boolean |
isShowRemoveTraceMenu()
|
boolean |
isShowSaveImageMenu()
Returns whether the save image menu is shown. |
boolean |
isShowTraceColorMenu()
|
boolean |
isShowTraceNameMenu()
|
boolean |
isShowTracePainterMenu()
|
boolean |
isShowTraceStrokeMenu()
|
boolean |
isShowTraceVisibleMenu()
|
boolean |
isShowTraceZindexMenu()
|
boolean |
isZoomOutMenu()
|
void |
setShowAxisXGridMenu(boolean showAxisXGridMenu)
Set wether the axis x show grid menu should be created. |
void |
setShowAxisXMenu(boolean showAxisXMenu)
Set wether the axis x menu should be created. |
void |
setShowAxisXRangePolicyMenu(boolean showAxisXRangePolicyMenu)
Set wether the axis x range policy menu should be created. |
void |
setShowAxisXTypeMenu(boolean showAxisXTypeMenu)
Set wether the axis x type menu should be created. |
void |
setShowAxisYGridMenu(boolean showAxisYGridMenu)
Set wether the axis y show grid menu should be created. |
void |
setShowAxisYMenu(boolean showAxisYMenu)
Set wether the axis y menu should be created. |
void |
setShowAxisYRangePolicyMenu(boolean showAxisYRangePolicyMenu)
Set wether the axis y range policy menu should be created. |
void |
setShowAxisYTypeMenu(boolean showAxisYTypeMenu)
Set wether the axis y type menu should be created. |
void |
setShowChartBackgroundMenu(boolean showChartBackgroundMenu)
Set wether the chart set background menu should be created. |
void |
setShowChartForegroundMenu(boolean showChartForegroundMenu)
Set wether the chart set foreground menu should be created. |
void |
setShowGridColorMenu(boolean showGridColorMenu)
Set wether the chart grid color menu should be created. |
protected void |
setShowPhysicalUnitsMenu(boolean showPhysicalUnitsMenu)
|
protected void |
setShowRemoveTraceMenu(boolean showRemoveTraceMenu)
|
void |
setShowSaveImageMenu(boolean showSaveImageMenu)
Set wether the save to image menu should be created. |
void |
setShowTraceColorMenu(boolean showTraceColorMenu)
|
void |
setShowTraceNameMenu(boolean showTraceNameMenu)
|
void |
setShowTracePainterMenu(boolean showTracePainterMenu)
|
void |
setShowTraceStrokeMenu(boolean showTraceStrokeMenu)
|
void |
setShowTraceVisibleMenu(boolean showTraceVisibleMenu)
|
void |
setShowTraceZindexMenu(boolean showTraceZindexMenu)
|
void |
setZoomOutMenu(boolean showZoomOutMenu)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static LayoutFactory getInstance()
protected JMenuItem createAxisMenuItem(IAxis axis, int axisDimension, boolean adaptUI2Chart)
JMenuItem
that allows to trigger the features related to
AAxis
features.
axis
- the axis to control.axisDimension
- Identifies which dimension the axis controls in the chart: either Chart2D.X
or Chart2D.Y
adaptUI2Chart
- if true the menu will adapt it's basic UI properies (font, foreground and background
color) to the given chart.
JMenuItem
that allows to trigger the features related to
AAxis
features.public JMenu createAxisRangePolicyMenu(Chart2D chart, IAxis axis, boolean adaptUI2Chart)
IRangePolicy
implementations to set to it's axis identified
by argument axis
.
axis
- the axis to control.adaptUI2Chart
- if true the menu will adapt it's basic UI properies (font, foreground and background
color) to the given chart.chart
- the component to adapt the UI of this menu if adaption is requested.
IRangePolicy
implementations to set to it's axis
identified by argument axis
.public JMenu createAxisTitleMenu(Chart2D chart, IAxis axis, int axisDimension, boolean adaptUI2Chart)
axisDimension
.
axis
- the axis to control.axisDimension
- Identifies which dimension the axis controls in the chart: either Chart2D.X
or Chart2D.Y
adaptUI2Chart
- if true the menu will adapt it's basic UI properies (font, foreground and background
color) to the given chart.chart
- the component to adapt the UI of this menu if adaption is requested.
axisDimension
.public JMenu createAxisTypeMenu(Chart2D chart, IAxis axis, int axisDimension, boolean adaptUI2Chart)
axisDimension
.
axis
- the axis to control.axisDimension
- Identifies which dimension the axis controls in the chart: either Chart2D.X
or Chart2D.Y
adaptUI2Chart
- if true the menu will adapt it's basic UI properies (font, foreground and background
color) to the given chart.chart
- the component to adapt the UI of this menu if adaption is requested.
axisDimension
.public JMenu createBackgroundColorMenu(Chart2D chart, boolean adaptUI2Chart)
chart
- the chart to set the background color of by the menu to return.adaptUI2Chart
- if true the menu will adapt it's basic UI properies (font, foreground and background
color) to the given chart.
public JLabel createContextMenuLabel(Chart2D chart, ITrace2D trace, boolean adaptUI2Chart)
JLabel
that is capable of triggering a JPopupMenu
for
the settings available for the ITrace2D
.
chart
- The chart the given trace is a member of. This will be used for getting a
PopupMenu
that adapts to layout properties (such as background
color).trace
- The trace on which the JPopupMenu
of the JLabel
will
act.adaptUI2Chart
- if true the menu will adapt it's basic UI properies (font, foreground and background
color) to the given chart.
public JMenu createErrorBarWizardMenu(Chart2D chart, ITrace2D trace, boolean adaptUI2Chart)
IErrorBarPolicy
instances
of the given trace.
chart
- needed to adapt the basic ui properties to (font, foreground color, background
color).trace
- the trace to show the error bar wizards of.adaptUI2Chart
- if true the menu will adapt it's basic UI properies (font, foreground and background
color) to the given chart.
ErrorBarWizard
dialogs for
the given trace.public JMenuItem createForegroundColorMenu(Chart2D chart, boolean adaptUI2Chart)
chart
- the chart to set the foreground color of by the menu to return.adaptUI2Chart
- if true the menu will adapt it's basic UI properies (font, foreground and background
color) to the given chart.
public JMenu createGridColorMenu(Chart2D chart, boolean adaptUI2Chart)
chart
- the chart to set the grid color of by the menu to return.adaptUI2Chart
- if true the menu will adapt it's basic UI properies (font, foreground and background
color) to the given chart.
public JMenu createMenu(Chart2D chart, boolean adaptUI2Chart)
chart
- the chart to access.adaptUI2Chart
- if true the menu will adapt it's basic UI properies (font, foreground and background
color) to the given chart.
public JMenuBar createMenuBar(Chart2D chart, boolean adaptUI2Chart)
chart
- the chart to access.adaptUI2Chart
- if true the menu will adapt it's basic UI properies (font, foreground and background
color) to the given chart.
public void createPopupMenu(Chart2D chart, boolean adaptUI2Chart)
chart
- the chart to add the popup menue to.adaptUI2Chart
- if true the menu will adapt it's basic UI properies (font, foreground and background
color) to the given chart.public JMenu createTraceColorMenu(Chart2D chart, ITrace2D trace, JComponent parent, boolean adaptUI2Chart)
chart
- needed to adapt the basic ui properties to (font, foreground color, background
color).trace
- the trace to set the color of.parent
- needed for a modal dialog for custom color as parent component.adaptUI2Chart
- if true the menu will adapt it's basic UI properies (font, foreground and background
color) to the given chart.
public JMenu createTracePainterMenu(Chart2D chart, ITrace2D trace, boolean adaptUI2Chart)
ITracePainter
of the given trace.
chart
- needed to adapt the basic ui properties to (font, foreground color, background
color).trace
- the trace to set the painter of.adaptUI2Chart
- if true the menu will adapt it's basic UI properies (font, foreground and background
color) to the given chart.
ITracePainter
of the given trace.public JMenu createTraceStrokesMenu(Chart2D chart, ITrace2D trace, boolean adaptUI2Chart)
Stroke
of the given trace.
chart
- needed to adapt the basic ui properties to (font, foreground color, background
color).trace
- the trace to set the stroke of.adaptUI2Chart
- if true the menu will adapt it's basic UI properies (font, foreground and background
color) to the given chart.
public JMenu createTraceZindexMenu(Chart2D chart, ITrace2D trace, boolean adaptUI2Chart)
chart
- needed to adapt the basic ui properties to (font, foreground color, background
color).trace
- the trace to set the z-index of.adaptUI2Chart
- if true the menu will adapt it's basic UI properies (font, foreground and background
color) to the given chart.
public final boolean isShowAxisXGridMenu()
public final boolean isShowAxisXMenu()
public final boolean isShowAxisXRangePolicyMenu()
public final boolean isShowAxisXTypeMenu()
public final boolean isShowAxisYGridMenu()
public final boolean isShowAxisYMenu()
public final boolean isShowAxisYRangePolicyMenu()
public final boolean isShowAxisYTypeMenu()
public final boolean isShowChartBackgroundMenu()
public final boolean isShowChartForegroundMenu()
public final boolean isShowGridColorMenu()
protected final boolean isShowPhysicalUnitsMenu()
protected final boolean isShowRemoveTraceMenu()
public final boolean isShowSaveImageMenu()
public final boolean isShowTraceColorMenu()
public final boolean isShowTraceNameMenu()
public final boolean isShowTracePainterMenu()
public final boolean isShowTraceStrokeMenu()
public final boolean isShowTraceVisibleMenu()
public final boolean isShowTraceZindexMenu()
public final boolean isZoomOutMenu()
public final void setShowAxisXGridMenu(boolean showAxisXGridMenu)
Configure this before using any instance of
ChartPanel
or it will be useless.
showAxisXGridMenu
- The showAxisXGridMenu to set.public final void setShowAxisXMenu(boolean showAxisXMenu)
Configure this before using any instance of
ChartPanel
or it will be useless.
showAxisXMenu
- The showAxisXMenu to set.public final void setShowAxisXRangePolicyMenu(boolean showAxisXRangePolicyMenu)
Configure this before using any instance of
ChartPanel
or it will be useless.
showAxisXRangePolicyMenu
- The showAxisXRangePolicyMenu to set.public final void setShowAxisXTypeMenu(boolean showAxisXTypeMenu)
Configure this before using any instance of
ChartPanel
or it will be useless.
showAxisXTypeMenu
- The showAxisXTypeMenu to set.public final void setShowAxisYGridMenu(boolean showAxisYGridMenu)
Configure this before using any instance of
ChartPanel
or it will be useless.
showAxisYGridMenu
- The showAxisYGridMenu to set.public final void setShowAxisYMenu(boolean showAxisYMenu)
Configure this before using any instance of
ChartPanel
or it will be useless.
showAxisYMenu
- The showAxisYMenu to set.public final void setShowAxisYRangePolicyMenu(boolean showAxisYRangePolicyMenu)
Configure this before using any instance of
ChartPanel
or it will be useless.
showAxisYRangePolicyMenu
- The showAxisYRangePolicyMenu to set.public final void setShowAxisYTypeMenu(boolean showAxisYTypeMenu)
Configure this before using any instance of
ChartPanel
or it will be useless.
showAxisYTypeMenu
- The showAxisYTypeMenu to set.public final void setShowChartBackgroundMenu(boolean showChartBackgroundMenu)
Configure this before using any instance of
ChartPanel
or it will be useless.
showChartBackgroundMenu
- The showChartBackgroundMenu to set.public final void setShowChartForegroundMenu(boolean showChartForegroundMenu)
Configure this before using any instance of
ChartPanel
or it will be useless.
showChartForegroundMenu
- The showChartForegroundMenu to set.public final void setShowGridColorMenu(boolean showGridColorMenu)
Configure this before using any instance of
ChartPanel
or it will be useless.
showGridColorMenu
- The showGridColorMenu to set.protected final void setShowPhysicalUnitsMenu(boolean showPhysicalUnitsMenu)
showPhysicalUnitsMenu
- The showPhysicalUnitsMenu to set.protected final void setShowRemoveTraceMenu(boolean showRemoveTraceMenu)
showRemoveTraceMenu
- The showRemoveTraceMenu to set.public final void setShowSaveImageMenu(boolean showSaveImageMenu)
Configure this before using any instance of
ChartPanel
or it will be useless.
showSaveImageMenu
- The showSaveImageMenu to set.public final void setShowTraceColorMenu(boolean showTraceColorMenu)
showTraceColorMenu
- The showTraceColorMenu to set.public final void setShowTraceNameMenu(boolean showTraceNameMenu)
showTraceNameMenu
- The showTraceNameMenu to set.public final void setShowTracePainterMenu(boolean showTracePainterMenu)
showTracePainterMenu
- The showTracePainterMenu to set.public final void setShowTraceStrokeMenu(boolean showTraceStrokeMenu)
showTraceStrokeMenu
- The showTraceStrokeMenu to set.public final void setShowTraceVisibleMenu(boolean showTraceVisibleMenu)
showTraceVisibleMenu
- The showTraceVisibleMenu to set.public final void setShowTraceZindexMenu(boolean showTraceZindexMenu)
showTraceZindexMenu
- The showTraceZindexMenu to set.public final void setZoomOutMenu(boolean showZoomOutMenu)
showZoomOutMenu
- The showZoomOutMenu to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |