org.pentaho.chart.model
Class ChartLegend

java.lang.Object
  extended by org.pentaho.chart.model.ChartLegend
All Implemented Interfaces:
Serializable

public class ChartLegend
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
ChartLegend()
           
 
Method Summary
 Integer getBorderColor()
           
 boolean getBorderVisible()
           
 Integer getBorderWidth()
           
 String getFontFamily()
           
 Integer getFontSize()
           
 CssStyle.FontStyle getFontStyle()
           
 CssStyle.FontWeight getFontWeight()
           
 CssStyle getStyle()
           
 boolean getVisible()
           
 void setBorderColor(Integer color)
          CssStyle.setBorderColor(Integer)
 void setBorderVisible(boolean visible)
          CssStyle.setBorderVisible(boolean)
 void setBorderWidth(Integer width)
          CssStyle.setBorderWidth(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 fontStyle)
          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 setVisible(boolean visible)
          Determine if the legend will be visible on the chart.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChartLegend

public ChartLegend()
Method Detail

getVisible

public boolean getVisible()

setVisible

public void setVisible(boolean visible)
Determine if the legend will be visible on the chart.

Possible values
true
false

Parameters:
visible -

getBorderColor

public Integer getBorderColor()

getBorderVisible

public boolean getBorderVisible()

getBorderWidth

public Integer getBorderWidth()

setBorderColor

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

Parameters:
color -

setBorderVisible

public void setBorderVisible(boolean visible)
CssStyle.setBorderVisible(boolean)

Parameters:
visible -

setBorderWidth

public void setBorderWidth(Integer width)
CssStyle.setBorderWidth(Integer)

Parameters:
width -

getFontFamily

public String getFontFamily()

getFontSize

public Integer getFontSize()

getFontStyle

public CssStyle.FontStyle getFontStyle()

getFontWeight

public CssStyle.FontWeight getFontWeight()

setFont

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

Parameters:
family -
size -
fontStyle -
fontWeight -

setFont

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

Parameters:
family -
size -

setFontFamily

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

Parameters:
family -

setFontSize

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

Parameters:
size -

setFontStyle

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

Parameters:
fontStyle -

setFontWeight

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

Parameters:
weight -

getStyle

public CssStyle getStyle()

toString

public String toString()
Overrides:
toString in class Object