Class MeterFigure.XMeterLayout

  • All Implemented Interfaces:
    org.eclipse.draw2d.LayoutManager
    Enclosing class:
    MeterFigure

    class MeterFigure.XMeterLayout
    extends org.eclipse.draw2d.AbstractLayout
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int GAP_BTW_NEEDLE_SCALE  
      (package private) int M  
      private org.eclipse.draw2d.Polygon needle  
      static java.lang.String NEEDLE
      Used as a constraint for the Needle.
      private org.eclipse.draw2d.geometry.PointList needlePoints  
      private RoundScaledRamp ramp  
      static java.lang.String RAMP
      Used as a constraint for the Ramp
      private RoundScale scale  
      static java.lang.String SCALE
      Used as a constraint for the scale.
      static java.lang.String VALUE_LABEL
      Used as a constraint for the value label
      private org.eclipse.draw2d.Label valueLabel  
      • Fields inherited from class org.eclipse.draw2d.AbstractLayout

        isObservingVisibility, preferredSize
    • Constructor Summary

      Constructors 
      Constructor Description
      XMeterLayout()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.eclipse.draw2d.geometry.Dimension calculatePreferredSize​(org.eclipse.draw2d.IFigure container, int w, int h)  
      void layout​(org.eclipse.draw2d.IFigure container)  
      void setConstraint​(org.eclipse.draw2d.IFigure child, java.lang.Object constraint)  
      • Methods inherited from class org.eclipse.draw2d.AbstractLayout

        calculatePreferredSize, getBorderPreferredSize, getConstraint, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, invalidate, invalidate, isObservingVisibility, remove, setObserveVisibility
      • Methods inherited from class java.lang.Object

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

      • M

        int M
      • SCALE

        public static final java.lang.String SCALE
        Used as a constraint for the scale.
        See Also:
        Constant Field Values
      • NEEDLE

        public static final java.lang.String NEEDLE
        Used as a constraint for the Needle.
        See Also:
        Constant Field Values
      • RAMP

        public static final java.lang.String RAMP
        Used as a constraint for the Ramp
        See Also:
        Constant Field Values
      • VALUE_LABEL

        public static final java.lang.String VALUE_LABEL
        Used as a constraint for the value label
        See Also:
        Constant Field Values
      • needle

        private org.eclipse.draw2d.Polygon needle
      • valueLabel

        private org.eclipse.draw2d.Label valueLabel
      • needlePoints

        private org.eclipse.draw2d.geometry.PointList needlePoints
    • Constructor Detail

      • XMeterLayout

        XMeterLayout()
    • Method Detail

      • setConstraint

        public void setConstraint​(org.eclipse.draw2d.IFigure child,
                                  java.lang.Object constraint)
        Specified by:
        setConstraint in interface org.eclipse.draw2d.LayoutManager
        Overrides:
        setConstraint in class org.eclipse.draw2d.AbstractLayout
      • calculatePreferredSize

        protected org.eclipse.draw2d.geometry.Dimension calculatePreferredSize​(org.eclipse.draw2d.IFigure container,
                                                                               int w,
                                                                               int h)
        Specified by:
        calculatePreferredSize in class org.eclipse.draw2d.AbstractLayout
      • layout

        public void layout​(org.eclipse.draw2d.IFigure container)