Class ScaledSliderFigure.XSliderLayout
- java.lang.Object
-
- org.eclipse.draw2d.AbstractLayout
-
- org.eclipse.nebula.visualization.widgets.figures.ScaledSliderFigure.XSliderLayout
-
- All Implemented Interfaces:
org.eclipse.draw2d.LayoutManager
- Enclosing class:
- ScaledSliderFigure
class ScaledSliderFigure.XSliderLayout extends org.eclipse.draw2d.AbstractLayout
-
-
Field Summary
Fields Modifier and Type Field Description private static int
ADDITIONAL_MARGIN
private static int
GAP_BTW_THUMB_SCALE
private AlphaLabel
label
static java.lang.String
LABEL
Used as a constraint for the labelprivate static int
LABEL_MARGIN
private LinearScaledMarker
marker
static java.lang.String
MARKERS
Used as a constraint for the alarm ticksprivate LinearScale
scale
static java.lang.String
SCALE
Used as a constraint for the scale.private ScaledSliderFigure.Thumb
thumb
static java.lang.String
THUMB
Used as a constraint for the thumbprivate ScaledSliderFigure.Track
track
static java.lang.String
TRACK
Used as a constraint for the pipe indicator.
-
Constructor Summary
Constructors Constructor Description XSliderLayout()
-
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)
private void
horizontalLayout(org.eclipse.draw2d.IFigure container)
void
layout(org.eclipse.draw2d.IFigure container)
void
setConstraint(org.eclipse.draw2d.IFigure child, java.lang.Object constraint)
private void
setLabel()
private void
verticalLayout(org.eclipse.draw2d.IFigure container)
-
-
-
Field Detail
-
GAP_BTW_THUMB_SCALE
private static final int GAP_BTW_THUMB_SCALE
- See Also:
- Constant Field Values
-
ADDITIONAL_MARGIN
private static final int ADDITIONAL_MARGIN
- See Also:
- Constant Field Values
-
LABEL_MARGIN
private static final int LABEL_MARGIN
- 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
-
TRACK
public static final java.lang.String TRACK
Used as a constraint for the pipe indicator.- See Also:
- Constant Field Values
-
MARKERS
public static final java.lang.String MARKERS
Used as a constraint for the alarm ticks- 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
-
LABEL
public static final java.lang.String LABEL
Used as a constraint for the label- See Also:
- Constant Field Values
-
scale
private LinearScale scale
-
marker
private LinearScaledMarker marker
-
track
private ScaledSliderFigure.Track track
-
thumb
private ScaledSliderFigure.Thumb thumb
-
label
private AlphaLabel label
-
-
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
-
horizontalLayout
private void horizontalLayout(org.eclipse.draw2d.IFigure container)
-
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
-
setLabel
private void setLabel()
-
verticalLayout
private void verticalLayout(org.eclipse.draw2d.IFigure container)
-
-