public class ChartPage extends AbstractPage
Modifier and Type | Field and Description |
---|---|
private org.eclipse.jface.preference.ColorSelector |
backgroundButton
the color selector for background
|
private org.eclipse.jface.preference.ColorSelector |
backgroundInPlotAreaButton
the color selector for background color in plot area
|
private static java.lang.String |
CHART_BACKGROUND
the key for chart background
|
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.swt.widgets.Button |
orientationButton
the orientation button
|
private static java.lang.String |
PLOT_AREA_BACKGROUND
the key for plot area background
|
protected org.eclipse.swt.widgets.Button |
showTitleButton
the show title button
|
private static java.lang.String |
TITLE_FONT
the key for title font
|
private static java.lang.String |
TITLE_FOREGROUND
the key for chart background
|
private org.eclipse.jface.preference.ColorSelector |
titleColorButton
the title color button
|
private org.eclipse.swt.widgets.Label |
titleColorLabel
the title color label
|
private org.eclipse.swt.widgets.Label |
titleLabel
the title label
|
private org.eclipse.swt.widgets.Text |
titleText
the title text
|
chart, resources
Constructor and Description |
---|
ChartPage(InteractiveChart chart,
PropertiesResources resources,
java.lang.String title)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
addChartPanel(org.eclipse.swt.widgets.Composite parent)
Adds the chart panel.
|
private void |
addTitleGroup(org.eclipse.swt.widgets.Composite parent)
Adds the title group.
|
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 |
setTitleControlsEnable(boolean enabled)
Sets the enable state of title 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 PLOT_AREA_BACKGROUND
private static final java.lang.String CHART_BACKGROUND
private static final java.lang.String TITLE_FOREGROUND
private static final java.lang.String TITLE_FONT
private org.eclipse.jface.preference.ColorSelector backgroundInPlotAreaButton
private org.eclipse.jface.preference.ColorSelector backgroundButton
private org.eclipse.swt.widgets.Button orientationButton
protected org.eclipse.swt.widgets.Button showTitleButton
private org.eclipse.swt.widgets.Label titleLabel
private org.eclipse.swt.widgets.Text titleText
private org.eclipse.swt.widgets.Label fontSizeLabel
private org.eclipse.swt.widgets.Spinner fontSizeSpinner
private org.eclipse.swt.widgets.Label titleColorLabel
private org.eclipse.jface.preference.ColorSelector titleColorButton
public ChartPage(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 addChartPanel(org.eclipse.swt.widgets.Composite parent)
parent
- the parent to add the chart panelprivate void addTitleGroup(org.eclipse.swt.widgets.Composite parent)
parent
- the parent to add the title groupprivate void selectValues()
protected void setTitleControlsEnable(boolean enabled)
enabled
- true if title controls are enabledpublic void apply()
AbstractPage
apply
in class AbstractPage
protected void performDefaults()
performDefaults
in class org.eclipse.jface.preference.PreferencePage