public class AxisTickPage extends AbstractSelectorPage
Modifier and Type | Field and Description |
---|---|
private IAxis[] |
axes
the axes
|
private static java.lang.String |
AXIS_TICK_FONT
the key for axis tick font
|
private static java.lang.String |
AXIS_TICK_FOREGROUND
the key for axis tick foreground
|
private org.eclipse.swt.widgets.Label |
fontSizeLabel
the label for font size
|
protected int[] |
fontSizes
the font sizes
|
protected org.eclipse.swt.widgets.Spinner |
fontSizeSpinner
the spinner for font size
|
protected org.eclipse.jface.preference.ColorSelector |
foregroundButton
the foreground button
|
protected org.eclipse.swt.graphics.RGB[] |
foregroundColors
the foreground colors
|
private org.eclipse.swt.widgets.Label |
foregroundLabel
the foreground label
|
protected org.eclipse.swt.widgets.Button |
showTickButton
the show tick button
|
protected boolean[] |
visibilityStates
the states indicating the visibility of axis ticks
|
list, selectedIndex
chart, resources
Constructor and Description |
---|
AxisTickPage(InteractiveChart chart,
PropertiesResources resources,
IAxis.Direction direction,
java.lang.String title)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addRightPanelContents(org.eclipse.swt.widgets.Composite parent)
Adds the contents on right panel.
|
private void |
addTickPanel(org.eclipse.swt.widgets.Composite parent)
Create the tick 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.
|
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_TICK_FONT
private static final java.lang.String AXIS_TICK_FOREGROUND
private IAxis[] axes
protected org.eclipse.swt.widgets.Button showTickButton
private org.eclipse.swt.widgets.Label fontSizeLabel
protected org.eclipse.swt.widgets.Spinner fontSizeSpinner
private org.eclipse.swt.widgets.Label foregroundLabel
protected org.eclipse.jface.preference.ColorSelector foregroundButton
protected boolean[] visibilityStates
protected int[] fontSizes
protected org.eclipse.swt.graphics.RGB[] foregroundColors
public AxisTickPage(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 addTickPanel(org.eclipse.swt.widgets.Composite parent)
parent
- the parent to add the tick panelprotected 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