|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tonbeller.wcf.component.ComponentSupport
com.tonbeller.jpivot.chart.ChartComponent
org.openi.chart.EnhancedChartComponent
Started as an exact copy of com.tonbeller.jpivot.chart.ChartComponent. Needed to enhance the render functionality to handle different series colors and palettes. There was no way to overload, override that functionality without copying a significant amount of the class, so here is a complete copy. Will likely evolve into something quite different.
Nested Class Summary | |
class |
EnhancedChartComponent.jpivotCategoryURLGenerator
A URLGenerator class to generate chart urls that work with jpivot |
class |
EnhancedChartComponent.jpivotPieURLGenerator
A URLGenerator class to generate pie urls that work with jpivot |
Field Summary | |
protected java.lang.String |
axisFontName
|
protected int |
axisFontSize
|
protected int |
axisFontStyle
|
protected java.lang.String |
axisTickFontName
|
protected int |
axisTickFontSize
|
protected int |
axisTickFontStyle
|
protected int |
bgColorB
|
protected int |
bgColorG
|
protected int |
bgColorR
|
protected java.lang.String |
CHART_SERVLET
|
protected int |
chartHeight
|
protected java.lang.String |
chartTitle
|
protected int |
chartType
|
protected int |
chartWidth
|
protected int |
colCount
|
protected java.util.List |
colorPalette
|
protected boolean |
dirty
|
protected com.tonbeller.wcf.controller.Dispatcher |
dispatcher
|
protected org.w3c.dom.Document |
document
|
protected boolean |
drillThroughEnabled
|
protected java.lang.String |
filename
|
protected java.lang.String |
fontName
|
protected int |
fontSize
|
protected int |
fontStyle
|
protected double |
foregroundAlpha
|
protected java.lang.String |
horizAxisLabel
|
protected org.jfree.chart.ChartRenderingInfo |
info
|
protected java.lang.String |
legendFontName
|
protected int |
legendFontSize
|
protected int |
legendFontStyle
|
protected int |
legendPosition
|
protected java.util.Locale |
locale
|
protected com.tonbeller.jpivot.olap.model.OlapModel |
olapModel
|
protected java.lang.String |
ref
|
protected org.w3c.dom.Element |
rootElement
|
protected boolean |
showLegend
|
protected boolean |
showPareto
|
protected boolean |
showSlicer
|
protected boolean |
showTooltips
|
protected int |
slicerAlignment
|
protected java.lang.String |
slicerFontName
|
protected int |
slicerFontSize
|
protected int |
slicerFontStyle
|
protected int |
slicerPosition
|
protected int |
tickLabelRotate
|
protected java.awt.Font |
titleFont
|
protected boolean |
useChartSize
|
protected java.lang.String |
vertAxisLabel
|
Fields inherited from interface com.tonbeller.wcf.bookmarks.Bookmarkable |
EXTENSIONAL, INTENSIONAL |
Constructor Summary | |
EnhancedChartComponent(java.lang.String id,
com.tonbeller.wcf.component.Component parent,
java.lang.String ref,
com.tonbeller.wcf.controller.RequestContext context)
Constructor |
Method Summary | |
protected boolean |
canDrillThrough(com.tonbeller.jpivot.olap.model.Cell cell)
|
protected com.tonbeller.wcf.table.TableModel |
drillThrough(com.tonbeller.jpivot.olap.model.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.util.List |
getColorPalette()
|
java.lang.String |
getFilename()
|
java.lang.String |
getFontName()
|
int |
getFontSize()
|
int |
getFontStyle()
|
double |
getForegroundAlpha()
|
java.lang.String |
getHorizAxisLabel()
|
java.lang.String |
getLegendFontName()
|
int |
getLegendFontSize()
|
int |
getLegendFontStyle()
|
int |
getLegendPosition()
|
boolean |
getShowLegend()
|
boolean |
getShowPareto()
|
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()
|
boolean |
isUseChartSize()
|
void |
modelChanged(com.tonbeller.jpivot.core.ModelChangeEvent e)
|
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 |
setColorPalette(java.util.List seriesPalette)
|
void |
setDirty(boolean dirty)
|
void |
setDrillThroughEnabled(boolean drillThroughEnabled)
|
void |
setFontName(java.lang.String fontname)
|
void |
setFontSize(int fontSize)
|
void |
setFontStyle(int fontStyle)
|
void |
setForegroundAlpha(double foregroundAlpha)
|
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 |
setShowPareto(boolean showPareto)
|
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 |
setUseChartSize(boolean useChartSize)
|
void |
setVertAxisLabel(java.lang.String axisLabel)
|
void |
structureChanged(com.tonbeller.jpivot.core.ModelChangeEvent e)
|
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, 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 |
Field Detail |
protected java.lang.String ref
protected org.w3c.dom.Document document
protected com.tonbeller.jpivot.olap.model.OlapModel olapModel
protected boolean dirty
protected java.util.Locale locale
protected org.w3c.dom.Element rootElement
protected int colCount
protected java.lang.String CHART_SERVLET
protected java.lang.String filename
protected java.lang.String chartTitle
protected java.awt.Font titleFont
protected java.lang.String fontName
protected int fontStyle
protected int fontSize
protected java.lang.String slicerFontName
protected int slicerFontStyle
protected int slicerFontSize
protected java.lang.String axisFontName
protected int axisFontStyle
protected int axisFontSize
protected java.lang.String axisTickFontName
protected int axisTickFontStyle
protected int axisTickFontSize
protected java.lang.String legendFontName
protected int legendFontStyle
protected int legendFontSize
protected int legendPosition
protected int slicerPosition
protected int slicerAlignment
protected int bgColorR
protected int bgColorG
protected int bgColorB
protected int chartType
protected int chartHeight
protected int chartWidth
protected java.lang.String horizAxisLabel
protected java.lang.String vertAxisLabel
protected boolean showLegend
protected boolean showSlicer
protected boolean showTooltips
protected boolean drillThroughEnabled
protected int tickLabelRotate
protected org.jfree.chart.ChartRenderingInfo info
protected com.tonbeller.wcf.controller.Dispatcher dispatcher
protected java.util.List colorPalette
protected double foregroundAlpha
protected boolean showPareto
protected boolean useChartSize
Constructor Detail |
public EnhancedChartComponent(java.lang.String id, com.tonbeller.wcf.component.Component parent, java.lang.String ref, com.tonbeller.wcf.controller.RequestContext context)
id
- the id of this componentref
- a reference to an olap modelMethod Detail |
public void initialize(com.tonbeller.wcf.controller.RequestContext context) throws java.lang.Exception
initialize
in interface com.tonbeller.wcf.component.LifeCycle
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 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(com.tonbeller.jpivot.core.ModelChangeEvent e)
modelChanged
in interface com.tonbeller.jpivot.core.ModelChangeListener
public void structureChanged(com.tonbeller.jpivot.core.ModelChangeEvent e)
structureChanged
in interface com.tonbeller.jpivot.core.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)
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(com.tonbeller.jpivot.olap.model.Cell cell)
protected com.tonbeller.wcf.table.TableModel drillThrough(com.tonbeller.jpivot.olap.model.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()
public java.util.List getColorPalette()
public void setColorPalette(java.util.List seriesPalette)
public boolean getShowPareto()
public double getForegroundAlpha()
public boolean isUseChartSize()
public void setShowPareto(boolean showPareto)
public void setForegroundAlpha(double foregroundAlpha)
public void setUseChartSize(boolean useChartSize)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |