org.pentaho.chart.model
Class CssStyle

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,String>
          extended by org.pentaho.chart.model.CssStyle
All Implemented Interfaces:
Serializable, Cloneable, Map<String,String>

public class CssStyle
extends HashMap<String,String>
implements Serializable

See Also:
Serialized Form

Nested Class Summary
static class CssStyle.FontStyle
           
static class CssStyle.FontWeight
           
static class CssStyle.LineStyle
           
static class CssStyle.TextAlignment
           
 
Field Summary
static String BACKGROUND_COLOR_STYLE
           
static String BORDER_COLOR_STYLE
           
static String BORDER_LINE_STYLE
           
static String BORDER_WIDTH_STYLE
           
static String COLOR_STYLE
           
static String FONT_FAMILY_STYLE
           
static String FONT_SIZE_STYLE
           
static String FONT_STYLE
           
static String FONT_WEIGHT_STYLE
           
static String OPACITY_STYLE
           
static String TEXT_ALIGNMENT_STYLE
           
 
Constructor Summary
CssStyle()
           
 
Method Summary
 Integer getBackgroundColor()
           
 Integer getBorderColor()
           
 CssStyle.LineStyle getBorderLineStyle()
           
 boolean getBorderVisible()
           
 Integer getBorderWidth()
           
 Integer getColor()
           
 String getFontFamily()
           
 Integer getFontSize()
           
 CssStyle.FontStyle getFontStyle()
           
 CssStyle.FontWeight getFontWeight()
           
 Float getOpacity()
           
 String getStyleString()
           
 CssStyle.TextAlignment getTextAlignment()
           
 void setBackgroundColor(Integer color)
          StyledText.setBackgroundColor(Integer)
 void setBorderColor(Integer color)
          ChartModel.setBorderColor(Integer)
 void setBorderLineStyle(CssStyle.LineStyle lineStyle)
          The visual style of the line around the associated element.
 void setBorderVisible(boolean visible)
          Not implemented
 void setBorderWidth(Integer width)
          The width of the around the associated element in pixels.
 void setColor(Integer color)
          StyledText.setColor(Integer)
 void setFont(String family, Integer size)
          org.pentaho.chart.model.StyledText#setFont(String, Integer, FontStyle, FontWeight)
 void setFont(String family, Integer size, CssStyle.FontStyle fontStyle, CssStyle.FontWeight fontWeight)
          org.pentaho.chart.model.StyledText#setFont(String, Integer, FontStyle, FontWeight)
 void setFontFamily(String family)
          org.pentaho.chart.model.StyledText#setFont(String, Integer, FontStyle, FontWeight)
 void setFontSize(Integer size)
          org.pentaho.chart.model.StyledText#setFont(String, Integer, FontStyle, FontWeight)
 void setFontStyle(CssStyle.FontStyle style)
          org.pentaho.chart.model.StyledText#setFont(String, Integer, FontStyle, FontWeight)
 void setFontWeight(CssStyle.FontWeight weight)
          org.pentaho.chart.model.StyledText#setFont(String, Integer, FontStyle, FontWeight)
 void setOpacity(Float opacity)
          A value between 0.00 (transparent) and 1.00 (opaque)
 void setStyleString(String cssStyle)
          Set additional style properties in a standard CSS format (name-one: value; name-two: value;)
 void setTextAlignment(CssStyle.TextAlignment textAlignment)
          org.pentaho.chart.model.StyledText#setAlignment(TextAlignment)
 String toString()
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

BACKGROUND_COLOR_STYLE

public static final String BACKGROUND_COLOR_STYLE
See Also:
Constant Field Values

BORDER_WIDTH_STYLE

public static final String BORDER_WIDTH_STYLE
See Also:
Constant Field Values

BORDER_COLOR_STYLE

public static final String BORDER_COLOR_STYLE
See Also:
Constant Field Values

BORDER_LINE_STYLE

public static final String BORDER_LINE_STYLE
See Also:
Constant Field Values

FONT_SIZE_STYLE

