Class AnnotationConfigPage
- java.lang.Object
-
- org.eclipse.nebula.visualization.internal.xygraph.toolbar.AnnotationConfigPage
-
public class AnnotationConfigPage extends java.lang.ObjectThis will help to create the necessary widgets to configure an annotation's properties.
-
-
Field Summary
Fields Modifier and Type Field Description private Annotationannotationprivate org.eclipse.swt.widgets.LabelcolorLabelprivate org.eclipse.jface.preference.ColorSelectorcolorSelectorprivate org.eclipse.swt.widgets.Compositecompositeprivate org.eclipse.swt.widgets.CombocursorLineComboprivate org.eclipse.swt.graphics.Fontfontprivate org.eclipse.swt.widgets.LabelfontLabelprivate org.eclipse.swt.widgets.TextnameTextprivate org.eclipse.swt.widgets.ButtonshowNameButtonprivate org.eclipse.swt.widgets.ButtonshowPositionButtonprivate org.eclipse.swt.widgets.ButtonshowSampleInfoButtonprivate org.eclipse.swt.widgets.ButtonsnapToTraceprivate org.eclipse.swt.widgets.ButtonuseDefaultColorButtonprivate org.eclipse.swt.widgets.LabelxAxisLabelprivate org.eclipse.swt.widgets.ComboxAxisOrTraceComboprivate IXYGraphxyGraphprivate org.eclipse.swt.widgets.ComboyAxisComboprivate org.eclipse.swt.widgets.LabelyAxisLabel
-
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 voidapplyChanges()voidcreatePage(org.eclipse.swt.widgets.Composite composite)AnnotationgetAnnotation()org.eclipse.swt.widgets.CompositegetComposite()private voidinitialize()voidsetAnnotation(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()
-
-