|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.tonbeller.wcf.component.ComponentSupport com.tonbeller.jpivot.chart.ChartComponent
public class ChartComponent
Contains a reference to an OlapModel. Produces a chart image.
Nested Class Summary | |
---|---|
class |
ChartComponent.jpivotCategoryURLGenerator
A URLGenerator class to generate chart urls that work with jpivot |
class |
ChartComponent.jpivotPieURLGenerator
A URLGenerator class to generate pie urls that work with jpivot |
Field Summary |
---|
Fields inherited from interface com.tonbeller.wcf.bookmarks.Bookmarkable |
---|
EXTENSIONAL, INTENSIONAL |
Constructor Summary | |
---|---|
ChartComponent(java.lang.String id,
com.tonbeller.wcf.component.Component parent,
java.lang.String ref,
com.tonbeller.wcf.controller.RequestContext context)
|
|
ChartComponent(java.lang.String id,
com.tonbeller.wcf.component.Component parent,
java.lang.String ref,
java.lang.String baseDisplayURL,
java.lang.String controllerURL,
com.tonbeller.wcf.controller.RequestContext context)
Constructor |
Method Summary | |
---|---|
protected boolean |
canDrillThrough(Cell cell)
|
protected com.tonbeller.wcf.table.TableModel |
drillThrough(Cell cell)
returns a DrillThroughTableModel for the drill through |
java.lang.String |
getAxisFontName()
|
int |
getAxisFontSize()
|
int |
getAxisFontStyle()
|
java.lang.String |
getAxisTickFontName()
|
int |
getAxisTickFontSize()
|
int |
getAxisTickFontStyle()
|
int |
getBgColorB()
|
int |
getBgColorG()
|
int |
getBgColorR()
|
int |
getChartHeight()
|
java.lang.String |
getChartTitle()
|
int |
getChartType()
|
int |
getChartWidth()
|
int |
getColCount()
|
java.lang.String |
getFilename()
|
java.lang.String |
getFontName()
|
int |
getFontSize()
|
int |
getFontStyle()
|
java.lang.String |
getGraphURL(com.tonbeller.wcf.controller.RequestContext context)
|
java.lang.String |
getHorizAxisLabel()
|
java.lang.String |
getLegendFontName()
|
int |
getLegendFontSize()
|
int |
getLegendFontStyle()
|
int |
getLegendPosition()
|
boolean |
getShowLegend()
|
int |
getSlicerAlignment()
|
java.lang.String |
getSlicerFontName()
|
int |
getSlicerFontSize()
|
int |
getSlicerFontStyle()
|
int |
getSlicerPosition()
|
int |
getTickLabelRotate()
|
java.lang.String |
getVertAxisLabel()
|
void |
initialize(com.tonbeller.wcf.controller.RequestContext context)
called once by the creating tag |
boolean |
isDirty()
true means that render() will create a new chart |
boolean |
isDrillThroughEnabled()
|
boolean |
isShowSlicer()
|
void |
modelChanged(ModelChangeEvent e)
model data have changed, e.g. user has navigated |
org.w3c.dom.Document |
render(com.tonbeller.wcf.controller.RequestContext context)
Entry point for producing charts, called by wcf render tag. |
void |
setAxisFontName(java.lang.String axisFontName)
|
void |
setAxisFontSize(int axisFontSize)
|
void |
setAxisFontStyle(int axisFontStyle)
|
void |
setAxisTickFontName(java.lang.String axisTickFontName)
|
void |
setAxisTickFontSize(int axisTickFontSize)
|
void |
setAxisTickFontStyle(int axisTickFontStyle)
|
void |
setBgColorB(int bgColorB)
|
void |
setBgColorG(int bgColorG)
|
void |
setBgColorR(int bgColorR)
|
void |
setChartHeight(int chartHeight)
|
void |
setChartTitle(java.lang.String chartTitle)
|
void |
setChartType(int chartType)
|
void |
setChartWidth(int chartWidth)
|
void |
setDirty(boolean dirty)
|
void |
setDrillThroughEnabled(boolean drillThroughEnabled)
|
void |
setFontName(java.lang.String fontname)
|
void |
setFontSize(int fontSize)
|
void |
setFontStyle(int fontStyle)
|
void |
setHorizAxisLabel(java.lang.String axisLabel)
|
void |
setLegendFontName(java.lang.String legendFontName)
|
void |
setLegendFontSize(int legendFontSize)
|
void |
setLegendFontStyle(int legendFontStyle)
|
void |
setLegendPosition(int legendPosition)
|
void |
setShowLegend(boolean showLegend)
|
void |
setShowSlicer(boolean showSlicer)
|
void |
setSlicerAlignment(int slicerAlignment)
|
void |
setSlicerFontName(java.lang.String slicerFontName)
|
void |
setSlicerFontSize(int slicerFontSize)
|
void |
setSlicerFontStyle(int slicerFontStyle)
|
void |
setSlicerPosition(int slicerPosition)
|
void |
setTickLabelRotate(int tickLabelRotate)
|
void |
setVertAxisLabel(java.lang.String axisLabel)
|
void |
structureChanged(ModelChangeEvent e)
major change, e.g. extensions added/removed |
java.lang.String |
writeImageMap(java.lang.String name,
org.jfree.chart.ChartRenderingInfo info,
boolean useOverLibForToolTips)
Writes an image map as a String This function has been requested to be added to jfreechart Also requires slight change to ChartEntity.getImageMapAreaTag() to produce valid xml tag and use & entity in urls. |
Methods inherited from class com.tonbeller.wcf.component.ComponentSupport |
---|
addFormListener, destroy, getBookmarkState, getDispatcher, getForm, getId, getLocale, getNextView, getParent, getRoleExpr, isAutoValidate, isListeningTo, isVisible, removeFormListener, request, revert, setAutoValidate, setBookmarkState, setId, setNextView, setParent, setRoleExpr, setVisible, validate, valueBound, valueUnbound |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChartComponent(java.lang.String id, com.tonbeller.wcf.component.Component parent, java.lang.String ref, java.lang.String baseDisplayURL, java.lang.String controllerURL, com.tonbeller.wcf.controller.RequestContext context)
id
- the id of this componentparent
- parent componentref
- a reference to an olap modelbaseDisplayURL
- URL for chart servlet. Overrides defaultcontrollerURL
- URL for web application where JPivot/WCF is running. Overrides defaultcontext
- RequestContextpublic ChartComponent(java.lang.String id, com.tonbeller.wcf.component.Component parent, java.lang.String ref, com.tonbeller.wcf.controller.RequestContext context)
Method Detail |
---|
public void initialize(com.tonbeller.wcf.controller.RequestContext context) throws java.lang.Exception
initialize
in interface com.tonbeller.wcf.component.LifeCycle
initialize
in class com.tonbeller.wcf.component.ComponentSupport
java.lang.Exception
public org.w3c.dom.Document render(com.tonbeller.wcf.controller.RequestContext context) throws java.lang.Exception
render
in interface com.tonbeller.wcf.component.Renderable
java.lang.Exception
public java.lang.String getGraphURL(com.tonbeller.wcf.controller.RequestContext context)
public java.lang.String writeImageMap(java.lang.String name, org.jfree.chart.ChartRenderingInfo info, boolean useOverLibForToolTips)
name
- the map name.info
- the chart rendering info.useOverLibForToolTips
- whether to use OverLIB for tooltips
(http://www.bosrup.com/web/overlib/).public int getColCount()
public boolean isDirty()
public void setDirty(boolean dirty)
public void modelChanged(ModelChangeEvent e)
ModelChangeListener
modelChanged
in interface ModelChangeListener
public void structureChanged(ModelChangeEvent e)
ModelChangeListener
structureChanged
in interface ModelChangeListener
public int getChartHeight()
public void setChartHeight(int chartHeight)
chartHeight
- public java.lang.String getChartTitle()
public void setChartTitle(java.lang.String chartTitle)
chartTitle
- public int getChartType()
public void setChartType(int chartType)
chartType
- public int getChartWidth()
public void setChartWidth(int chartWidth)
chartWidth
- public java.lang.String getHorizAxisLabel()
public void setHorizAxisLabel(java.lang.String axisLabel)
axisLabel
- public boolean getShowLegend()
public void setShowLegend(boolean showLegend)
showLegend
- public java.lang.String getFontName()
public void setFontName(java.lang.String fontname)
titleFont
- public java.lang.String getVertAxisLabel()
public void setVertAxisLabel(java.lang.String axisLabel)
axisLabel
- public int getFontSize()
public void setFontSize(int fontSize)
fontSize
- public int getFontStyle()
public void setFontStyle(int fontStyle)
fontStyle
- public int getBgColorB()
public void setBgColorB(int bgColorB)
bgColorB
- public int getBgColorG()
public void setBgColorG(int bgColorG)
bgColorG
- public int getBgColorR()
public void setBgColorR(int bgColorR)
bgColorR
- protected boolean canDrillThrough(Cell cell)
protected com.tonbeller.wcf.table.TableModel drillThrough(Cell cell)
cell
-
public boolean isDrillThroughEnabled()
public void setDrillThroughEnabled(boolean drillThroughEnabled)
public java.lang.String getAxisFontName()
public void setAxisFontName(java.lang.String axisFontName)
axisFontName
- public int getAxisFontSize()
public void setAxisFontSize(int axisFontSize)
axisFontSize
- public int getAxisFontStyle()
public void setAxisFontStyle(int axisFontStyle)
axisFontStyle
- public java.lang.String getLegendFontName()
public void setLegendFontName(java.lang.String legendFontName)
legendFontName
- public int getLegendFontSize()
public void setLegendFontSize(int legendFontSize)
legendFontSize
- public int getLegendFontStyle()
public void setLegendFontStyle(int legendFontStyle)
legendFontStyle
- public int getSlicerAlignment()
public void setSlicerAlignment(int slicerAlignment)
slicerAlignment
- public java.lang.String getSlicerFontName()
public void setSlicerFontName(java.lang.String slicerFontName)
slicerFontName
- public int getSlicerFontSize()
public void setSlicerFontSize(int slicerFontSize)
slicerFontSize
- public int getSlicerFontStyle()
public void setSlicerFontStyle(int slicerFontStyle)
slicerFontStyle
- public int getSlicerPosition()
public void setSlicerPosition(int slicerPosition)
slicerPosition
- public int getLegendPosition()
public void setLegendPosition(int legendPosition)
legendPosition
- public java.lang.String getAxisTickFontName()
public void setAxisTickFontName(java.lang.String axisTickFontName)
axisTickFontName
- public int getAxisTickFontSize()
public void setAxisTickFontSize(int axisTickFontSize)
axisTickFontSize
- public int getAxisTickFontStyle()
public void setAxisTickFontStyle(int axisTickFontStyle)
axisTickFontStyle
- public int getTickLabelRotate()
public void setTickLabelRotate(int tickLabelRotate)
tickLabelRotate
- The tickLabelRotate to set.public boolean isShowSlicer()
public void setShowSlicer(boolean showSlicer)
showSlicer
- public java.lang.String getFilename()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |