|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| 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
public class 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
|
static int |
DEFAULT_CHART_HEIGHT
|
static int |
DEFAULT_CHART_WIDTH
|
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()
|
com.tonbeller.jpivot.olap.model.OlapModel |
getOlapModel()
|
boolean |
getShowLegend()
|
boolean |
getShowPareto()
|
int |
getSlicerAlignment()
|
java.lang.String |
getSlicerFontName()
|
int |
getSlicerFontSize()
|
int |
getSlicerFontStyle()
|
int |
getSlicerPosition()
|
int |
getTickLabelRotate()
|
java.lang.String |
getVertAxisLabel()
|
boolean |
getWriteImageMap()
|
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 |
setOlapModel(com.tonbeller.jpivot.olap.model.OlapModel olapModel)
|
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 |
setWriteImageMap(boolean writeImageMap)
|
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.jpivot.chart.ChartComponent |
|---|
getGraphURL |
| 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 |
| 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
public static final int DEFAULT_CHART_WIDTH
public static final int DEFAULT_CHART_HEIGHT
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 model| Method Detail |
|---|
public void initialize(com.tonbeller.wcf.controller.RequestContext context)
throws java.lang.Exception
initialize in interface com.tonbeller.wcf.component.LifeCycleinitialize in class com.tonbeller.jpivot.chart.ChartComponentjava.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.Renderablerender in class com.tonbeller.jpivot.chart.ChartComponentjava.lang.Exception
public java.lang.String writeImageMap(java.lang.String name,
org.jfree.chart.ChartRenderingInfo info,
boolean useOverLibForToolTips)
writeImageMap in class com.tonbeller.jpivot.chart.ChartComponentname - the map name.info - the chart rendering info.useOverLibForToolTips - whether to use OverLIB for tooltips
(http://www.bosrup.com/web/overlib/).public int getColCount()
getColCount in class com.tonbeller.jpivot.chart.ChartComponentpublic boolean isDirty()
isDirty in class com.tonbeller.jpivot.chart.ChartComponentpublic void setDirty(boolean dirty)
setDirty in class com.tonbeller.jpivot.chart.ChartComponentpublic void modelChanged(com.tonbeller.jpivot.core.ModelChangeEvent e)
modelChanged in interface com.tonbeller.jpivot.core.ModelChangeListenermodelChanged in class com.tonbeller.jpivot.chart.ChartComponentpublic void structureChanged(com.tonbeller.jpivot.core.ModelChangeEvent e)
structureChanged in interface com.tonbeller.jpivot.core.ModelChangeListenerstructureChanged in class com.tonbeller.jpivot.chart.ChartComponentpublic int getChartHeight()
getChartHeight in class com.tonbeller.jpivot.chart.ChartComponentpublic void setChartHeight(int chartHeight)
setChartHeight in class com.tonbeller.jpivot.chart.ChartComponentchartHeight - public java.lang.String getChartTitle()
getChartTitle in class com.tonbeller.jpivot.chart.ChartComponentpublic void setChartTitle(java.lang.String chartTitle)
setChartTitle in class com.tonbeller.jpivot.chart.ChartComponentchartTitle - public int getChartType()
getChartType in class com.tonbeller.jpivot.chart.ChartComponentpublic void setChartType(int chartType)
setChartType in class com.tonbeller.jpivot.chart.ChartComponentchartType - public int getChartWidth()
getChartWidth in class com.tonbeller.jpivot.chart.ChartComponentpublic void setChartWidth(int chartWidth)
setChartWidth in class com.tonbeller.jpivot.chart.ChartComponentchartWidth - public java.lang.String getHorizAxisLabel()
getHorizAxisLabel in class com.tonbeller.jpivot.chart.ChartComponentpublic void setHorizAxisLabel(java.lang.String axisLabel)
setHorizAxisLabel in class com.tonbeller.jpivot.chart.ChartComponentaxisLabel - public boolean getShowLegend()
getShowLegend in class com.tonbeller.jpivot.chart.ChartComponentpublic void setShowLegend(boolean showLegend)
setShowLegend in class com.tonbeller.jpivot.chart.ChartComponentshowLegend - public java.lang.String getFontName()
getFontName in class com.tonbeller.jpivot.chart.ChartComponentpublic void setFontName(java.lang.String fontname)
setFontName in class com.tonbeller.jpivot.chart.ChartComponenttitleFont - public java.lang.String getVertAxisLabel()
getVertAxisLabel in class com.tonbeller.jpivot.chart.ChartComponentpublic void setVertAxisLabel(java.lang.String axisLabel)
setVertAxisLabel in class com.tonbeller.jpivot.chart.ChartComponentaxisLabel - public int getFontSize()
getFontSize in class com.tonbeller.jpivot.chart.ChartComponentpublic void setFontSize(int fontSize)
setFontSize in class com.tonbeller.jpivot.chart.ChartComponentfontSize - public int getFontStyle()
getFontStyle in class com.tonbeller.jpivot.chart.ChartComponentpublic void setFontStyle(int fontStyle)
setFontStyle in class com.tonbeller.jpivot.chart.ChartComponentfontStyle - public int getBgColorB()
getBgColorB in class com.tonbeller.jpivot.chart.ChartComponentpublic void setBgColorB(int bgColorB)
setBgColorB in class com.tonbeller.jpivot.chart.ChartComponentbgColorB - public int getBgColorG()
getBgColorG in class com.tonbeller.jpivot.chart.ChartComponentpublic void setBgColorG(int bgColorG)
setBgColorG in class com.tonbeller.jpivot.chart.ChartComponentbgColorG - public int getBgColorR()
getBgColorR in class com.tonbeller.jpivot.chart.ChartComponentpublic void setBgColorR(int bgColorR)
setBgColorR in class com.tonbeller.jpivot.chart.ChartComponentbgColorR - protected boolean canDrillThrough(com.tonbeller.jpivot.olap.model.Cell cell)
canDrillThrough in class com.tonbeller.jpivot.chart.ChartComponentprotected com.tonbeller.wcf.table.TableModel drillThrough(com.tonbeller.jpivot.olap.model.Cell cell)
drillThrough in class com.tonbeller.jpivot.chart.ChartComponentcell -
public boolean isDrillThroughEnabled()
isDrillThroughEnabled in class com.tonbeller.jpivot.chart.ChartComponentpublic void setDrillThroughEnabled(boolean drillThroughEnabled)
setDrillThroughEnabled in class com.tonbeller.jpivot.chart.ChartComponentpublic java.lang.String getAxisFontName()
getAxisFontName in class com.tonbeller.jpivot.chart.ChartComponentpublic void setAxisFontName(java.lang.String axisFontName)
setAxisFontName in class com.tonbeller.jpivot.chart.ChartComponentaxisFontName - public int getAxisFontSize()
getAxisFontSize in class com.tonbeller.jpivot.chart.ChartComponentpublic void setAxisFontSize(int axisFontSize)
setAxisFontSize in class com.tonbeller.jpivot.chart.ChartComponentaxisFontSize - public int getAxisFontStyle()
getAxisFontStyle in class com.tonbeller.jpivot.chart.ChartComponentpublic void setAxisFontStyle(int axisFontStyle)
setAxisFontStyle in class com.tonbeller.jpivot.chart.ChartComponentaxisFontStyle - public java.lang.String getLegendFontName()
getLegendFontName in class com.tonbeller.jpivot.chart.ChartComponentpublic void setLegendFontName(java.lang.String legendFontName)
setLegendFontName in class com.tonbeller.jpivot.chart.ChartComponentlegendFontName - public int getLegendFontSize()
getLegendFontSize in class com.tonbeller.jpivot.chart.ChartComponentpublic void setLegendFontSize(int legendFontSize)
setLegendFontSize in class com.tonbeller.jpivot.chart.ChartComponentlegendFontSize - public int getLegendFontStyle()
getLegendFontStyle in class com.tonbeller.jpivot.chart.ChartComponentpublic void setLegendFontStyle(int legendFontStyle)
setLegendFontStyle in class com.tonbeller.jpivot.chart.ChartComponentlegendFontStyle - public int getSlicerAlignment()
getSlicerAlignment in class com.tonbeller.jpivot.chart.ChartComponentpublic void setSlicerAlignment(int slicerAlignment)
setSlicerAlignment in class com.tonbeller.jpivot.chart.ChartComponentslicerAlignment - public java.lang.String getSlicerFontName()
getSlicerFontName in class com.tonbeller.jpivot.chart.ChartComponentpublic void setSlicerFontName(java.lang.String slicerFontName)
setSlicerFontName in class com.tonbeller.jpivot.chart.ChartComponentslicerFontName - public int getSlicerFontSize()
getSlicerFontSize in class com.tonbeller.jpivot.chart.ChartComponentpublic void setSlicerFontSize(int slicerFontSize)
setSlicerFontSize in class com.tonbeller.jpivot.chart.ChartComponentslicerFontSize - public int getSlicerFontStyle()
getSlicerFontStyle in class com.tonbeller.jpivot.chart.ChartComponentpublic void setSlicerFontStyle(int slicerFontStyle)
setSlicerFontStyle in class com.tonbeller.jpivot.chart.ChartComponentslicerFontStyle - public int getSlicerPosition()
getSlicerPosition in class com.tonbeller.jpivot.chart.ChartComponentpublic void setSlicerPosition(int slicerPosition)
setSlicerPosition in class com.tonbeller.jpivot.chart.ChartComponentslicerPosition - public int getLegendPosition()
getLegendPosition in class com.tonbeller.jpivot.chart.ChartComponentpublic void setLegendPosition(int legendPosition)
setLegendPosition in class com.tonbeller.jpivot.chart.ChartComponentlegendPosition - public java.lang.String getAxisTickFontName()
getAxisTickFontName in class com.tonbeller.jpivot.chart.ChartComponentpublic void setAxisTickFontName(java.lang.String axisTickFontName)
setAxisTickFontName in class com.tonbeller.jpivot.chart.ChartComponentaxisTickFontName - public int getAxisTickFontSize()
getAxisTickFontSize in class com.tonbeller.jpivot.chart.ChartComponentpublic void setAxisTickFontSize(int axisTickFontSize)
setAxisTickFontSize in class com.tonbeller.jpivot.chart.ChartComponentaxisTickFontSize - public int getAxisTickFontStyle()
getAxisTickFontStyle in class com.tonbeller.jpivot.chart.ChartComponentpublic void setAxisTickFontStyle(int axisTickFontStyle)
setAxisTickFontStyle in class com.tonbeller.jpivot.chart.ChartComponentaxisTickFontStyle - public int getTickLabelRotate()
getTickLabelRotate in class com.tonbeller.jpivot.chart.ChartComponentpublic void setTickLabelRotate(int tickLabelRotate)
setTickLabelRotate in class com.tonbeller.jpivot.chart.ChartComponenttickLabelRotate - The tickLabelRotate to set.public boolean isShowSlicer()
isShowSlicer in class com.tonbeller.jpivot.chart.ChartComponentpublic void setShowSlicer(boolean showSlicer)
setShowSlicer in class com.tonbeller.jpivot.chart.ChartComponentshowSlicer - public java.lang.String getFilename()
getFilename in class com.tonbeller.jpivot.chart.ChartComponentpublic java.util.List getColorPalette()
public void setColorPalette(java.util.List seriesPalette)
colorPalette - The colorPalette to set.public boolean getShowPareto()
public double getForegroundAlpha()
public boolean isUseChartSize()
public void setShowPareto(boolean showPareto)
generatePareto - The generatePareto to set.public void setForegroundAlpha(double foregroundAlpha)
public void setUseChartSize(boolean useChartSize)
public boolean getWriteImageMap()
public void setWriteImageMap(boolean writeImageMap)
writeImageMap - The writeImageMap to set.public com.tonbeller.jpivot.olap.model.OlapModel getOlapModel()
public void setOlapModel(com.tonbeller.jpivot.olap.model.OlapModel olapModel)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||