Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1.7.0)

E12063-08

oracle.dss.gauge
Class VennGauge

java.lang.Object
  extended by oracle.dss.gauge.GaugeType
      extended by oracle.dss.gauge.VennGauge

public class VennGauge
extends GaugeType

Since:
11.0
For internal use only. Application developers should not use this

Field Summary
protected static int LABEL_GAP
           
 
Fields inherited from class oracle.dss.gauge.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 Summary
VennGauge(GaugeEngine engine)
           
 
Method Summary
protected  java.util.Collection getGaugeFrameObject(java.util.Map map)
          Generates the DrawableObject instances necessary to render the raised background 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  java.util.Collection getLabelObjects(java.util.Map map, java.awt.Rectangle outerBounds)
          Generates the DrawableObject instances necessary to render gauge labels.
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 getSpaceAboveGauge(java.util.Map map, java.awt.Graphics2D g)
          Calculates the space needed above the gauge based on the attributes in the given map.
protected  int getSpaceBelowGauge(java.util.Map map, java.awt.Graphics2D g)
          Calculates the space needed below the gauge based on the attributes in the given map.
protected  int getSpaceLeftOfGauge(java.util.Map map, java.awt.Graphics2D g)
          Calculates the space needed to the left of the gauge based on the attributes in the given map.
protected  int getSpaceRightOfGauge(java.util.Map map, java.awt.Graphics2D g)
          Calculates the space needed to the right of the gauge based on the attributes in the given map.
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 oracle.dss.gauge.GaugeType
_blendColors, _calcCustomShapesLabelBounds, _calcLabelDimensions, _getIndicatorColor, _getIndicatorColor, _getMetricLabelBounds, _getPlotAreaBounds, _getPlotAreaCenter, _getTopLabelBounds, _getUpperLabelFrameBounds, _hasGaugeFrame, autoLayout, createTickMark, getBackgroundObject, getFrameHeight, getGaugeSetGap, getOverlayEffectObjects, getScalingTransform, getScalingTransform, getThresholdAttribute, getTickLabelWidth, getTranslateTransform, setCustomShapesParser, setLocale, updateResourceBundle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LABEL_GAP

protected static int LABEL_GAP
Constructor Detail

VennGauge

public VennGauge(GaugeEngine engine)
Method Detail

getGaugeType

public int getGaugeType()
Returns the type of this gauge type implementation.

Specified by:
getGaugeType in class GaugeType
Returns:
Integer representing the gauge type; valid constants are those in this class beginning with TYPE_.

getPlotAreaObject

protected java.util.Collection getPlotAreaObject(java.util.Map map,
                                                 int type)
Generates the DrawableObject instances necessary to render a PlotArea.

Specified by:
getPlotAreaObject in class GaugeType
Parameters:
map - Map of attributes for this gauge
type - Type of plot area to generate. Can be FILL_ONLY, BORDER_ONLY, and FILL_AND_BORDER
Returns:
Array of DrawableObject instances

getIndicatorObject

protected java.util.Collection getIndicatorObject(java.util.Map map,
                                                  int metricIndex)
Generates the DrawableObject instances necessary to render an Indicator.

Specified by:
getIndicatorObject in class GaugeType
Parameters:
map - Map of attributes for this gauge
metricIndex - Index of the indicator
Returns:
Array of DrawableObject instances

getTickLabelObjects

protected java.util.Collection getTickLabelObjects(java.util.Map map)
Generates the DrawableObject instances necessary to render Tick Labels.

Specified by:
getTickLabelObjects in class GaugeType
Parameters:
map - Map of attributes for this gauge
Returns:
Array of DrawableObject instances

getTickMarkObjects

protected java.util.Collection getTickMarkObjects(java.util.Map map)
Generates the DrawableObject instances necessary to render Tick Marks.

Specified by:
getTickMarkObjects in class GaugeType
Parameters:
map - Map of attributes for this gauge
_innerBounds - Rectangle in which objects can be drawn
Returns:
Collection of DrawableObject instances

getLabelObjects

protected java.util.Collection getLabelObjects(java.util.Map map,
                                               java.awt.Rectangle outerBounds)
Generates the DrawableObject instances necessary to render gauge labels.

