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
-
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)
-
Field Details
-
SCALE
public static final java.lang.String SCALEUsed as a constraint for the scale.- See Also:
- Constant Field Values
-
TANK
public static final java.lang.String TANKUsed as a constraint for the pipe indicator.- See Also:
- Constant Field Values
-
MARKERS
public static final java.lang.String MARKERSUsed as a constraint for the alarm ticks- See Also:
- Constant Field Values
-
-
Constructor Details
-
TankLayout
TankLayout()
-
-
Method Details
-
calculatePreferredSize
protected org.eclipse.draw2d.geometry.Dimension calculatePreferredSize(org.eclipse.draw2d.IFigure container, int w, int h)- Specified by:
calculatePreferredSize
in classorg.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 interfaceorg.eclipse.draw2d.LayoutManager
- Overrides:
setConstraint
in classorg.eclipse.draw2d.AbstractLayout
-