Class MeterFigure.XMeterLayout
java.lang.Object
org.eclipse.draw2d.AbstractLayout
org.eclipse.nebula.visualization.widgets.figures.MeterFigure.XMeterLayout
- All Implemented Interfaces:
org.eclipse.draw2d.LayoutManager
- Enclosing class:
- MeterFigure
class MeterFigure.XMeterLayout
extends org.eclipse.draw2d.AbstractLayout
-
Field Summary
Fields Modifier and Type Field 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 Rampstatic 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 Summary
Constructors Constructor Description XMeterLayout()
-
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
-
M
int M -
SCALE
public static final java.lang.String SCALEUsed as a constraint for the scale.- See Also:
- Constant Field Values
-
NEEDLE
public static final java.lang.String NEEDLEUsed as a constraint for the Needle.- See Also:
- Constant Field Values
-
RAMP
public static final java.lang.String RAMPUsed as a constraint for the Ramp- See Also:
- Constant Field Values
-
VALUE_LABEL
public static final java.lang.String VALUE_LABELUsed as a constraint for the value label- See Also:
- Constant Field Values
-
-
Constructor Details
-
XMeterLayout
XMeterLayout()
-
-
Method Details
-
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
-
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)
-