class GaugeFigure.GaugeLayout
extends org.eclipse.draw2d.AbstractLayout
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NEEDLE
Used as a constraint for the Needle.
|
static java.lang.String |
NEEDLE_CENTER
Used as a constraint for the needleCenter
|
static java.lang.String |
RAMP
Used as a constraint for the Ramp
|
static java.lang.String |
SCALE
Used as a constraint for the scale.
|
static java.lang.String |
TITLE_LABEL
Used as a constraint for the title label
|
static java.lang.String |
UNIT_LABEL
Used as a constraint for the unit label
|
static java.lang.String |
VALUE_LABEL
Used as a constraint for the value label
|
| Constructor and Description |
|---|
GaugeLayout() |
| 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 NEEDLE
public static final java.lang.String RAMP
public static final java.lang.String NEEDLE_CENTER
public static final java.lang.String VALUE_LABEL
public static final java.lang.String UNIT_LABEL
public static final java.lang.String TITLE_LABEL
public void setConstraint(org.eclipse.draw2d.IFigure child,
java.lang.Object constraint)
setConstraint in interface org.eclipse.draw2d.LayoutManagersetConstraint in class org.eclipse.draw2d.AbstractLayoutprotected org.eclipse.draw2d.geometry.Dimension calculatePreferredSize(org.eclipse.draw2d.IFigure container,
int w,
int h)
calculatePreferredSize in class org.eclipse.draw2d.AbstractLayoutpublic void layout(org.eclipse.draw2d.IFigure container)