@Concealed public class VerticalStatusMeterGauge extends GaugeType
_bottomLabelBounds, _btmLblDim, _csParser, _engine, _gaugeBundle, _gaugeFrameBounds, _hasLowerReflection, _innerBounds, _layout, _lowerFrameDim, _lowerLabelFrameBounds, _metLblDim, _metricLabelBounds, _moveTransform, _scaleTransform, _titleSeparatorBounds, _topLabelBounds, _topLblDim, _upperFrameDim, _upperLabelFrameBounds, _utilBundle, DEF_TICK_LABEL, DIR_BOTTOM, DIR_LEFT, DIR_RIGHT, DIR_TOP, HEIGHT_LOWERLABELFRAME_REFLECTION, HEIGHT_TITLESEPARATOR, LABEL_SPACE, LED_GAUGESET_GAP, m_bBlended, m_locale, SHADOW_OFFSET, TICK_MARK_LENGTH| Constructor and Description |
|---|
VerticalStatusMeterGauge(GaugeEngine engine) |
| Modifier and Type | Method and Description |
|---|---|
protected java.awt.Rectangle |
_getPlotAreaBounds(java.awt.Rectangle gaugeFrameBounds,
java.util.Map map,
java.awt.Graphics2D g)
Calculates and returns the bounding box of the plotArea.
|
protected java.util.Collection |
_getThresholdObjects(java.util.Map map,
java.awt.geom.Area plotAreaMask)
Generates the
DrawableObject instances necessary to render an Threshold. |
protected java.awt.Dimension |
autoLayout(java.awt.Graphics2D g,
java.awt.Rectangle rect,
java.util.Map map)
Figures out the size of the gauge based on the size of each
component.
|
protected void |
createTickMarkObjects(java.util.List<DrawableObject> objects,
java.util.Map map,
int tickMarkType,
double xPos)
Generates the
DrawableObject instances necessary to render a specific
set of Tick Marks, based on the given tick mark type. |
protected java.util.Collection |
getGaugeFrameObject(java.util.Map map)
Generates the
DrawableObject instances necessary
to render the frame behind the gauge. |
protected java.util.Collection |
getGaugeLinkObject(java.util.Map map,
java.awt.Rectangle outerBounds)
Generates the
DrawableObject instances necessary
to render the frame behind the gauge. |
protected int |
getGaugeRadius(int availWidth,
int availHeight)
Allows a gauge type to determine the radius of the gauge.
|
int |
getGaugeType()
Returns the type of this gauge type implementation.
|
protected java.util.Collection |
getIndicatorObject(java.util.Map map,
int metricIndex)
Generates the
DrawableObject instances necessary to render an Indicator. |
protected java.awt.Rectangle |
getInnerBounds(java.util.Map map,
java.awt.Rectangle rect,
int reqAboveSpace,
int reqBelowSpace,
int reqLeftSpace,
int reqRightSpace)
Allows a gauge type implementation to determine the area
in which to draw the actual gauge.
|
protected int |
getMaxNumberOfSteps()
Allows a customization of the maximum number of steps
to use for the tick labels and marks for this gauge type.
|
protected DrawableObject |
getNoDataLabelObject(java.util.Map map)
Generates the
DrawableObject instances necessary to render a No Data label. |
protected java.util.Collection |
getOverlayEffectObjects(java.util.Map map)
Generates the
DrawableObject instances for any overlay
effects on the gauge. |
protected java.util.Collection |
getPlotAreaObject(java.util.Map map,
int type)
Generates the
DrawableObject instances necessary to render a PlotArea. |
protected java.util.Collection |
getTickLabelObjects(java.util.Map map)
Generates the
DrawableObject instances necessary to render Tick Labels. |
protected java.util.Collection |
getTickMarkObjects(java.util.Map map)
Generates the DrawableObject instances necessary to render Tick Marks.
|
_blendColors, _calcCustomShapesLabelBounds, _calcLabelDimensions, _getIndicatorColor, _getIndicatorColor, _getMetricLabelBounds, _getPlotAreaCenter, _getTopLabelBounds, _getUpperLabelFrameBounds, _hasGaugeFrame, createTickMark, getBackgroundObject, getFrameHeight, getGaugeSetGap, getLabelObjects, getScalingTransform, getScalingTransform, getSpaceAboveGauge, getSpaceBelowGauge, getSpaceLeftOfGauge, getSpaceRightOfGauge, getThresholdAttribute, getTickLabelWidth, getTranslateTransform, setCustomShapesParser, setLocale, updateResourceBundlepublic VerticalStatusMeterGauge(GaugeEngine engine)
public int getGaugeType()
getGaugeType in class GaugeTypeprotected java.awt.Dimension autoLayout(java.awt.Graphics2D g,
java.awt.Rectangle rect,
java.util.Map map)
autoLayout in class GaugeTyperect - Rectangle in which to base the layoutmap - attribute mapprotected java.util.Collection getPlotAreaObject(java.util.Map map,
int type)
DrawableObject instances necessary to render a PlotArea.getPlotAreaObject in class GaugeTypemap - Map of attributes for this gaugetype - Type of plot area to generate. Can be FILL_ONLY,
BORDER_ONLY, and FILL_AND_BORDERDrawableObject instancesprotected java.util.Collection getIndicatorObject(java.util.Map map,
int metricIndex)
DrawableObject instances necessary to render an Indicator.getIndicatorObject in class GaugeTypemap - Map of attributes for this gaugemindex - Index of the indicatorDrawableObject instancesprotected java.util.Collection _getThresholdObjects(java.util.Map map,
java.awt.geom.Area plotAreaMask)
DrawableObject instances necessary to render an Threshold.map - Map of attributes for this gaugeplotAreaMask - a shape within which to draw the thresholdsDrawableObject instancesprotected java.util.Collection getOverlayEffectObjects(java.util.Map map)
DrawableObject instances for any overlay
effects on the gauge.getOverlayEffectObjects in class GaugeTypemap - Map of attributes for this gaugeDrawableObject instancesprotected java.util.Collection getTickLabelObjects(java.util.Map map)
DrawableObject instances necessary to render Tick Labels.getTickLabelObjects in class GaugeTypemap - Map of attributes for this gaugeDrawableObject instancesprotected java.util.Collection getTickMarkObjects(java.util.Map map)
getTickMarkObjects in class GaugeTypemap - Map of attributes for this gaugeDrawableObject instancesprotected void createTickMarkObjects(java.util.List<DrawableObject> objects, java.util.Map map, int tickMarkType, double xPos)
DrawableObject instances necessary to render a specific
set of Tick Marks, based on the given tick mark type.objects - the List of DrawableObjects to add the tick marks intomap - Map of attributes for this gaugetickMarkType - Type of tick mark. Can be TC_MIN_MAX,
TC_INCREMENTS, TC_THRESHOLD, or TC_METRIC from
the GaugeAttributes class.xPos - double x-coordinate where the tick mark is placed.protected DrawableObject getNoDataLabelObject(java.util.Map map)
DrawableObject instances necessary to render a No Data label.getNoDataLabelObject in class GaugeTypemap - Map of attributes for this gaugeDrawableObject instancesprotected int getGaugeRadius(int availWidth,
int availHeight)
getGaugeRadius in class GaugeTypeavailHeight - Integer representing the height
available for drawing the actual gaugeavailWidth - Integer representing the width
available for drawing the actual gaugeprotected java.awt.Rectangle _getPlotAreaBounds(java.awt.Rectangle gaugeFrameBounds,
java.util.Map map,
java.awt.Graphics2D g)
_getPlotAreaBounds in class GaugeTypegaugeFrameBounds - map - protected java.awt.Rectangle getInnerBounds(java.util.Map map,
java.awt.Rectangle rect,
int reqAboveSpace,
int reqBelowSpace,
int reqLeftSpace,
int reqRightSpace)
getInnerBounds in class GaugeTypereqRightSpace - Integer indicating the space required
to the right of the gaugereqLeftSpace - Integer indicating the space required
to the left of the gaugereqBelowSpace - Integer indicating the space required
below the gaugereqAboveSpace - Integer indicating the space required
above the gaugerect - Rectangle indicating the initial working areaprotected int getMaxNumberOfSteps()
getMaxNumberOfSteps in class GaugeTypeprotected java.util.Collection getGaugeFrameObject(java.util.Map map)
DrawableObject instances necessary
to render the frame behind the gauge.getGaugeFrameObject in class GaugeTypemap - Map of attributes for this gaugeDrawableObject instancesprotected java.util.Collection getGaugeLinkObject(java.util.Map map,
java.awt.Rectangle outerBounds)
DrawableObject instances necessary
to render the frame behind the gauge.getGaugeLinkObject in class GaugeTypemap - Map of attributes for this gaugeouterBounds - Rectangle representing gauge and its backgroundDrawableObject instances