org.openfaces.component.chart
Class Chart
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
org.openfaces.component.OUIComponentBase
org.openfaces.component.OUIObjectIteratorBase
org.openfaces.component.chart.Chart
- All Implemented Interfaces:
- java.util.EventListener, javax.faces.component.NamingContainer, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, OUIComponent, OUIObjectIterator, StyledComponent
public class Chart
- extends OUIObjectIteratorBase
- implements StyledComponent, javax.faces.component.NamingContainer
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.).
Fields inherited from class javax.faces.component.UIComponent |
BEANINFO_KEY, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, VIEW_LOCATION_KEY |
Fields inherited from interface javax.faces.component.NamingContainer |
SEPARATOR_CHAR |
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 javax.faces.component.UIComponentBase |
addClientBehavior, clearInitialState, decode, encodeChildren, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getDefaultEventName, getEventNames, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, markInitialState, processRestoreState, processSaveState, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
Methods inherited from class javax.faces.component.UIComponent |
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getValueExpression, initialStateMarked, isCompositeComponent, isInView, popComponentFromEL, processEvent, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.openfaces.component.OUIComponent |
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 |
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 StyledComponent DEFAULT_CHART_STYLE
Chart
public Chart()
getFamily
public java.lang.String getFamily()
- Specified by:
getFamily
in class javax.faces.component.UIComponent
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 StyledComponent
setTextStyle
public void setTextStyle(java.lang.String style)
- Specified by:
setTextStyle
in interface StyledComponent
getStyleObjectModel
public StyleObjectModel getStyleObjectModel()
- Specified by:
getStyleObjectModel
in interface StyledComponent
getComponentsChain
public StyledComponent[] getComponentsChain()
- Specified by:
getComponentsChain
in interface StyledComponent
getHint
public java.lang.String getHint()
- Specified by:
getHint
in interface StyledComponent
getModel
public ChartModel getModel()
setModel
public void setModel(ChartModel model)
getImageBytes
public byte[] getImageBytes()
setImageBytes
public void setImageBytes(byte[] imageBytes)
getChartMenu
public ChartMenu getChartMenu()
getChartSelection
public ChartSelection getChartSelection()
encodeBegin
public void encodeBegin(javax.faces.context.FacesContext context)
throws java.io.IOException
- Overrides:
encodeBegin
in class javax.faces.component.UIComponentBase
- Throws:
java.io.IOException
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext context)
throws java.io.IOException
- Overrides:
encodeEnd
in class javax.faces.component.UIComponentBase
- Throws:
java.io.IOException
processDecodes
public void processDecodes(javax.faces.context.FacesContext context)
- Overrides:
processDecodes
in class javax.faces.component.UIComponentBase
processValidators
public void processValidators(javax.faces.context.FacesContext context)
- Overrides:
processValidators
in class javax.faces.component.UIComponentBase
processUpdates
public void processUpdates(javax.faces.context.FacesContext context)
- Overrides:
processUpdates
in class javax.faces.component.UIComponentBase
getEntityIndex
public java.lang.Integer getEntityIndex()
setEntityIndex
public void setEntityIndex(int index)
setObjectId
public void setObjectId(java.lang.String objectId)
- Description copied from interface:
OUIObjectIterator
- Selects an object with the specified id in this component. The semantics of handling the current object is specific
to each particular component, and the current object typically points to a data entry currently being rendered, or
an entry that generated the server action that is being processed.
- Specified by:
setObjectId
in interface OUIObjectIterator
- Overrides:
setObjectId
in class OUIObjectIteratorBase
- Parameters:
objectId
- id of an object to be selected
getObjectId
public java.lang.String getObjectId()
- Specified by:
getObjectId
in interface OUIObjectIterator
- Returns:
- the identifier of the object currently selected in this component.
- See Also:
OUIObjectIterator.setObjectId(java.lang.String)
make
public java.awt.image.BufferedImage make()
saveState
public java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
- Specified by:
saveState
in interface javax.faces.component.StateHolder
- Overrides:
saveState
in class OUIObjectIteratorBase
restoreState
public void restoreState(javax.faces.context.FacesContext facesContext,
java.lang.Object object)
- Specified by:
restoreState
in interface javax.faces.component.StateHolder
- Overrides:
restoreState
in class OUIObjectIteratorBase
getTimePeriodPrecision
public TimePeriod getTimePeriodPrecision()
setTimePeriodPrecision
public void setTimePeriodPrecision(TimePeriod timePeriodPrecision)
Copyright © 1998-2010 TeamDev Ltd. All Rights Reserved.