Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 2 (11.1.2.0.0)

E17492-01

oracle.dss.gauge
Class GaugeLayout

java.lang.Object
  extended by oracle.dss.gauge.GaugeLayout

public class GaugeLayout
extends java.lang.Object

Since:
release specific (what release of product did this appear in)
For internal use only. Application developers should not use this
Internal class used to define layout and positioning of the gauge.

Field Summary
protected static int DIAL_HEIGHT
           
protected static int DIAL_MIN_GAP_PLOTAREA_GAUGEFRAME
           
protected static int GAP_GAUGEFRAME_LOWERLABELFRAME
           
protected static int GAP_GAUGESET_BOTTOM
           
protected static int GAP_GAUGESET_LEFT
           
protected static int GAP_GAUGESET_RIGHT
           
protected static int GAP_GAUGESET_TOP
           
protected static int GAP_TITLESEPARATOR_GAUGEFRAME
           
protected static int GAP_TOPLABEL_TITLESEPARATOR
           
protected static int GENERIC_GAUGESET_GAP
           
protected static int GENERIC_HORIZONTAL_GAP
           
protected static int GENERIC_VERTICAL_GAP
           
protected static int LED_SIZE
           
protected static int MAX_STATUSMETER_SIZE
           
protected static int MIN_STATUSMETER_SIZE
           
protected static int MIN_VERTICAL_STATUSMETER_LENGTH
           
protected static double STATUSMETER_INDICATOR_HEIGHT_RATIO
           
protected static int STATUSMETER_MIN_ROUNDED_SIZE
           
 
Constructor Summary
protected GaugeLayout(java.awt.Dimension imageSize)
          Constructor that stores the size of this gauge.
 
Method Summary
protected  int getGapHeight(int defaultGapSize)
          Returns the specified gap size scaled for the given image size.
protected  int getGapSize(int defaultGapSize)
          Returns the specified gap size scaled for the given image size.
protected  int getGapWidth(int defaultGapSize)
          Returns the specified gap size scaled for the given image size.
protected static int getStatusmeterIndicatorSize(int statusmeterSize)
          Returns the indicator size for a given statusmeter size.
protected  boolean isScalingUsed()
          Returns true if the size constants should be scaled.
protected  void setScalingUsed(boolean useScaling)
          Specifies whether the size constants should be scaled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GENERIC_HORIZONTAL_GAP

protected static final int GENERIC_HORIZONTAL_GAP
See Also:
Constant Field Values

GENERIC_VERTICAL_GAP

protected static final int GENERIC_VERTICAL_GAP
See Also:
Constant Field Values

GENERIC_GAUGESET_GAP

protected static final int GENERIC_GAUGESET_GAP
See Also:
Constant Field Values

GAP_GAUGESET_LEFT

protected static final int GAP_GAUGESET_LEFT
See Also:
Constant Field Values

GAP_GAUGESET_RIGHT

protected static final int GAP_GAUGESET_RIGHT
See Also:
Constant Field Values

GAP_GAUGESET_TOP

protected static final int GAP_GAUGESET_TOP
See Also:
Constant Field Values

GAP_GAUGESET_BOTTOM

protected static final int GAP_GAUGESET_BOTTOM
See Also:
Constant Field Values

GAP_TOPLABEL_TITLESEPARATOR

protected static final int GAP_TOPLABEL_TITLESEPARATOR
See Also:
Constant Field Values

GAP_TITLESEPARATOR_GAUGEFRAME

protected static final int GAP_TITLESEPARATOR_GAUGEFRAME
See Also:
Constant Field Values

GAP_GAUGEFRAME_LOWERLABELFRAME

protected static final int GAP_GAUGEFRAME_LOWERLABELFRAME
See Also:
Constant Field Values

DIAL_MIN_GAP_PLOTAREA_GAUGEFRAME

protected static final int DIAL_MIN_GAP_PLOTAREA_GAUGEFRAME
See Also:
Constant Field Values

DIAL_HEIGHT

protected static final int DIAL_HEIGHT
See Also:
Constant Field Values

MAX_STATUSMETER_SIZE

protected static final int MAX_STATUSMETER_SIZE
See Also:
Constant Field Values

MIN_STATUSMETER_SIZE

protected static final int MIN_STATUSMETER_SIZE
See Also:
Constant Field Values

MIN_VERTICAL_STATUSMETER_LENGTH

protected static final int MIN_VERTICAL_STATUSMETER_LENGTH
See Also:
Constant Field Values

LED_SIZE

protected static final int LED_SIZE
See Also:
Constant Field Values

STATUSMETER_INDICATOR_HEIGHT_RATIO

protected static final double STATUSMETER_INDICATOR_HEIGHT_RATIO
See Also:
Constant Field Values

STATUSMETER_MIN_ROUNDED_SIZE

protected static final int STATUSMETER_MIN_ROUNDED_SIZE
See Also:
Constant Field Values
Constructor Detail

GaugeLayout

protected GaugeLayout(java.awt.Dimension imageSize)
Constructor that stores the size of this gauge.

Parameters:
imageSize - this size of this individual gauge
Method Detail

setScalingUsed

protected void setScalingUsed(boolean useScaling)
Specifies whether the size constants should be scaled.

Parameters:
useScaling - true if the size constants should be scaled to image size

isScalingUsed

protected boolean isScalingUsed()
Returns true if the size constants should be scaled.

Returns:
true if the size constants should be scaled to image size

getGapWidth

protected int getGapWidth(int defaultGapSize)
Returns the specified gap size scaled for the given image size.

Parameters:
defaultGapSize - the size of the gap at default image size
Returns:
the scaled gap size in pixels

getGapHeight

protected int getGapHeight(int defaultGapSize)
Returns the specified gap size scaled for the given image size.

Parameters:
defaultGapSize - the size of the gap at default image size
Returns:
the scaled gap size in pixels

getGapSize

protected int getGapSize(int defaultGapSize)
Returns the specified gap size scaled for the given image size. Scales based on the smaller of the height or width scale factors.

Parameters:
defaultGapSize - the size of the gap at default image size
Returns:
the scaled gap size in pixels

getStatusmeterIndicatorSize

protected static int getStatusmeterIndicatorSize(int statusmeterSize)
Returns the indicator size for a given statusmeter size.

Parameters:
statusmeterSize - the height of a horizontal statusmeter or the width of a vertical statusmeter
Returns:
the indicator size

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 2 (11.1.2.0.0)

E17492-01

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