class MeterFigure.XMeterLayout
extends org.eclipse.draw2d.AbstractLayout
Modifier and Type | Field and Description |
---|---|
(package private) int |
M |
static java.lang.String |
NEEDLE
Used as a constraint for the Needle.
|
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 |
VALUE_LABEL
Used as a constraint for the value label
|
Constructor and Description |
---|
XMeterLayout() |
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) |
int M
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 VALUE_LABEL
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
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)