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

java.lang.Object com.artfulbits.aiCharts.Base.ChartPointAttributes

Declaration: public abstract class ChartPointAttributes extends Object
Direct Subclasses: ChartPoint, ChartSeries

 

Represents chart point attributes class.

 

Since: 1.0

 

 

Constructors Summary
ChartPointAttributes()
    

 

 

Methods Summary
java.lang.Object getAttribute(java.lang.Object key)
    
Gets custom attribute by specified key
int getBackColor()
    
Gets background color.
Bitmap getBackImage()
    
Gets the Bitmap bitmap used to draw this element.
int getBorderColor()
    
Gets the color of element's border.
int getHLabelAlignment()
    
Gets the horizontal alignment for this element's label.
java.lang.String getLabel()
    
Gets the string representation of label.
int getLabelColor()
    
Gets the color of label.
Font getLabelFont()
    
Gets the font of label.
Bitmap getMarker()
    
Gets Bitmap that is used to draw the marker of this element.
boolean getShowLabel()
    
Gets value indicating whether label should be shown for this element.
java.lang.Object getTag()
    
Gets the tag.
int getVLabelAlignment()
    
Gets the vertical alignment for element's label.
void reset()
    
Clear values of all attributes.
void setAttribute(java.lang.Object key, java.lang.Object value)
    
Sets custom attribute with specified key
void setBackColor(java.lang.Integer color)
    
Sets the background color.
void setBackImage(Bitmap bitmap)
    
Sets the Bitmap bitmap used to draw this element.
void setBorderColor(java.lang.Integer color)
    
Sets the color of element's border.
void setHLabelAlignment(java.lang.Integer align)
    
Sets the horizontal alignment for element's label.
void setLabel(java.lang.String label)
    
Sets the string representation of label.
void setLabelColor(java.lang.Integer color)
    
Sets the color of label.
void setLabelFont(Font font)
    
Sets the font of labels.
void setLabelFormat(java.lang.String pattern)
    
Sets the advanced label formatting string for the data point.
void setLabelFormat(java.lang.String pattern, Format format)
    
Sets format for element's label.
void setMarker(Bitmap bmp)
    
Gets Bitmap that is used to draw the marker of this element.
void setShowLabel(java.lang.Boolean showLabel)
    
Gets value indicating whether label should be shown for this element.
void setTag(java.lang.Object tag)
    
Sets the tag.
void setVLabelAlignment(java.lang.Integer align)
    
Sets the vertical alignment for element's label.

 

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

 

 

 

 

ChartPointAttributes

 

public ChartPointAttributes( )

 

 

 

 

setAttribute

 

public void setAttribute( java.lang.Object key,
java.lang.Object value)

 

Sets custom attribute with specified key

 

Parameters:
key-
attribute key.
value-
attribute value.

 

 

 

getAttribute

 

public java.lang.Object getAttribute( java.lang.Object key)

 

Gets custom attribute by specified key

 

Parameters:
key-
attribute key.
Returns:
value of attribute.

 

Since: 1.0

 

 

 

setTag

 

public void setTag( java.lang.Object tag)

 

Sets the tag.

 

Parameters:
tag-
value of tag.

 

Since: 1.0
See also: getTag()

 

 

 

getTag

 

public java.lang.Object getTag( )

 

Gets the tag.

 

Returns:
value of tag.

 

Since: 1.0
See also: setTag(Object)

 

 

 

setBackColor

 

public void setBackColor( java.lang.Integer color)

 

Sets the background color.

 

Parameters:
color-
color to draw point.

 

Since: 1.0
See also: getBackColor()

 

 

 

getBackColor

 

public int getBackColor( )

 

Gets background color.

 

Returns:
value of color

 

Since: 1.0
See also: setBackColor(Integer)

 

 

 

setShowLabel

 

public void setShowLabel( java.lang.Boolean showLabel)

 

Gets value indicating whether label should be shown for this element.

 

Parameters:
showLabel-
true if label should be shown for point, otherwise false.

 

Since: 1.0
See also: getShowLabel()

 

 

 

getShowLabel

 

public boolean getShowLabel( )

 

Gets value indicating whether label should be shown for this element.

 

Returns:
true if label should be shown for point, otherwise false.

 

Since: 1.0
See also: setShowLabel(Boolean)

 

 

 

setMarker

 

public void setMarker( Bitmap bmp)

 

Gets Bitmap that is used to draw the marker of this element.

 

Parameters:
bmp-
instance of Bitmap.

 

Since: 1.0
See also: getMarker()

 

 

 

getMarker

 

public Bitmap getMarker( )

 

Gets Bitmap that is used to draw the marker of this element.

 

