public class LegendPage extends AbstractPage
Modifier and Type | Field and Description |
---|---|
private org.eclipse.jface.preference.ColorSelector |
backgroundButton
the background button
|
private org.eclipse.swt.widgets.Label |
backgroundLabel
the background label
|
private org.eclipse.swt.widgets.Label |
fontSizeLabel
the font size label
|
private org.eclipse.swt.widgets.Spinner |
fontSizeSpinner
the font size spinner
|
private org.eclipse.jface.preference.ColorSelector |
foregroundButton
the foreground button
|
private org.eclipse.swt.widgets.Label |
foregroundLabel
the foreground label
|
private ILegend |
legend
the legend
|
private static java.lang.String |
LEGEND_FONT
the key for legend font
|
private static java.lang.String |
LEGEND_FOREGROUND
the key for legend foreground
|
private static java.lang.String |
LEGEND_GACKGROUND
the key for legend background
|
protected org.eclipse.swt.widgets.Button |
showLegendButton
the show legend button
|
chart, resources
Constructor and Description |
---|
LegendPage(InteractiveChart chart,
PropertiesResources resources,
java.lang.String title)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
addLegendPanel(org.eclipse.swt.widgets.Composite parent)
Adds the legend panel.
|
void |
apply()
Apply the values specified on controls.
|
protected org.eclipse.swt.widgets.Control |
createContents(org.eclipse.swt.widgets.Composite parent) |
protected void |
performDefaults() |
private void |
selectValues()
Selects the values for controls.
|
protected void |
setControlsEnable(boolean enabled)
Sets the enable state of controls.
|
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 LEGEND_FONT
private static final java.lang.String LEGEND_FOREGROUND
private static final java.lang.String LEGEND_GACKGROUND
protected org.eclipse.swt.widgets.Button showLegendButton
private org.eclipse.swt.widgets.Label backgroundLabel
private org.eclipse.jface.preference.ColorSelector backgroundButton
private org.eclipse.swt.widgets.Label foregroundLabel
private org.eclipse.jface.preference.ColorSelector foregroundButton
private org.eclipse.swt.widgets.Label fontSizeLabel
private org.eclipse.swt.widgets.Spinner fontSizeSpinner
private ILegend legend
public LegendPage(InteractiveChart chart, PropertiesResources resources, java.lang.String title)
chart
- the chartresources
- the properties resourcestitle
- the titleprotected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
createContents
in class org.eclipse.jface.preference.PreferencePage
private void addLegendPanel(org.eclipse.swt.widgets.Composite parent)
parent
- the parent to add the legend panelprivate void selectValues()
protected 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