Class AnnotationConfigPage


  • public class AnnotationConfigPage
    extends java.lang.Object
    This will help to create the necessary widgets to configure an annotation's properties.
    • Field Detail

      • 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 is
        annotation - 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()