Returns:
instance of Bitmap.

 

Since: 1.0
See also: setMarker(Bitmap)

 

 

 

setHLabelAlignment

 

public void setHLabelAlignment( java.lang.Integer align)

 

Sets the horizontal alignment for element's label.

 

Parameters:
align-
instance of desired alignment.

 

Since: 1.0
See also: getHLabelAlignment()

 

 

 

getHLabelAlignment

 

public int getHLabelAlignment( )

 

Gets the horizontal alignment for this element's label.

 

Returns:
instance of current alignment.

 

Since: 1.0
See also: setHLabelAlignment(Integer)

 

 

 

setVLabelAlignment

 

public void setVLabelAlignment( java.lang.Integer align)

 

Sets the vertical alignment for element's label.

 

Parameters:
align-
instance of Alignment enumeration that represents the alignment.

 

Since: 1.0
See also: getVLabelAlignment()

 

 

 

getVLabelAlignment

 

public int getVLabelAlignment( )

 

Gets the vertical alignment for element's label.

 

Returns:
instance of current alignment.

 

Since: 1.0
See also: setVLabelAlignment(Integer)

 

 

 

setBackImage

 

public void setBackImage( Bitmap bitmap)

 

Sets the Bitmap bitmap used to draw this element.

 

Parameters:
bitmap-
instance of Bitmap used to draw this element.

 

Since: 1.0
See also: setBackImage(Bitmap)

 

 

 

getBackImage

 

public Bitmap getBackImage( )

 

Gets the Bitmap bitmap used to draw this element.

 

Returns:
instance of Bitmap used to draw this element.

 

Since: 1.0
See also: setBackImage(Bitmap)

 

 

 

setBorderColor

 

public void setBorderColor( java.lang.Integer color)

 

Sets the color of element's border.

 

Parameters:
color-
value of color for border.

 

Since: 1.0
See also: getBackColor()

 

 

 

getBorderColor

 

public int getBorderColor( )

 

Gets the color of element's border.

 

Returns:
value of color.

 

Since: 1.0
See also: setBackColor(Integer)

 

 

 

setLabelColor

 

public void setLabelColor( java.lang.Integer color)

 

Sets the color of label.

 

Parameters:
color-
value of color for labels.

 

Since: 1.0
See also: getLabelColor()

 

 

 

getLabelColor

 

public int getLabelColor( )

 

Gets the color of label.

 

Returns:
value of color.

 

Since: 1.0
See also: setLabelColor(Integer)

 

 

 

setLabelFont

 

public void setLabelFont( Font font)

 

Sets the font of labels.

 

Parameters:
font-
instance of font for labels.

 

Since: 1.0
See also: getLabelFont()

 

 

 

getLabelFont

 

public Font getLabelFont( )

 

Gets the font of label.

 

Returns:
instance of Font.

 

Since: 1.0
See also: setLabelColor(Integer)

 

 

 

setLabel

 

public void setLabel( java.lang.String label)

 

Sets the string representation of label.

 

Parameters:
label-
java.lang.String value of label.

 

Since: 1.0

 

 

 

getLabel

 

public java.lang.String getLabel( )

 

Gets the string representation of label.

 

Returns:
java.lang.String value of label.

 

Since: 1.0
See also: setLabel(String)

 

 

 

setLabelFormat

 

public void setLabelFormat( java.lang.String pattern)

 

Sets the advanced label formatting string for the data point. aiCharts analyzes passed string for formatting keywords.

 

Parameters:
pattern-
- string analyzed for occurrence keyword substrings.
Keyword format: %PERCENT0$#.##% %%
"%" - identifies start or end of keyword.
"PERCENT" - keyword name. See table below for available keywords.
"0" - optional index of Y value (0 if not specified).
"#.##" - formatting part applied to double values (optional).
"$" - identifies that "#.##" format is used.
"%%" - treated as the "%" character
Available keywords
keyworddescriptionsupports indicesvalue format
LABELlabel of point--
XVALUEX value of point-decimal format
XDATEX date value of point-date format
YVALUEY value of point+decimal format
SERIESNAMEname of series--
INDEXindex of point--
AXISLABELaxis label of point--
PERCENTpercentage of the Y point value+decimal format

 

Since: 1.0

 

 

 

setLabelFormat

 

public void setLabelFormat( java.lang.String pattern,
Format format)

 

Sets format for element's label.

 

Parameters:
pattern-
formatting pattern.
format-
formatter.

 

 

 

reset

 

public void reset( )

 

Clear values of all attributes.

 

Since: 1.0

 

 

© 2005 - 2010 ArtfulBits. All rights reserved.