com.jinsight.jetchart
Class GaugeFrame

java.lang.Object
  extended bycom.jinsight.jetchart.GaugeFrame

public class GaugeFrame
extends java.lang.Object

This class implements the properties of a gauge chart frame, which is made up of a circle or semi-circle surrounding the gauge area, the gauge area itself and a needle connector.

See Also:
GaugeGraph

Field Summary
static int RANGE_180
          Constant used to set the range of the gauge frame to 180 degrees.
static int RANGE_240
          Constant used to set the range of the gauge frame to 240 degrees.
static int RANGE_360
          Constant used to set the range of the gauge frame to 360 degrees.
static int RANGE_90
          Constant used to set the range of the gauge frame to 90 degrees.
 
Constructor Summary
GaugeFrame()
           
 
Method Summary
protected  void finalize()
           
 void setBorderColor(java.awt.Color borderColor)
          Sets the border color of the gauge frame.
 void setCenterOffset(int xCenterOffset, int yCenterOffset)
          Sets xy offset values to shift the center position of the gauge frame.
 void setColor(java.awt.Color color)
          Sets the filling color of the gauge frame area.
 void setNeedleConnectorColor(java.awt.Color needleConnectorColor)
          Sets the color of the needle connector.
 void setNeedleConnectorEnabled(boolean isNeedleConnectorEnabled)
          Enables/disables the needle connector point.
 void setStyle(int style)
          Sets the style of the gauge frame.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RANGE_360

public static final int RANGE_360
Constant used to set the range of the gauge frame to 360 degrees.

See Also:
Constant Field Values

RANGE_240

public static final int RANGE_240
Constant used to set the range of the gauge frame to 240 degrees.

See Also:
Constant Field Values

RANGE_180

public static final int RANGE_180
Constant used to set the range of the gauge frame to 180 degrees.

See Also:
Constant Field Values

RANGE_90

public static final int RANGE_90
Constant used to set the range of the gauge frame to 90 degrees.

See Also:
Constant Field Values
Constructor Detail

GaugeFrame

public GaugeFrame()
Method Detail

setStyle

public void setStyle(int style)
Sets the style of the gauge frame. Default style is RANGE_360, the gauge frame is a full circle.

Parameters:
style - One of the valid constants used to set the gauge frame style.
See Also:
RANGE_360, RANGE_240, RANGE_180, RANGE_90

setColor

public void setColor(java.awt.Color color)
Sets the filling color of the gauge frame area. Default color is Color.lightGray.

Parameters:
color - A Color object.

setBorderColor

public void setBorderColor(java.awt.Color borderColor)
Sets the border color of the gauge frame. Default color is Color.gray.

Parameters:
borderColor - A Color object.

setCenterOffset

public void setCenterOffset(int xCenterOffset,
                            int yCenterOffset)
Sets xy offset values to shift the center position of the gauge frame. By default, the xy offset values are zero.

Parameters:
xCenterOffset - An integer value.
yCenterOffset - An integer value.

setNeedleConnectorEnabled

public void setNeedleConnectorEnabled(boolean isNeedleConnectorEnabled)
Enables/disables the needle connector point. The needle connector is disabled by default.

Parameters:
isNeedleConnectorEnabled -

setNeedleConnectorColor

public void setNeedleConnectorColor(java.awt.Color needleConnectorColor)
Sets the color of the needle connector. Default color is Color.black.

Parameters:
needleConnectorColor - A Color object.
See Also:
setNeedleConnectorEnabled(boolean)

finalize

protected void finalize()
                 throws java.lang.Throwable
Throws:
java.lang.Throwable