|
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.dss.gauge.GaugeType
oracle.dss.gauge.DialGauge
public class DialGauge
This implementation of GaugeType represents a dial gauge.
Field Summary | |
---|---|
protected static int |
GAUGEFRAME_GAP
|
Constructor Summary | |
---|---|
DialGauge(GaugeEngine engine)
|
Method Summary | |
---|---|
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 int |
_getPlotAreaCenter(java.util.Map map)
|
protected java.util.Collection |
_getThresholdObjects(java.util.Map map)
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 java.awt.geom.GeneralPath |
convertShapeToPath(java.awt.geom.GeneralPath path,
java.awt.geom.Arc2D shape,
java.awt.geom.Arc2D shape2)
|
protected int |
getAngleExtent()
|
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<DrawableObject> |
getIndicatorBaseObject(java.util.Map map)
Generates the DrawableObject instances necessary to render an IndicatorBase. |
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 |
getPlotAreaObject(java.util.Map map,
int type)
Generates the DrawableObject instances necessary to render a PlotArea. |
protected int |
getSpaceAroundGauge(java.util.Map map,
java.awt.Graphics2D g)
Returns the space in pixels around the gauge and within the gaugeFrame for a full circle gauge with gaugeFrame. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int GAUGEFRAME_GAP
Constructor Detail |
---|
public DialGauge(GaugeEngine engine)
Method Detail |
---|
public int getGaugeType()
getGaugeType
in class GaugeType
protected java.awt.Dimension autoLayout(java.awt.Graphics2D g, java.awt.Rectangle rect, java.util.Map map)
autoLayout
in class GaugeType
rect
- 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 GaugeType
map
- Map of attributes for this gaugetype
- Type of plot area to generate. Can be FILL_ONLY,
BORDER_ONLY, and FILL_AND_BORDER
DrawableObject
instancesprotected java.util.Collection getIndicatorObject(java.util.Map map, int metricIndex)
DrawableObject
instances necessary to render an Indicator.
getIndicatorObject
in class GaugeType
map
- Map of attributes for this gaugemetricIndex
- Index of the indicator
DrawableObject
instancesprotected java.util.Collection<DrawableObject> getIndicatorBaseObject(java.util.Map map)
DrawableObject
instances necessary to render an IndicatorBase.
map
- Map of attributes for this gauge
DrawableObject
instancesprotected java.util.Collection _getThresholdObjects(java.util.Map map)
DrawableObject
instances necessary to render an Threshold.
map
- Map of attributes for this gauge
DrawableObject
instancesprotected java.util.Collection getTickLabelObjects(java.util.Map map)
DrawableObject
instances necessary to render Tick Labels.
getTickLabelObjects
in class GaugeType
map
- Map of attributes for this gauge
DrawableObject
instancesprotected java.util.Collection getTickMarkObjects(java.util.Map map)
getTickMarkObjects
in class GaugeType
map
- Map of attributes for this gauge
DrawableObject
instancesprotected DrawableObject getNoDataLabelObject(java.util.Map map)
DrawableObject
instances necessary to render a No Data label.
getNoDataLabelObject
in class GaugeType
map
- Map of attributes for this gauge
DrawableObject
instancesprotected int getGaugeRadius(int availWidth, int availHeight)
getGaugeRadius
in class GaugeType
availHeight
- Integer representing the height
available for drawing the actual gaugeavailWidth
- Integer representing the width
available for drawing the actual gauge
protected java.awt.Rectangle getInnerBounds(java.util.Map map, java.awt.Rectangle rect, int reqAboveSpace, int reqBelowSpace, int reqLeftSpace, int reqRightSpace)
getInnerBounds
in class GaugeType
reqRightSpace
- 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 area
protected java.awt.Rectangle _getPlotAreaBounds(java.awt.Rectangle gaugeFrameBounds, java.util.Map map, java.awt.Graphics2D g)
_getPlotAreaBounds
in class GaugeType
gaugeFrameBounds
- map
-
protected int getMaxNumberOfSteps()
getMaxNumberOfSteps
in class GaugeType
protected java.util.Collection getGaugeFrameObject(java.util.Map map)
DrawableObject
instances necessary
to render the frame behind the gauge.
getGaugeFrameObject
in class GaugeType
map
- Map of attributes for this gauge
DrawableObject
instancesprotected java.util.Collection getGaugeLinkObject(java.util.Map map, java.awt.Rectangle outerBounds)
GaugeType
DrawableObject
instances necessary
to render the frame behind the gauge.
getGaugeLinkObject
in class GaugeType
map
- Map of attributes for this gaugeouterBounds
- Rectangle representing gauge and its background
DrawableObject
instancesprotected int getSpaceAroundGauge(java.util.Map map, java.awt.Graphics2D g)
map
- g
-
protected int _getPlotAreaCenter(java.util.Map map)
_getPlotAreaCenter
in class GaugeType
protected int getAngleExtent()
protected java.awt.geom.GeneralPath convertShapeToPath(java.awt.geom.GeneralPath path, java.awt.geom.Arc2D shape, java.awt.geom.Arc2D shape2)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |