Class ThermometerFigure.ThermoLayout
- java.lang.Object
-
- org.eclipse.draw2d.AbstractLayout
-
- org.eclipse.nebula.visualization.widgets.figures.ThermometerFigure.ThermoLayout
-
- All Implemented Interfaces:
org.eclipse.draw2d.LayoutManager
- Enclosing class:
- ThermometerFigure
static class ThermometerFigure.ThermoLayout extends org.eclipse.draw2d.AbstractLayout
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.draw2d.IFigure
bulb
static java.lang.String
BULB
Used as a constraint for the bulb in the below of pipe.private LinearScaledMarker
marker
static java.lang.String
MARKERS
Used as a constraint for the alarm ticksprivate ThermometerFigure.Pipe
pipe
static java.lang.String
PIPE
Used as a constraint for the pipe indicator.private LinearScale
scale
static java.lang.String
SCALE
Used as a constraint for the scale.private org.eclipse.draw2d.IFigure
unit
static java.lang.String
UNIT
Used as a constraint for the unit label
-
Constructor Summary
Constructors Constructor Description ThermoLayout()
-
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)
-
-
-
Field Detail
-
SCALE
public static final java.lang.String SCALE
Used as a constraint for the scale.- See Also:
- Constant Field Values
-
PIPE
public static final java.lang.String PIPE
Used as a constraint for the pipe indicator.- See Also:
- Constant Field Values
-
MARKERS
public static final java.lang.String MARKERS
Used as a constraint for the alarm ticks- See Also:
- Constant Field Values
-
BULB
public static final java.lang.String BULB
Used as a constraint for the bulb in the below of pipe.- See Also:
- Constant Field Values
-
UNIT
public static final java.lang.String UNIT
Used as a constraint for the unit label- See Also:
- Constant Field Values
-
scale
private LinearScale scale
-
marker
private LinearScaledMarker marker
-
pipe
private ThermometerFigure.Pipe pipe
-
bulb
private org.eclipse.draw2d.IFigure bulb
-
unit
private org.eclipse.draw2d.IFigure unit
-
-
Method Detail
-
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
-
-