Summ:  Fields Constr. Methods    Details:  Constr. Methods      Class:  Prev Next
com.artfulbits.aiCharts.Base
Class ChartTitle

java.lang.Object com.artfulbits.aiCharts.Base.ChartLayoutElement com.artfulbits.aiCharts.Base.ChartTitle

Declaration: public final class ChartTitle extends ChartLayoutElement
All Interfaces: ILayout.IElement

 

Represents title text element. Adding titles to your char will give more idea of data that chart represents.

 

Since: 1.0

 

 

Fields Summary

 

Fields inherited from class: com.artfulbits.aiCharts.Base.ChartLayoutElement
ALIGNMENT_CENTER, ALIGNMENT_FAR, ALIGNMENT_NEAR, ALIGNMENT_STRETCH, DOCK_BOTTOM, DOCK_LEFT, DOCK_RIGHT, DOCK_TOP

 

 

Constructors Summary
ChartTitle()
    
Initializes a new instance of ChartTile class.
ChartTitle(java.lang.String text)
    
Initializes a new instance of ChartTile class with parameter specified.
ChartTitle(java.lang.String text, int dock)
    
Initializes a new instance of ChartTile class with parameter specified.

 

 

Methods Summary
Background getBackground()
    
Gets Background object used to draw background of element.
Border getBorder()
    
Gets Border object used to draw border of element.
java.lang.String getText()
    
Gets the text represented by this chart element.
int getTextColor()
    
Gets color of title.
Font getTextFont()
    
Gets font of title.
void measure(XYDimension inOutSize)
    
Measures the element.
void setBackgroud(Background background)
    
Sets Background used to draw background of element.
void setBorder(Border border)
    
Sets Border object used to draw border of element.
void setDock(int dock)
    
Sets docking mode for the element.
void setText(java.lang.String text)
    
Sets the test for specified chart element.
void setTextColor(int color)
    
Sets title color.
void setTextFont(Font font)
    
Sets title font.

 

Methods inherited from class: com.artfulbits.aiCharts.Base.ChartLayoutElement
getAlignment, getBounds, getDock, getMeasuredHeight, getMeasureWidth, isVisible, layout, setAlignment, setVisible

 

Methods inherited from class: java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

 

 

 

ChartTitle

 

public ChartTitle( )

 

Initializes a new instance of ChartTile class.

 

Since: 1.0

 

 

 

ChartTitle

 

public ChartTitle( java.lang.String text)

 

Initializes a new instance of ChartTile class with parameter specified.

 

Parameters:
text-
java.lang.String value that represents the text.

 

Since: 1.0

 

 

 

ChartTitle

 

public ChartTitle( java.lang.String text,
int dock)

 

Initializes a new instance of ChartTile class with parameter specified.

 

Parameters:
text-
java.lang.String value that represents the text.
dock-
one of ChartLayoutElement.DOCK_LEFT, ChartLayoutElement.DOCK_RIGHT, ChartLayoutElement.DOCK_TOP, ChartLayoutElement.DOCK_BOTTOM

 

Since: 1.0

 

 

 

 

setDock

 

public void setDock( int dock)

 

[ description from ChartLayoutElement.setDock(int) ]
 
Sets docking mode for the element.

 

Parameters:
dock-
one of ChartLayoutElement.DOCK_LEFT, ChartLayoutElement.DOCK_RIGHT, ChartLayoutElement.DOCK_TOP, ChartLayoutElement.DOCK_BOTTOM

 

Overrides: ChartLayoutElement.setDock(int)

 

 

 

setTextFont

 

public void setTextFont( Font font)

 

Sets title font.

 

Parameters:
font-
instance of Font.

 

 

 

getTextFont

 

public Font getTextFont( )

 

Gets font of title.

 

Returns:
instance of Font.

 

Since: 1.0

 

 

 

setTextColor

 

public void setTextColor( int color)

 

Sets title color.

 

Parameters:
color-
value of title color.

 

 

 

getTextColor

 

public int getTextColor( )

 

Gets color of title.

 

Returns:
color of title.

 

Since: 1.0

 

 

 

setText

 

public void setText( java.lang.String text)

 

Sets the test for specified chart element.

 

Parameters:
text-
text value.

 

Since: 1.0

 

 

 

getText

 

public java.lang.String getText( )

 

Gets the text represented by this chart element.

 

Returns:
text value.

 

Since: 1.0

 

 

 

setBackgroud

 

public void setBackgroud( Background background)

 

Sets Background used to draw background of element.

 

Parameters:
background-
instance of Background class.

 

Since: 1.0

 

 

 

getBackground

 

public Background getBackground( )

 

Gets Background object used to draw background of element.

 

Returns:
instance of Background class.

 

Since: 1.0

 

 

 

setBorder

 

public void setBorder( Border border)

 

Sets Border object used to draw border of element.

 

Parameters:
border-
instance of Border class.

 

Since: 1.0

 

 

 

getBorder

 

public Border getBorder( )

 

Gets Border object used to draw border of element.

 

Returns:
instance of Border class.

 

Since: 1.0

 

 

 

measure

 

public void measure( XYDimension inOutSize)

 

[ description from ILayout.IElement.measure(XYDimension) ]
 
Measures the element.

 

Parameters:
inOutSize-
available size to contains the element. This parameter will be used to return the desired size of element.

 

Overrides: ChartLayoutElement.measure(XYDimension)
Implements: ILayout.IElement.measure(XYDimension)

 

 

© 2005 - 2010 ArtfulBits. All rights reserved.