All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jclass.chart.JCTitle

java.lang.Object
   |
   +----jclass.chart.TrackChange
           |
           +----jclass.chart.ChartRegion
                   |
                   +----jclass.chart.ChartText
                           |
                           +----jclass.chart.JCTitle

public class JCTitle
extends ChartText
implements HTMLHandler
JCTitle manages and renders a title (a header or a footer). It relies heavily on ChartText.

Properties

Name Description
Adjust The Adjust property determines how text is justified or positioned in the title. Valid values include ChartText.LEFT, ChartText.CENTER and ChartText.RIGHT. Default value is ChartText.LEFT.
Background The Background property determines the background color used to draw inside the chart region. Note that the Background property is inherited from the parent ChartText.
BorderType Determines the style of border drawn around the JCTitle. Valid values come from BWTEnum, and include SHADOW_NONE, SHADOW_ETCHED_IN, SHADOW_ETCHED_OUT, SHADOW_IN, SHADOW_OUT, SHADOW_PLAIN, SHADOW_FRAME_IN, SHADOW_FRAME_OUT. Default value is BWTEnum.SHADOW_IN.
BorderWidth The BorderWidth property determines the width of the border drawn around the title. Default value is 2.
Font The Font property determines what font is used to render text inside the chart region. Note that the Font property is inherited from the parent ChartText.
Foreground The Foreground property determines the foreground color used to draw inside the chart region. Note that the Foreground property is inherited from the parent ChartText.
Height The Height property determines the height of the JCTitle. Default value is generated.
HeightIsDefault The HeightIsDefault property determines whether the height of the title is calculated by Chart (true) or taken from the Height property (false). Default value is true.
IsShowing The IsShowing property determines whether the associated title is currently visible. Default value is true.
Label The Label property determines the label that appears inside JCTitle. For backwards-compatability. Default value is calculated.
Left The Left property determines the location of the left of the JCTitle. Default value is generated.
LeftIsDefault The LeftIsDefault property determines whether the left position of the title is calculated by Chart (true) or taken from the Left property (false). Default value is true.
Name The Name property specifies a string identifier for the JCTitle object.
Parent The Parent property assures the connection to the chart on which the JCTitle appears. Default value is null.
ParentRegion The ParentRegion property is the ChartRegion parent. Default value is null.
Text The Text property controls the text displayed inside the title. The default value is " " (empty string).
Top The Top property determines the location of the top of the JCTitle. The default value is calculated.
TopIsDefault The TopIsDefault property determines whether the top position of the title is calculated by Chart (true) or taken from the Top property (false). Default value is true.
Width The Width property determines the width of the JCTitle. Default value is generated.
WidthIsDefault The WidthIsDefault property determines whether the width of the title is calculated by Chart (true) or taken from the Width property (false). Default value is true.


Constructor Index

 o JCTitle()
Simple JCTitle object constructor.

Method Index

 o draw(Graphics)
Renders the chart label using the provided graphics context.
 o getLabel()
Gets the label that appears inside JCTitle.
 o loadParams(String, JCChart)
Load JCChart parameters from HTML file
 o recalc()
Recalculates the contents of the chart region.
 o saveParams(String, JCChart)
Save JCChart parameters as HTML tags
 o setText(String)
Sets the Text property.
 o setText(String, boolean)
Sets the Text property.

Constructors

 o JCTitle
 public JCTitle()
Simple JCTitle object constructor. Created a ChartText for use by JCTitle

Methods

 o getLabel
 public ChartText getLabel()
Gets the label that appears inside JCTitle. For backwards-compatability

Returns:
ChartText instance corresponding to the label that appears inside the header/footer.
 o setText
 public void setText(String s)
Sets the Text property. For backwards-compatability - chart labels are JCStrings by default.

Parameters:
nc - new string contents of the ChartText instance.
Overrides:
setText in class ChartText
 o setText
 public void setText(String nc,
                     boolean jcs)
Sets the Text property.

Parameters:
nc - new string contents of the ChartText instance. If the jcs parameter is true, nc is parsed as a JCString.
jcs - if true, the string is converted to a JCString. Otherwise, the raw text is used in the label.
Overrides:
setText in class ChartText
 o recalc
 public void recalc()
Recalculates the contents of the chart region.

Overrides:
recalc in class ChartText
 o saveParams
 public void saveParams(String name,
                        JCChart comp)
Save JCChart parameters as HTML tags

Parameters:
name - the PARAM NAME
chart - the JCChart component
Overrides:
saveParams in class ChartText
 o loadParams
 public void loadParams(String name,
                        JCChart comp)
Load JCChart parameters from HTML file

Parameters:
name - the PARAM NAME
chart - the JCChart component
Overrides:
loadParams in class ChartText
 o draw
 public void draw(Graphics gc)
Renders the chart label using the provided graphics context.

Overrides:
draw in class ChartText

All Packages  Class Hierarchy  This Package  Previous  Next  Index