public class AxisPage extends AbstractSelectorPage
Modifier and Type | Field and Description |
---|---|
private IAxis[] |
axes
the axes
|
private static java.lang.String |
AXIS_TITLE_FONT
the key for axis title font
|
private static java.lang.String |
AXIS_TITLE_FOREGROUND
the key for axis title foreground
|
protected org.eclipse.swt.widgets.Button |
categoryButton
the category button
|
protected boolean[] |
categoryStates
the states indicating if category is enabled
|
private IAxis.Direction |
direction
the axis direction
|
private org.eclipse.swt.widgets.Label |
fontSizeLabel
the label for font size
|
protected org.eclipse.swt.widgets.Spinner |
fontSizeSpinner
the spinner for font size
|
protected org.eclipse.swt.widgets.Button |
logScaleButton
the log scale button
|
protected boolean[] |
logScaleStates
the states indicating if log scale is enabled
|
protected double[] |
maxRanges
the maximum ranges
|
protected org.eclipse.swt.widgets.Text |
maxRangeText
the maximum range text
|
protected double[] |
minRanges
the minimum ranges
|
protected org.eclipse.swt.widgets.Text |
minRangeText
the minimum range text
|
protected org.eclipse.swt.widgets.Combo |
positionCombo
the position combo box
|
protected IAxis.Position[] |
positions
the positions
|
protected org.eclipse.swt.widgets.Button |
showTitleButton
the show title button
|
protected org.eclipse.jface.preference.ColorSelector |
titleColorButton
the color selector button
|
private org.eclipse.swt.widgets.Label |
titleColorLabel
the label for title color
|
protected org.eclipse.swt.graphics.RGB[] |
titleColors
the title colors
|
protected int[] |
titleFontSizes
the title font sizes
|
private org.eclipse.swt.widgets.Label |
titleLabel
the label for title
|
protected org.eclipse.swt.widgets.Text |
titleText
the title text
|
protected java.lang.String[] |
titleTexts
the title texts
|
protected boolean[] |
titleVisibleStates
the states indicating id title is visible
|
list, selectedIndex
chart, resources
Constructor and Description |
---|
AxisPage(InteractiveChart chart,
PropertiesResources resources,
IAxis.Direction direction,
java.lang.String title)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
addAxisPanel(org.eclipse.swt.widgets.Composite parent)
Adds axis panel.
|
protected void |
addRightPanelContents(org.eclipse.swt.widgets.Composite parent)
Adds the contents on right panel.
|
private void |
addTitleGroup(org.eclipse.swt.widgets.Composite parent)
Adds title group.
|
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.
|
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 AXIS_TITLE_FONT
private static final java.lang.String AXIS_TITLE_FOREGROUND
private IAxis[] axes
private IAxis.Direction direction
protected org.eclipse.swt.widgets.Button showTitleButton
private org.eclipse.swt.widgets.Label titleLabel
protected org.eclipse.swt.widgets.Text titleText
private org.eclipse.swt.widgets.Label fontSizeLabel
protected org.eclipse.swt.widgets.Spinner fontSizeSpinner
private org.eclipse.swt.widgets.Label titleColorLabel
protected org.eclipse.jface.preference.ColorSelector titleColorButton
protected org.eclipse.swt.widgets.Text minRangeText
protected org.eclipse.swt.widgets.Text maxRangeText
protected org.eclipse.swt.widgets.Combo positionCombo
protected org.eclipse.swt.widgets.Button categoryButton
protected org.eclipse.swt.widgets.Button logScaleButton
protected boolean[] titleVisibleStates
protected java.lang.String[] titleTexts
protected int[] titleFontSizes
protected org.eclipse.swt.graphics.RGB[] titleColors
protected double[] minRanges
protected double[] maxRanges
protected IAxis.Position[] positions
protected boolean[] categoryStates
protected boolean[] logScaleStates
public AxisPage(InteractiveChart chart, PropertiesResources resources, IAxis.Direction direction, java.lang.String title)
chart
- the chartresources
- the properties resourcesdirection
- the directiontitle
- 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
protected void addRightPanelContents(org.eclipse.swt.widgets.Composite parent)
AbstractSelectorPage
addRightPanelContents
in class AbstractSelectorPage
parent
- the parent to add the contentsprivate void addAxisPanel(org.eclipse.swt.widgets.Composite parent)
parent
- the parent to add the axis panelprivate void addTitleGroup(org.eclipse.swt.widgets.Composite parent)
parent
- the parent to add the title 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