org.openfaces.component.chart
Class Chart
java.lang.Object
UIComponentBase
org.openfaces.component.OUIComponentBase
org.openfaces.component.chart.Chart
- All Implemented Interfaces:
- OUIComponent, org.openfaces.renderkit.cssparser.StyledComponent
public class Chart
- extends OUIComponentBase
- implements org.openfaces.renderkit.cssparser.StyledComponent
The Chart component represents various datasets in a graphical form, for example as a pie,
line, or bar charts. The component is based on the JFreeChart engine and exposes a friendly
API with JSF-specific features. Styles can be customized for every chart element (image,
legend, title, etc.).
Constructor Summary |
Chart()
|
Methods inherited from class org.openfaces.component.OUIComponentBase |
getOnblur, getOnclick, getOncontextmenu, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getRolloverClass, getRolloverStyle, getStyle, getStyleClass, setOnblur, setOnclick, setOncontextmenu, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setRolloverClass, setRolloverStyle, setStyle, setStyleClass |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPONENT_TYPE
public static final java.lang.String COMPONENT_TYPE
- See Also:
- Constant Field Values
COMPONENT_FAMILY
public static final java.lang.String COMPONENT_FAMILY
- See Also:
- Constant Field Values
DEFAULT_CHART_STYLE
public static final org.openfaces.renderkit.cssparser.StyledComponent DEFAULT_CHART_STYLE
Chart
public Chart()
getFamily
public java.lang.String getFamily()
getView
public ChartViewType getView()
setView
public void setView(ChartViewType view)
getRenderHints
public JfcRenderHints getRenderHints()
setRenderHints
public void setRenderHints(JfcRenderHints renderHints)
getNoDataMessage
public ChartNoDataMessage getNoDataMessage()
setNoDataMessage
public void setNoDataMessage(ChartNoDataMessage noDataMessage)
getHeight
public int getHeight()
setHeight
public void setHeight(int height)
getWidth
public int getWidth()
setWidth
public void setWidth(int width)
getLegend
public ChartLegend getLegend()
setLegend
public void setLegend(ChartLegend legend)
isLegendVisible
public boolean isLegendVisible()
setLegendVisible
public void setLegendVisible(boolean legendVisible)
getTitle
public ChartTitle getTitle()
setTitle
public void setTitle(ChartTitle title)
getChartView
public ChartView getChartView()
getTextStyle
public java.lang.String getTextStyle()
- Specified by:
getTextStyle
in interface org.openfaces.renderkit.cssparser.StyledComponent
setTextStyle
public void setTextStyle(java.lang.String style)
- Specified by:
setTextStyle
in interface org.openfaces.renderkit.cssparser.StyledComponent
getStyleObjectModel
public org.openfaces.renderkit.cssparser.StyleObjectModel getStyleObjectModel()
- Specified by:
getStyleObjectModel
in interface org.openfaces.renderkit.cssparser.StyledComponent
getComponentsChain
public org.openfaces.renderkit.cssparser.StyledComponent[] getComponentsChain()
- Specified by:
getComponentsChain
in interface org.openfaces.renderkit.cssparser.StyledComponent
getHint
public java.lang.String getHint()
- Specified by:
getHint
in interface org.openfaces.renderkit.cssparser.StyledComponent
getModel
public ChartModel getModel()
setModel
public void setModel(ChartModel model)
getImageBytes
public byte[] getImageBytes()
setImageBytes
public void setImageBytes(byte[] imageBytes)
saveState
public java.lang.Object saveState(FacesContext facesContext)
- Overrides:
saveState
in class OUIComponentBase
restoreState
public void restoreState(FacesContext facesContext,
java.lang.Object object)
- Overrides:
restoreState
in class OUIComponentBase
Copyright © 1998-2009 TeamDev Ltd. All Rights Reserved.