Class AnnotationConfigPage
- java.lang.Object
-
- org.eclipse.nebula.visualization.internal.xygraph.toolbar.AnnotationConfigPage
-
public class AnnotationConfigPage extends java.lang.Object
This will help to create the necessary widgets to configure an annotation's properties.
-
-
Field Summary
Fields Modifier and Type Field Description private Annotation
annotation
private org.eclipse.swt.widgets.Label
colorLabel
private org.eclipse.jface.preference.ColorSelector
colorSelector
private org.eclipse.swt.widgets.Composite
composite
private org.eclipse.swt.widgets.Combo
cursorLineCombo
private org.eclipse.swt.graphics.Font
font
private org.eclipse.swt.widgets.Label
fontLabel
private org.eclipse.swt.widgets.Text
nameText
private org.eclipse.swt.widgets.Button
showNameButton
private org.eclipse.swt.widgets.Button
showPositionButton
private org.eclipse.swt.widgets.Button
showSampleInfoButton
private org.eclipse.swt.widgets.Button
snapToTrace
private org.eclipse.swt.widgets.Button
useDefaultColorButton
private org.eclipse.swt.widgets.Label
xAxisLabel
private org.eclipse.swt.widgets.Combo
xAxisOrTraceCombo
private IXYGraph
xyGraph
private org.eclipse.swt.widgets.Combo
yAxisCombo
private org.eclipse.swt.widgets.Label
yAxisLabel
-
Constructor Summary
Constructors Constructor Description AnnotationConfigPage(IXYGraph xyGraph, Annotation annotation)
Construct the annotation configuration page for a graph with a given annotation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyChanges()
void
createPage(org.eclipse.swt.widgets.Composite composite)
Annotation
getAnnotation()
org.eclipse.swt.widgets.Composite
getComposite()
private void
initialize()
void
setAnnotation(Annotation annotation)
-
-
-
Field Detail
-
xyGraph
private IXYGraph xyGraph
-
annotation
private Annotation annotation
-
nameText
private org.eclipse.swt.widgets.Text nameText
-
snapToTrace
private org.eclipse.swt.widgets.Button snapToTrace
-
useDefaultColorButton
private org.eclipse.swt.widgets.Button useDefaultColorButton
-
xAxisOrTraceCombo
private org.eclipse.swt.widgets.Combo xAxisOrTraceCombo
-
yAxisCombo
private org.eclipse.swt.widgets.Combo yAxisCombo
-
colorSelector
private org.eclipse.jface.preference.ColorSelector colorSelector
-
font
private org.eclipse.swt.graphics.Font font
-
cursorLineCombo
private org.eclipse.swt.widgets.Combo cursorLineCombo
-
showNameButton
private org.eclipse.swt.widgets.Button showNameButton
-
showSampleInfoButton
private org.eclipse.swt.widgets.Button showSampleInfoButton
-
showPositionButton
private org.eclipse.swt.widgets.Button showPositionButton
-
fontLabel
private org.eclipse.swt.widgets.Label fontLabel
-
composite
private org.eclipse.swt.widgets.Composite composite
-
xAxisLabel
private org.eclipse.swt.widgets.Label xAxisLabel
-
yAxisLabel
private org.eclipse.swt.widgets.Label yAxisLabel
-
colorLabel
private org.eclipse.swt.widgets.Label colorLabel
-
-
Constructor Detail
-
AnnotationConfigPage
public AnnotationConfigPage(IXYGraph xyGraph, Annotation annotation)
Construct the annotation configuration page for a graph with a given annotation- Parameters:
xyGraph
- graph where the annotation isannotation
- annotation for which the configuration page is made
-
-
Method Detail
-
createPage
public void createPage(org.eclipse.swt.widgets.Composite composite)
-
getComposite
public org.eclipse.swt.widgets.Composite getComposite()
- Returns:
- the composite
-
applyChanges
public void applyChanges()
-
getAnnotation
public Annotation getAnnotation()
- Returns:
- the annotation
-
setAnnotation
public void setAnnotation(Annotation annotation)
- Parameters:
annotation
- the annotation to set
-
initialize
private void initialize()
-
-