public static final String FONT_SIZE_STYLE
See Also:
Constant Field Values

FONT_WEIGHT_STYLE

public static final String FONT_WEIGHT_STYLE
See Also:
Constant Field Values

FONT_STYLE

public static final String FONT_STYLE
See Also:
Constant Field Values

FONT_FAMILY_STYLE

public static final String FONT_FAMILY_STYLE
See Also:
Constant Field Values

COLOR_STYLE

public static final String COLOR_STYLE
See Also:
Constant Field Values

TEXT_ALIGNMENT_STYLE

public static final String TEXT_ALIGNMENT_STYLE
See Also:
Constant Field Values

OPACITY_STYLE

public static final String OPACITY_STYLE
See Also:
Constant Field Values
Constructor Detail

CssStyle

public CssStyle()
Method Detail

getBorderLineStyle

public CssStyle.LineStyle getBorderLineStyle()

setBorderLineStyle

public void setBorderLineStyle(CssStyle.LineStyle lineStyle)
The visual style of the line around the associated element.

Possible values
SOLID
DASHED
DOTTED

Parameters:
lineStyle -

getBorderWidth

public Integer getBorderWidth()

setBorderWidth

public void setBorderWidth(Integer width)
The width of the around the associated element in pixels.

Parameters:
width -

getBorderColor

public Integer getBorderColor()

setBorderColor

public void setBorderColor(Integer color)
ChartModel.setBorderColor(Integer)

Parameters:
color -

getBackgroundColor

public Integer getBackgroundColor()

setBackgroundColor

public void setBackgroundColor(Integer color)
StyledText.setBackgroundColor(Integer)

Parameters:
color -

getFontStyle

public CssStyle.FontStyle getFontStyle()

setFontStyle

public void setFontStyle(CssStyle.FontStyle style)
org.pentaho.chart.model.StyledText#setFont(String, Integer, FontStyle, FontWeight)


getFontWeight

public CssStyle.FontWeight getFontWeight()

setFontWeight

public void setFontWeight(CssStyle.FontWeight weight)
org.pentaho.chart.model.StyledText#setFont(String, Integer, FontStyle, FontWeight)


getFontSize

public Integer getFontSize()

setFontSize

public void setFontSize(Integer size)
org.pentaho.chart.model.StyledText#setFont(String, Integer, FontStyle, FontWeight)


getFontFamily

public String getFontFamily()

setFontFamily

public void setFontFamily(String family)
org.pentaho.chart.model.StyledText#setFont(String, Integer, FontStyle, FontWeight)


setFont

public void setFont(String family,
                    Integer size)
org.pentaho.chart.model.StyledText#setFont(String, Integer, FontStyle, FontWeight)


setFont

public void setFont(String family,
                    Integer size,
                    CssStyle.FontStyle fontStyle,
                    CssStyle.FontWeight fontWeight)
org.pentaho.chart.model.StyledText#setFont(String, Integer, FontStyle, FontWeight)


getColor

public Integer getColor()

setColor

public void setColor(Integer color)
StyledText.setColor(Integer)

Parameters:
color -

setOpacity

public void setOpacity(Float opacity)
A value between 0.00 (transparent) and 1.00 (opaque)

Parameters:
opacity -

getOpacity

public Float getOpacity()

toString

public String toString()
Overrides:
toString in class AbstractMap<String,String>

getStyleString

public String getStyleString()

getBorderVisible

public boolean getBorderVisible()

setBorderVisible

public void setBorderVisible(boolean visible)
Not implemented

Parameters:
visible -

setStyleString

public void setStyleString(String cssStyle)
Set additional style properties in a standard CSS format (name-one: value; name-two: value;)

Parameters:
cssStyle -

setTextAlignment

public void setTextAlignment(CssStyle.TextAlignment textAlignment)
org.pentaho.chart.model.StyledText#setAlignment(TextAlignment)

Parameters:
textAlignment -

getTextAlignment

public CssStyle.TextAlignment getTextAlignment()