public class SeriesPage extends AbstractSelectorPage
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.jface.preference.ColorSelector |
barColorButton
the bar color button
|
protected org.eclipse.swt.graphics.RGB[] |
barColors
the bar colors
|
private org.eclipse.swt.widgets.Composite |
barSeriesGroup
the bar series group
|
protected org.eclipse.jface.preference.ColorSelector |
lineColorButton
the line color button
|
protected org.eclipse.swt.graphics.RGB[] |
lineColors
the line colors
|
private org.eclipse.swt.widgets.Composite |
lineSeriesGroup
the line series group
|
protected org.eclipse.swt.widgets.Combo |
lineStyleCombo
the line style combo
|
protected LineStyle[] |
lineStyles
the line styles
|
protected int[] |
paddings
the paddings
|
protected org.eclipse.swt.widgets.Spinner |
paddingSizeSpinner
the padding size spinner
|
private ISeries[] |
series
the series array
|
private static java.lang.String |
SERIES_BAR_COLOR
the key for series bar color
|
private static java.lang.String |
SERIES_LINE_COLOR
the key for series line color
|
private static java.lang.String |
SERIES_SYMBOL_COLOR
the key for series symbol color
|
protected org.eclipse.swt.widgets.Button |
stackedButton
the button for stack state
|
protected boolean[] |
stackedStates
the states indicating the series is stacked
|
private org.eclipse.swt.custom.StackLayout |
stackLayout
the stack layout
|
private org.eclipse.swt.widgets.Composite |
stackPanel
the stack panel
|
protected org.eclipse.jface.preference.ColorSelector |
symbolColorButton
the color selector for symbol
|
protected org.eclipse.swt.graphics.RGB[] |
symbolColors
the symbol colors
|
protected int[] |
symbolSizes
the symbol sizes
|
protected org.eclipse.swt.widgets.Spinner |
symbolSizeSpinner
the symbol size spinner
|
protected org.eclipse.swt.widgets.Combo |
symbolTypeCombo
the symbol type combo
|
protected ILineSeries.PlotSymbolType[] |
symbolTypes
the symbol types
|
protected org.eclipse.swt.widgets.Button |
visibleButton
the button for visibility
|
protected boolean[] |
visibleStates
the states indicating the visibility of series
|
protected org.eclipse.swt.widgets.Combo |
xAxisIdCombo
the x axis id combo
|
private int[] |
xAxisIdItems
the items for x axis id combo
|
protected int[] |
xAxisIds
the x axis ids
|
protected org.eclipse.swt.widgets.Combo |
yAxisIdCombo
the y axis id combo
|
private int[] |
yAxisIdItems
the items for y axis id combo
|
protected int[] |
yAxisIds
the y axis ids
|
list, selectedIndex
chart, resources
Constructor and Description |
---|
SeriesPage(InteractiveChart chart,
PropertiesResources resources,
java.lang.String title)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
addBarSeriesGroup(org.eclipse.swt.widgets.Composite parent)
Adds the bar series group.
|
private void |
addLineSeriesGroup(org.eclipse.swt.widgets.Composite parent)
Adds the line series group.
|
protected void |
addRightPanelContents(org.eclipse.swt.widgets.Composite parent)
Adds the contents on right panel.
|
private void |
addSeriesGroup(org.eclipse.swt.widgets.Composite parent)
Adds the series panel.
|
void |
apply()
Apply the values specified on controls.
|
protected java.lang.String[] |
getListItems()
Gets the list items.
|
protected void |
performDefaults() |
protected void |
selectInitialValues()
Selects value for each control.
|
protected void |
setControlsEnable(boolean enabled)
Sets the enable state of controls.
|
protected void |
updateControlSelections()
Updates the selection on controls.
|
private void |
updateStackPanel()
Updates the stack panel.
|
createContents
createCheckBoxControl, createColorButtonControl, createComboControl, createGroupControl, createLabelControl, createSpinnerControl, createTextControl, performOk
applyData, applyDialogFont, computeSize, contributeButtons, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, noDefaultButton, okToLeave, performApply, performCancel, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage, setVisible
private static final java.lang.String SERIES_LINE_COLOR
private static final java.lang.String SERIES_SYMBOL_COLOR
private static final java.lang.String SERIES_BAR_COLOR
protected org.eclipse.swt.widgets.Button visibleButton
protected org.eclipse.swt.widgets.Button stackedButton
protected org.eclipse.swt.widgets.Combo xAxisIdCombo
protected org.eclipse.swt.widgets.Combo yAxisIdCombo
protected org.eclipse.jface.preference.ColorSelector lineColorButton
protected org.eclipse.swt.widgets.Combo lineStyleCombo
protected org.eclipse.jface.preference.ColorSelector symbolColorButton
protected org.eclipse.swt.widgets.Combo symbolTypeCombo
protected org.eclipse.swt.widgets.Spinner symbolSizeSpinner
protected org.eclipse.jface.preference.ColorSelector barColorButton
protected org.eclipse.swt.widgets.Spinner paddingSizeSpinner
private ISeries[] series
private int[] xAxisIdItems
private int[] yAxisIdItems
protected boolean[] visibleStates
protected boolean[] stackedStates
protected int[] xAxisIds
protected int[] yAxisIds
protected org.eclipse.swt.graphics.RGB[] lineColors
protected LineStyle[] lineStyles
protected org.eclipse.swt.graphics.RGB[] symbolColors
protected ILineSeries.PlotSymbolType[] symbolTypes
protected int[] symbolSizes
protected org.eclipse.swt.graphics.RGB[] barColors
protected int[] paddings
private org.eclipse.swt.widgets.Composite stackPanel
private org.eclipse.swt.custom.StackLayout stackLayout
private org.eclipse.swt.widgets.Composite lineSeriesGroup
private org.eclipse.swt.widgets.Composite barSeriesGroup
public SeriesPage(InteractiveChart chart, PropertiesResources resources, java.lang.String title)
chart
- the chartresources
- the properties resourcestitle
- the titleprotected java.lang.String[] getListItems()
AbstractSelectorPage
getListItems
in class AbstractSelectorPage
protected void selectInitialValues()
AbstractSelectorPage
selectInitialValues
in class AbstractSelectorPage
protected void updateControlSelections()
AbstractSelectorPage
updateControlSelections
in class AbstractSelectorPage
private void updateStackPanel()
protected void addRightPanelContents(org.eclipse.swt.widgets.Composite parent)
AbstractSelectorPage
addRightPanelContents
in class AbstractSelectorPage
parent
- the parent to add the contentsprivate void addSeriesGroup(org.eclipse.swt.widgets.Composite parent)
parent
- the parent to add the series panelprivate void addLineSeriesGroup(org.eclipse.swt.widgets.Composite parent)
parent
- the parent to add the line series groupprivate void addBarSeriesGroup(org.eclipse.swt.widgets.Composite parent)
parent
- the parent to add the bar series groupprotected void setControlsEnable(boolean enabled)
enabled
- true if controls are enabledpublic void apply()
AbstractPage
apply
in class AbstractPage
protected void performDefaults()
performDefaults
in class org.eclipse.jface.preference.PreferencePage