Overrides:
getLabelObjects in class GaugeType
Parameters:
map - Map of attributes for this gauge
outerBounds - Rectangle in which the entire gauge and surrounding objects are drawn
Returns:
DrawableObject instances

getNoDataLabelObject

protected DrawableObject getNoDataLabelObject(java.util.Map map)
Generates the DrawableObject instances necessary to render a No Data label.

Specified by:
getNoDataLabelObject in class GaugeType
Parameters:
map - Map of attributes for this gauge
Returns:
Array of DrawableObject instances

getSpaceAboveGauge

protected int getSpaceAboveGauge(java.util.Map map,
                                 java.awt.Graphics2D g)
Calculates the space needed above the gauge based on the attributes in the given map.

Overrides:
getSpaceAboveGauge in class GaugeType
Parameters:
map - Map instance containing gauge attributes
g - Instance of Graphics2D to use for various font calculations
Returns:
Height in pixels of the space needed above the gauge.

getSpaceBelowGauge

protected int getSpaceBelowGauge(java.util.Map map,
                                 java.awt.Graphics2D g)
Calculates the space needed below the gauge based on the attributes in the given map.

Overrides:
getSpaceBelowGauge in class GaugeType
Parameters:
map - Map instance containing gauge attributes
g - Instance of Graphics2D to use for various font calculations
Returns:
Height in pixels of the space needed below the gauge.

getSpaceLeftOfGauge

protected int getSpaceLeftOfGauge(java.util.Map map,
                                  java.awt.Graphics2D g)
Calculates the space needed to the left of the gauge based on the attributes in the given map.

Overrides:
getSpaceLeftOfGauge in class GaugeType
Parameters:
map - Map instance containing gauge attributes
g - Instance of Graphics2D to use for various font calculations
Returns:
Height in pixels of the space needed to the left of the gauge.

getSpaceRightOfGauge

protected int getSpaceRightOfGauge(java.util.Map map,
                                   java.awt.Graphics2D g)
Calculates the space needed to the right of the gauge based on the attributes in the given map.

Overrides:
getSpaceRightOfGauge in class GaugeType
Parameters:
map - Map instance containing gauge attributes
g - Instance of Graphics2D to use for various font calculations
Returns:
Height in pixels of the space needed to the right of the gauge.

getGaugeRadius

protected int getGaugeRadius(int availWidth,
                             int availHeight)
Allows a gauge type to determine the radius of the gauge.

Specified by:
getGaugeRadius in class GaugeType
Parameters:
availHeight - Integer representing the height available for drawing the actual gauge
availWidth - Integer representing the width available for drawing the actual gauge
Returns:
Integer representing the radius of the gauge.

getInnerBounds

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.

Specified by:
getInnerBounds in class GaugeType
Parameters:
reqRightSpace - Integer indicating the space required to the right of the gauge
reqLeftSpace - Integer indicating the space required to the left of the gauge
reqBelowSpace - Integer indicating the space required below the gauge
reqAboveSpace - Integer indicating the space required above the gauge
rect - Rectangle indicating the initial working area
Returns:
Rectangle representing the area in which to draw the gauge

getMaxNumberOfSteps

protected int getMaxNumberOfSteps()
Allows a customization of the maximum number of steps to use for the tick labels and marks for this gauge type.

Specified by:
getMaxNumberOfSteps in class GaugeType
Returns:
Integer representing maximum number of tick steps

getGaugeFrameObject

protected java.util.Collection getGaugeFrameObject(java.util.Map map)
Generates the DrawableObject instances necessary to render the raised background behind the gauge.

Specified by:
getGaugeFrameObject in class GaugeType
Parameters:
map - Map of attributes for this gauge
outerBounds - Rectangle representing gauge and its background
_innerBounds - Rectangle representing gauge plot area
Returns:
Collection of DrawableObject instances

getGaugeLinkObject

protected java.util.Collection getGaugeLinkObject(java.util.Map map,
                                                  java.awt.Rectangle outerBounds)
Description copied from class: GaugeType
Generates the DrawableObject instances necessary to render the frame behind the gauge.

Specified by:
getGaugeLinkObject in class GaugeType
Parameters:
map - Map of attributes for this gauge
outerBounds - Rectangle representing gauge and its background
Returns:
Collection of DrawableObject instances

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1.7.0)

E12063-08

Copyright © 1997, 2013, Oracle. All rights reserved.