static class ThermometerFigure.ThermoLayout
extends org.eclipse.draw2d.AbstractLayout
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BULB
Used as a constraint for the bulb in the below of pipe.
|
static java.lang.String |
MARKERS
Used as a constraint for the alarm ticks
|
static java.lang.String |
PIPE
Used as a constraint for the pipe indicator.
|
static java.lang.String |
SCALE
Used as a constraint for the scale.
|
static java.lang.String |
UNIT
Used as a constraint for the unit label
|
Constructor and Description |
---|
ThermoLayout() |
Modifier and Type | Method and 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) |
public static final java.lang.String SCALE
public static final java.lang.String PIPE
public static final java.lang.String MARKERS
public static final java.lang.String BULB
public static final java.lang.String UNIT
protected org.eclipse.draw2d.geometry.Dimension calculatePreferredSize(org.eclipse.draw2d.IFigure container, int w, int h)
calculatePreferredSize
in class org.eclipse.draw2d.AbstractLayout
public void layout(org.eclipse.draw2d.IFigure container)
public void setConstraint(org.eclipse.draw2d.IFigure child, java.lang.Object constraint)
setConstraint
in interface org.eclipse.draw2d.LayoutManager
setConstraint
in class org.eclipse.draw2d.AbstractLayout