com.fusioncharts
Class FusionGraph.FusionStyle

java.lang.Object
  extended by com.fusioncharts.FusionGraph.FusionStyle
Enclosing class:
FusionGraph

public static class FusionGraph.FusionStyle
extends java.lang.Object

FusionStyle is a subclass that is used to define styles for the Graph object. Users have to define the style name, the style type (which can be one of the enum constants from FusionStyleType) and what style properties to use. Please refer to the Fusion Charts API documentation on setting style properties at http://www.fusioncharts.com/docs/

Author:
David Lai

Constructor Summary
FusionGraph.FusionStyle(java.lang.String styleName, FusionGraph.FusionStyleType styleType)
          Constructor for a FusionStyle object.
 
Method Summary
 java.lang.String getStyleName()
          Getter method to get the Style's Name.
 java.util.Map<java.lang.String,java.lang.String> getStyleProperties()
          Getter method to get the properties of the style.
 FusionGraph.FusionStyleType getStyleType()
          Getter method to get the Style's style type.
 void setStyleName(java.lang.String styleName)
          Setter method to set the Style Name
 void setStyleProperties(java.lang.String key, java.lang.String value)
          Setter method to set the Style's Properties
 void setStyleType(FusionGraph.FusionStyleType styleType)
          Setter method to set the Style Type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FusionGraph.FusionStyle

public FusionGraph.FusionStyle(java.lang.String styleName,
                               FusionGraph.FusionStyleType styleType)
Constructor for a FusionStyle object.

Parameters:
styleName - The style Name to set it.
styleType - The Style type from the FusionStyleType enum
Throws:
java.lang.IllegalArgumentException - If style name or style type is blank
Method Detail

getStyleName

public java.lang.String getStyleName()
Getter method to get the Style's Name.

Returns:
styleName The Style's Name

setStyleName

public void setStyleName(java.lang.String styleName)
Setter method to set the Style Name

Parameters:
styleName - the style name to set

getStyleType

public FusionGraph.FusionStyleType getStyleType()
Getter method to get the Style's style type.

Returns:
styleType The Style's style type

setStyleType

public void setStyleType(FusionGraph.FusionStyleType styleType)
Setter method to set the Style Type

Parameters:
styleType - the style type to set

getStyleProperties

public java.util.Map<java.lang.String,java.lang.String> getStyleProperties()
Getter method to get the properties of the style.

Returns:
styleProperties The Style's properties

setStyleProperties

public void setStyleProperties(java.lang.String key,
                               java.lang.String value)
Setter method to set the Style's Properties

Parameters:
key - Key of the attribute to insert into the style properties
value - Value of the attribute to insert into the style properties