Class KnobFigure.KnobLayout
- java.lang.Object
-
- org.eclipse.draw2d.AbstractLayout
-
- org.eclipse.nebula.visualization.widgets.figures.KnobFigure.KnobLayout
-
- All Implemented Interfaces:
org.eclipse.draw2d.LayoutManager
- Enclosing class:
- KnobFigure
class KnobFigure.KnobLayout extends org.eclipse.draw2d.AbstractLayout
-
-
Field Summary
Fields Modifier and Type Field Description private Bulb
bulb
static java.lang.String
BULB
Used as a constraint for the bulb.private static int
GAP_BTW_BULB_SCALE
private RoundScaledRamp
ramp
static java.lang.String
RAMP
Used as a constraint for the Rampprivate RoundScale
scale
static java.lang.String
SCALE
Used as a constraint for the scale.private KnobFigure.Thumb
thumb
static java.lang.String
THUMB
Used as a constraint for the thumbstatic java.lang.String
VALUE_LABEL
Used as a constraint for the value labelprivate org.eclipse.draw2d.Label
valueLabel
-
Constructor Summary
Constructors Constructor Description KnobLayout()
-
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
-
GAP_BTW_BULB_SCALE
private static final int GAP_BTW_BULB_SCALE
- See Also:
- Constant Field Values
-
SCALE
public static final java.lang.String SCALE
Used as a constraint for the scale.- See Also:
- Constant Field Values
-
BULB
public static final java.lang.String BULB
Used as a constraint for the bulb.- See Also:
- Constant Field Values
-
RAMP
public static final java.lang.String RAMP
Used as a constraint for the Ramp- See Also:
- Constant Field Values
-
THUMB
public static final java.lang.String THUMB
Used as a constraint for the thumb- See Also:
- Constant Field Values
-
VALUE_LABEL
public static final java.lang.String VALUE_LABEL
Used as a constraint for the value label- See Also:
- Constant Field Values
-
scale
private RoundScale scale
-
ramp
private RoundScaledRamp ramp
-
bulb
private Bulb bulb
-
thumb
private KnobFigure.Thumb thumb
-
valueLabel
private org.eclipse.draw2d.Label valueLabel
-
-
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
-
-