Class AbstractScaledWidgetFigure

java.lang.Object
org.eclipse.draw2d.Figure
org.csstudio.swt.widgets.figures.AbstractScaledWidgetFigure
All Implemented Interfaces:
Introspectable, org.eclipse.draw2d.IFigure
Direct Known Subclasses:
AbstractMarkedWidgetFigure

public abstract class AbstractScaledWidgetFigure extends org.eclipse.draw2d.Figure implements Introspectable
Base figure for a widget based on AbstractScaledWidgetModel.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.draw2d.Figure

    org.eclipse.draw2d.Figure.FigureIterator, org.eclipse.draw2d.Figure.IdentitySearch, org.eclipse.draw2d.Figure.ReverseFigureChildrenIterator

    Nested classes/interfaces inherited from interface org.eclipse.draw2d.IFigure

    org.eclipse.draw2d.IFigure.NoInsets
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     
    protected int
     
    protected double
     
    protected double
     
    protected org.eclipse.nebula.visualization.xygraph.linearscale.AbstractScale
     
    protected boolean
     
    protected boolean
     
    protected boolean
     
    protected double
     
    protected String
     

    Fields inherited from class org.eclipse.draw2d.Figure

    bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTip

    Fields inherited from interface org.eclipse.draw2d.IFigure

    MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    double
     
    double
    getCoercedValue(double v)
    Coerce a value into range of the scale.
    int
     
    double
     
    double
     
    org.eclipse.nebula.visualization.xygraph.linearscale.Range
     
    org.eclipse.nebula.visualization.xygraph.linearscale.AbstractScale
     
    double
     
     
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    void
    paintFigure(org.eclipse.draw2d.Graphics graphics)
     
    void
    setLogScale(boolean logScale)
     
    void
    setMajorTickMarkStepHint(int majorTickMarkStepHint)
     
    void
    setRange(double min, double max)
    set the range of the scale
    void
    setRange(org.eclipse.nebula.visualization.xygraph.linearscale.Range range)
     
    void
    setScale(org.eclipse.nebula.visualization.xygraph.linearscale.AbstractScale scale)
     
    void
    setShowMinorTicks(boolean showMinorTicks)
     
    void
    setShowScale(boolean showScale)
     
    void
    setTransparent(boolean transparent)
    Sets, if this widget should have a transparent background.
    void
    setValue(double value)
     
    void
    setValueLabelFormat(String valueLabelFormat)
     

    Methods inherited from class org.eclipse.draw2d.Figure

    add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, findMouseEventTargetInDescendantsAt, fireCoordinateSystemChanged, fireFigureMoved, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundColor, getBorder, getBounds, getChildren, getChildrenRevIterable, getClientArea, getClientArea, getClippingStrategy, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getListenersIterable, getLocalBackgroundColor, getLocalFont, getLocalForegroundColor, getLocation, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isMouseEventTarget, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, layout, optimizeClip, paint, paintBorder, paintChildren, paintClientArea, primTranslate, remove, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setClippingStrategy, setConstraint, setCursor, setEnabled, setFlag, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinates, validate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • scale

      protected org.eclipse.nebula.visualization.xygraph.linearscale.AbstractScale scale
    • transparent

      protected boolean transparent
    • value

      protected double value
    • minimum

      protected double minimum
    • maximum

      protected double maximum
    • majorTickMarkStepHint

      protected int majorTickMarkStepHint
    • showMinorTicks

      protected boolean showMinorTicks
    • showScale

      protected boolean showScale
    • logScale

      protected boolean logScale
    • valueLabelFormat

      protected String valueLabelFormat
  • Constructor Details

    • AbstractScaledWidgetFigure

      public AbstractScaledWidgetFigure()
  • Method Details

    • getBeanInfo

      public BeanInfo getBeanInfo() throws IntrospectionException
      Specified by:
      getBeanInfo in interface Introspectable
      Throws:
      IntrospectionException
    • getCoercedValue

      public double getCoercedValue()
      Returns:
      the coerced value of the widget based on the scale range.
    • getCoercedValue

      public double getCoercedValue(double v)
      Coerce a value into range of the scale.
      Parameters:
      v - the value to be coerced.
      Returns:
      the coerced value
    • getMajorTickMarkStepHint

      public int getMajorTickMarkStepHint()
      Returns:
      the majorTickMarkStepHint
    • getMaximum

      public double getMaximum()
      Returns:
      the maximum
    • getMinimum

      public double getMinimum()
      Returns:
      the minimum
    • getRange

      public org.eclipse.nebula.visualization.xygraph.linearscale.Range getRange()
    • getScale

      public org.eclipse.nebula.visualization.xygraph.linearscale.AbstractScale getScale()
      Returns:
      the scale
    • getValue

      public double getValue()
    • getValueLabelFormat

      public String getValueLabelFormat()
    • getValueText

      public String getValueText()
      Returns:
      the value text after format.
    • isLogScale

      public boolean isLogScale()
      Returns:
      the logScale
    • isOpaque

      public boolean isOpaque()
      Specified by:
      isOpaque in interface org.eclipse.draw2d.IFigure
      Overrides:
      isOpaque in class org.eclipse.draw2d.Figure
    • isShowMinorTicks

      public boolean isShowMinorTicks()
      Returns:
      the showMinorTicks
    • isShowScale

      public boolean isShowScale()
      Returns:
      the showScale
    • isTransparent

      public boolean isTransparent()
      Returns:
      the transparent
    • paintFigure

      public void paintFigure(org.eclipse.draw2d.Graphics graphics)
      Overrides:
      paintFigure in class org.eclipse.draw2d.Figure
    • setLogScale

      public void setLogScale(boolean logScale)
      Parameters:
      logScale - the logScale to set
    • setMajorTickMarkStepHint

      public void setMajorTickMarkStepHint(int majorTickMarkStepHint)
      Parameters:
      majorTickMarkStepHint - the majorTickMarkStepHint to set
    • setRange

      public void setRange(double min, double max)
      set the range of the scale
      Parameters:
      min -
      max -
    • setRange

      public void setRange(org.eclipse.nebula.visualization.xygraph.linearscale.Range range)
    • setScale

      public void setScale(org.eclipse.nebula.visualization.xygraph.linearscale.AbstractScale scale)
      Parameters:
      scale - the scale to set
    • setShowMinorTicks

      public void setShowMinorTicks(boolean showMinorTicks)
      Parameters:
      showMinorTicks - the showMinorTicks to set
    • setShowScale

      public void setShowScale(boolean showScale)
      Parameters:
      showScale - the showScale to set
    • setTransparent

      public void setTransparent(boolean transparent)
      Sets, if this widget should have a transparent background.
      Parameters:
      transparent - The new value for the transparent property
    • setValue

      public void setValue(double value)
      Parameters:
      value - the value to set
    • setValueLabelFormat

      public void setValueLabelFormat(String valueLabelFormat)
      Parameters:
      valueLabelFormat - the numeric format pattern for value label.