com.jinsight.jetchart
Class SideTitle

java.lang.Object
  |
  +--com.jinsight.jetchart.SideTitle
Direct Known Subclasses:
BottomTitle, LeftTitle, RightTitle

public abstract class SideTitle
extends java.lang.Object

This class implements the common properties and methods of the left, right and bottom titles.


Method Summary
protected  void finalize()
           
 void setFont(java.awt.Font font)
          Sets the title font.
 void setForeground(java.awt.Color foreground)
          Sets the title color.
 void setGap(int gap)
          Sets the gap between the title and the chart area.
 void setOpacityEnabled(boolean isOpacityEnabled)
          Enables/disables title opacity.
 void setText(java.lang.String text)
          Sets the title text.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setFont

public void setFont(java.awt.Font font)
Sets the title font.
Parameters:
font - A Font object.

setText

public void setText(java.lang.String text)
Sets the title text.
Parameters:
text - A String object.

setForeground

public void setForeground(java.awt.Color foreground)
Sets the title color.
Parameters:
foreground - A Color object.

setGap

public void setGap(int gap)
Sets the gap between the title and the chart area. Default value is 10.
Parameters:
gap - An integer number.

setOpacityEnabled

public void setOpacityEnabled(boolean isOpacityEnabled)
Enables/disables title opacity. If true, the title background is painted in the same color of the chart background. The left, right and bottom titles are transparent by default.
Parameters:
isOpacityEnabled - A boolean value.

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object