Class GaugeFigure.GaugeLayout
- java.lang.Object
-
- org.eclipse.draw2d.AbstractLayout
-
- org.eclipse.nebula.visualization.widgets.figures.GaugeFigure.GaugeLayout
-
- All Implemented Interfaces:
org.eclipse.draw2d.LayoutManager
- Enclosing class:
- GaugeFigure
class GaugeFigure.GaugeLayout extends org.eclipse.draw2d.AbstractLayout
-
-
Field Summary
Fields Modifier and Type Field Description private static intGAP_BTW_NEEDLE_SCALEprivate org.eclipse.draw2d.Polygonneedlestatic java.lang.StringNEEDLEUsed as a constraint for the Needle.static java.lang.StringNEEDLE_CENTERUsed as a constraint for the needleCenterprivate GaugeFigure.NeedleCenterneedleCenterprivate org.eclipse.draw2d.geometry.PointListneedlePointsprivate RoundScaledRamprampstatic java.lang.StringRAMPUsed as a constraint for the Rampprivate RoundScalescalestatic java.lang.StringSCALEUsed as a constraint for the scale.static java.lang.StringTITLE_LABELUsed as a constraint for the title labelprivate org.eclipse.draw2d.LabeltitleLabelstatic java.lang.StringUNIT_LABELUsed as a constraint for the unit labelprivate org.eclipse.draw2d.LabelunitLabelstatic java.lang.StringVALUE_LABELUsed as a constraint for the value labelprivate org.eclipse.draw2d.LabelvalueLabel
-
Constructor Summary
Constructors Constructor Description GaugeLayout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.draw2d.geometry.DimensioncalculatePreferredSize(org.eclipse.draw2d.IFigure container, int w, int h)voidlayout(org.eclipse.draw2d.IFigure container)voidsetConstraint(org.eclipse.draw2d.IFigure child, java.lang.Object constraint)
-
-
-
Field Detail
-
GAP_BTW_NEEDLE_SCALE
private static final int GAP_BTW_NEEDLE_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
-
NEEDLE
public static final java.lang.String NEEDLE
Used as a constraint for the Needle.- 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
-
NEEDLE_CENTER
public static final java.lang.String NEEDLE_CENTER
Used as a constraint for the needleCenter- 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
-
UNIT_LABEL
public static final java.lang.String UNIT_LABEL
Used as a constraint for the unit label- See Also:
- Constant Field Values
-
TITLE_LABEL
public static final java.lang.String TITLE_LABEL
Used as a constraint for the title label- See Also:
- Constant Field Values
-
scale
private RoundScale scale
-
ramp
private RoundScaledRamp ramp
-
needle
private org.eclipse.draw2d.Polygon needle
-
needleCenter
private GaugeFigure.NeedleCenter needleCenter
-
valueLabel
private org.eclipse.draw2d.Label valueLabel
-
titleLabel
private org.eclipse.draw2d.Label titleLabel
-
unitLabel
private org.eclipse.draw2d.Label unitLabel
-
needlePoints
private org.eclipse.draw2d.geometry.PointList needlePoints
-
-
Method Detail
-
setConstraint
public void setConstraint(org.eclipse.draw2d.IFigure child, java.lang.Object constraint)- Specified by:
setConstraintin interfaceorg.eclipse.draw2d.LayoutManager- Overrides:
setConstraintin classorg.eclipse.draw2d.AbstractLayout
-
calculatePreferredSize
protected org.eclipse.draw2d.geometry.Dimension calculatePreferredSize(org.eclipse.draw2d.IFigure container, int w, int h)- Specified by:
calculatePreferredSizein classorg.eclipse.draw2d.AbstractLayout
-
layout
public void layout(org.eclipse.draw2d.IFigure container)
-
-