Class TankFigure.TankLayout

java.lang.Object
org.eclipse.draw2d.AbstractLayout
org.eclipse.nebula.visualization.widgets.figures.TankFigure.TankLayout
All Implemented Interfaces:
org.eclipse.draw2d.LayoutManager
Enclosing class:
TankFigure

static class TankFigure.TankLayout
extends org.eclipse.draw2d.AbstractLayout
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String MARKERS
    Used as a constraint for the alarm ticks
    static java.lang.String SCALE
    Used as a constraint for the scale.
    static java.lang.String TANK
    Used as a constraint for the pipe indicator.

    Fields inherited from class org.eclipse.draw2d.AbstractLayout

    isObservingVisibility, preferredSize
  • Constructor Summary

    Constructors 
    Constructor Description
    TankLayout()  
  • Method Summary

    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 Details

  • Constructor Details

  • Method Details

    • 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)
    • 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