|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.preference.PreferencePage
org.infai.emo.matcher.editor.preferences.GraphicalPreferencesPage
public class GraphicalPreferencesPage
This is the preferences-page for the graphical settings of the plug-in.
PreferencePage,
IWorkbenchPreferencePage| Field Summary | |
|---|---|
private LineCalculations |
calculator
The calculator for getting informations on how to draw the lines. |
private org.eclipse.swt.graphics.Color |
color
The color for the matching-lines. |
private org.eclipse.swt.events.PaintListener |
colorPL
The PaintListener that contains the field for the color-change on this page. |
private org.eclipse.swt.widgets.Label |
labelColor
The describing label for the color-field. |
private org.eclipse.swt.graphics.Color |
oldLineColor
The old line color. |
private org.eclipse.swt.widgets.Canvas |
previewCanvas
The canvas on which the sample-lines are drawn. |
private java.util.Vector<Line> |
previewLines
This Vector contains all drawn lines on this page. |
private org.eclipse.swt.widgets.Text |
steps
The size of the steps for one color-grading for the lines. |
private org.eclipse.swt.widgets.Scale |
stepSizeScale
This slider serves as a setter for the step-size. |
private double |
stepsOldValue
The old value for the step-size. |
private double |
stepsValue
The current value of steps |
private org.eclipse.jface.preference.IPreferenceStore |
store
The preference-store for the plug-in which manages all set preferences. |
private org.eclipse.swt.widgets.Text |
threshold
The threshold that sets the matching-value which is minimum required for a tuple so that a line between its elements will be drawn. |
private double |
thresholdOldValue
The old value for the threshold. |
private org.eclipse.swt.widgets.Scale |
thresholdScale
This slider serves as a setter for the threshold. |
private double |
thresholdValue
The current value of threshold |
| Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
|---|
ERROR, INFORMATION, NONE, WARNING |
| Constructor Summary | |
|---|---|
GraphicalPreferencesPage()
|
|
| Method Summary | |
|---|---|
protected org.eclipse.swt.widgets.Control |
createContents(org.eclipse.swt.widgets.Composite parent)
|
void |
createControl(org.eclipse.swt.widgets.Composite parent)
|
void |
init(org.eclipse.ui.IWorkbench workbench)
|
protected void |
performApply()
|
boolean |
performCancel()
|
protected void |
performDefaults()
|
boolean |
performOk()
|
protected void |
updateColorLabel()
Updates the color-chooser-field when another color has been selected. |
private void |
updateMatchingLines()
This method updates the matching-lines on every canvas of the editors that are opened. |
private void |
updatePreview()
This method is responsible for updating the preview of the made settings. |
| Methods inherited from class org.eclipse.jface.preference.PreferencePage |
|---|
applyData, applyDialogFont, computeSize, contributeButtons, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton |
| Methods inherited from class org.eclipse.jface.dialogs.DialogPage |
|---|
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.jface.preference.IPreferencePage |
|---|
computeSize, isValid, okToLeave, setContainer, setSize |
| Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
|---|
dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible |
| Field Detail |
|---|
private org.eclipse.swt.graphics.Color color
Colorprivate org.eclipse.swt.widgets.Label labelColor
Labelprivate org.eclipse.swt.widgets.Text threshold
Textprivate org.eclipse.swt.widgets.Scale thresholdScale
Scaleprivate double thresholdValue
threshold
private org.eclipse.swt.widgets.Text steps
Textprivate org.eclipse.swt.widgets.Scale stepSizeScale
Scaleprivate double stepsValue
steps
private org.eclipse.swt.events.PaintListener colorPL
PaintListenerprivate LineCalculations calculator
LineCalculationsprivate org.eclipse.swt.widgets.Canvas previewCanvas
Canvasprivate java.util.Vector<Line> previewLines
Vector,
Lineprivate org.eclipse.jface.preference.IPreferenceStore store
IPreferenceStoreprivate double thresholdOldValue
private double stepsOldValue
private org.eclipse.swt.graphics.Color oldLineColor
Color| Constructor Detail |
|---|
public GraphicalPreferencesPage()
| Method Detail |
|---|
public void createControl(org.eclipse.swt.widgets.Composite parent)
createControl in interface org.eclipse.jface.dialogs.IDialogPagecreateControl in class org.eclipse.jface.preference.PreferencePageprotected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
createContents in class org.eclipse.jface.preference.PreferencePageprivate void updatePreview()
public void init(org.eclipse.ui.IWorkbench workbench)
init in interface org.eclipse.ui.IWorkbenchPreferencePageprotected void performDefaults()
performDefaults in class org.eclipse.jface.preference.PreferencePageprotected void updateColorLabel()
protected void performApply()
performApply in class org.eclipse.jface.preference.PreferencePagepublic boolean performCancel()
performCancel in interface org.eclipse.jface.preference.IPreferencePageperformCancel in class org.eclipse.jface.preference.PreferencePagepublic boolean performOk()
performOk in interface org.eclipse.jface.preference.IPreferencePageperformOk in class org.eclipse.jface.preference.PreferencePageprivate void updateMatchingLines()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||