Java Doc for DialWidgetDefinition.java in  » Report » pentaho-report » org » pentaho » plugin » jfreechart » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Report » pentaho report » org.pentaho.plugin.jfreechart 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.pentaho.plugin.jfreechart.WidgetDefinition
   org.pentaho.plugin.jfreechart.DialWidgetDefinition

DialWidgetDefinition
public class DialWidgetDefinition extends WidgetDefinition implements ChartDefinition(Code)
This class represents the definition of a dashboard dial. It holds:
  • The value to be displayed on the dial
  • Minimum value of the dial
  • Maximum value of the dial
  • A list of intervals with the dial. Each interval specifies a minimum, maximum and information about how the interval should be painted.
  • Painting information
    • Background paint
    • Dial paint
    • Needle paint

This class does not generate an image of the dial, it just defines the properties of the dial.

Dial definitions are stored in xml documents in the solution folders with *.dial.xml extensions. These definition files store XML representations of all the settings here. Typically the value to be displayed is provided at runtime by a query or business rule, but the value can also read from the definition file.

The definitions are read by org.pentaho.core.ui.component.DashboardWidgetComponent objects, which create instances of this object and set the properties defined here.

The DashboardWidgetComponent objects pass this, now populated, object to The dial image is generated by org.pentaho.core.ui.component.JFreeChartEngine

Example Dial




Constructor Summary
public  DialWidgetDefinition(double value, double minimum, double maximum, boolean rangeLimited)
    
public  DialWidgetDefinition(IPentahoResultSet data, boolean byRow, Node chartAttributes, int width, int height, IPentahoSession session)
     TODO PROBLEM HERE! If you use this constructor, the XML schema for the chart attributes is different than if you use the constructor with the arguments public DialWidgetDefinition( Document document, double value, int width, int height, IPentahoSession session).
public  DialWidgetDefinition(Document document, double value, int width, int height, IPentahoSession session)
     TODO: PROBLEM HERE! See the note on the constructor above.

Method Summary
public  voidaddInterval(MeterInterval interval)
     Add an interval (MeterInterval) to the dial definition.
public  voidaddSubTitle(String subTitle)
    
public  voidaddSubTitles(List subTitleNodes)
    
public static  voidcreateDial(DialWidgetDefinition widgetDefinition, Node dialNode, int width, int height, IPentahoSession session)
    
public  voidderiveMinMax(double value)
    
public  PaintgetBorderPaint()
    
public  ImagegetChartBackgroundImage()
    
public  PaintgetChartBackgroundPaint()
    
public  DialShapegetDialShape()
     Return the shape to be used for the dial.
public  intgetHeight()
    
public  ListgetIntervals()
     Return a list of the intervals for the dial.
public  FontgetLegendFont()
    
public static  LoggetLogger()
    
public  PaintgetNeedlePaint()
    
public  Paint[]getPaintSequence()
    
public  ImagegetPlotBackgroundImage()
    
public  PaintgetPlotBackgroundPaint()
     Return the java.awt.Paint object to be used to paint the backound of the dial.
public  ListgetSubtitles()
    
public  PaintgetTickPaint()
    
public  intgetTickSize()
    
public  StringgetTitle()
    
public  FontgetTitleFont()
    
public  RectangleEdgegetTitlePosition()
    
public  StringgetUnits()
    
public  FontgetValueFont()
    
public  PaintgetValuePaint()
    
public  intgetWidth()
    
public  booleanisBorderVisible()
    
public  booleanisDisplayLabels()
    
public  booleanisLegendBorderVisible()
    
public  booleanisLegendIncluded()
    
public  booleanisThreeD()
    
public  voidsetChartBackgroundPaint(Paint chartBackgroundPaint)
    
public  voidsetDialShape(DialShape dialShape)
     Sets the shape to be used for the dial.
public  voidsetLegendBorderVisible(Node legendBorderVisibleNode)
    
public  voidsetLegendBorderVisible(boolean legendBorderVisible)
    
public  voidsetLegendFont(Font legendFont)
    
public  voidsetLegendFont(Node legendFontNode)
    
public  voidsetNeedlePaint(Paint needlePaint)
     Sets the java.awt.Paint object to be used to paint the needle of the dial image.
public  voidsetPlotBackgroundPaint(Paint plotBackgroundPaint)
     Return the java.awt.Paint object to be used to paint the backound of the dial.
public  voidsetTickPaint(Paint tickPaint)
    
public  voidsetTickSize(int tickSize)
    
public  voidsetTitleFont(Font tFont)
    
public  voidsetUnits(String units)
    
public  voidsetValue(double value)
    
public  voidsetValueFont(Font valueFont)
    
public  voidsetValuePaint(Paint valuePaint)
    


Constructor Detail
DialWidgetDefinition
public DialWidgetDefinition(double value, double minimum, double maximum, boolean rangeLimited)(Code)



DialWidgetDefinition
public DialWidgetDefinition(IPentahoResultSet data, boolean byRow, Node chartAttributes, int width, int height, IPentahoSession session)(Code)
TODO PROBLEM HERE! If you use this constructor, the XML schema for the chart attributes is different than if you use the constructor with the arguments public DialWidgetDefinition( Document document, double value, int width, int height, IPentahoSession session). This constructor expects the chart attribute nodes to be children of the node, whereas the latter constructor expects the attributes to be children of a node. This does not help us with our parity situation, and should be deprecated and reconciled.
Parameters:
  data -
Parameters:
  byRow -
Parameters:
  chartAttributes -
Parameters:
  width -
Parameters:
  height -
Parameters:
  session -



DialWidgetDefinition
public DialWidgetDefinition(Document document, double value, int width, int height, IPentahoSession session)(Code)
TODO: PROBLEM HERE! See the note on the constructor above.
Parameters:
  document -
Parameters:
  value -
Parameters:
  width -
Parameters:
  height -
Parameters:
  session -




Method Detail
addInterval
public void addInterval(MeterInterval interval)(Code)
Add an interval (MeterInterval) to the dial definition. The interval defines a range and how it should be painted.

The dial images here have three intervals. The lowest interval has a minimum of 0 and a maximum of 30.

Intervals have a color. In this image the lowest interval color is set to red.

Intervals have a text color. In this image the lowest interval text color is set to red. This affects the outer rim, the interval value text

Parameters:
  interval - A MeterInterval that defines an interval (range) on the dial




addSubTitle
public void addSubTitle(String subTitle)(Code)



addSubTitles
public void addSubTitles(List subTitleNodes)(Code)



createDial
public static void createDial(DialWidgetDefinition widgetDefinition, Node dialNode, int width, int height, IPentahoSession session)(Code)
Create a dial definition object from an XML document
Parameters:
  doc - definition XML document Dial definition object



deriveMinMax
public void deriveMinMax(double value)(Code)



getBorderPaint
public Paint getBorderPaint()(Code)



getChartBackgroundImage
public Image getChartBackgroundImage()(Code)



getChartBackgroundPaint
public Paint getChartBackgroundPaint()(Code)



getDialShape
public DialShape getDialShape()(Code)
Return the shape to be used for the dial. DialShape The DialShape for this dial



getHeight
public int getHeight()(Code)



getIntervals
public List getIntervals()(Code)
Return a list of the intervals for the dial. Each object in the list is a MeterInterval object. List The list of MeterInterval objects for this dial



getLegendFont
public Font getLegendFont()(Code)
Return the java.awt.Font to be used to display the legend items Font The font for the legend items



getLogger
public static Log getLogger()(Code)



getNeedlePaint
public Paint getNeedlePaint()(Code)
Return the java.awt.Paint used to paint the needle of the dial image The Paint to use for the needle of this dial



getPaintSequence
public Paint[] getPaintSequence()(Code)



getPlotBackgroundImage
public Image getPlotBackgroundImage()(Code)



getPlotBackgroundPaint
public Paint getPlotBackgroundPaint()(Code)
Return the java.awt.Paint object to be used to paint the backound of the dial. The Paint to be used



getSubtitles
public List getSubtitles()(Code)



getTickPaint
public Paint getTickPaint()(Code)



getTickSize
public int getTickSize()(Code)



getTitle
public String getTitle()(Code)



getTitleFont
public Font getTitleFont()(Code)
Return the java.awt.Font to be used to display the dial title Font The Font for the title of this dial



getTitlePosition
public RectangleEdge getTitlePosition()(Code)



getUnits
public String getUnits()(Code)



getValueFont
public Font getValueFont()(Code)



getValuePaint
public Paint getValuePaint()(Code)



getWidth
public int getWidth()(Code)



isBorderVisible
public boolean isBorderVisible()(Code)



isDisplayLabels
public boolean isDisplayLabels()(Code)



isLegendBorderVisible
public boolean isLegendBorderVisible()(Code)
Return the boolen that states if the legend border is visible boolean Is the legend border visible



isLegendIncluded
public boolean isLegendIncluded()(Code)



isThreeD
public boolean isThreeD()(Code)



setChartBackgroundPaint
public void setChartBackgroundPaint(Paint chartBackgroundPaint)(Code)

Parameters:
  chartBackgroundPaint - The chartBackgroundPaint to set.



setDialShape
public void setDialShape(DialShape dialShape)(Code)
Sets the shape to be used for the dial. This affects the area of dial outside the range that the needle covers.
CIRCLE
CHORD
PIE

Parameters:
  dialShape - The shape for this dial



setLegendBorderVisible
public void setLegendBorderVisible(Node legendBorderVisibleNode)(Code)



setLegendBorderVisible
public void setLegendBorderVisible(boolean legendBorderVisible)(Code)
boolean legendBorderVisibleSet the visibility of the legend border.



setLegendFont
public void setLegendFont(Font legendFont)(Code)
Set java.awt.Font to be used to display the legend items
Parameters:
  Font - The java.awt.Font for the legend items



setLegendFont
public void setLegendFont(Node legendFontNode)(Code)



setNeedlePaint
public void setNeedlePaint(Paint needlePaint)(Code)
Sets the java.awt.Paint object to be used to paint the needle of the dial image.

In this image the needle paint has been set to red.

Parameters:
  needlePaint - The Paint to use for ths needle of this dial




setPlotBackgroundPaint
public void setPlotBackgroundPaint(Paint plotBackgroundPaint)(Code)
Return the java.awt.Paint object to be used to paint the backound of the dial.

In this image the background paint has been set to red
The Paint to used for the background of the image




setTickPaint
public void setTickPaint(Paint tickPaint)(Code)



setTickSize
public void setTickSize(int tickSize)(Code)



setTitleFont
public void setTitleFont(Font tFont)(Code)



setUnits
public void setUnits(String units)(Code)



setValue
public void setValue(double value)(Code)
Sets the value to be displayed on the dial image
Parameters:
  value - The value to be displayed



setValueFont
public void setValueFont(Font valueFont)(Code)



setValuePaint
public void setValuePaint(Paint valuePaint)(Code)



Fields inherited from org.pentaho.plugin.jfreechart.WidgetDefinition
String noDataMessage(Code)(Java Doc)

Methods inherited from org.pentaho.plugin.jfreechart.WidgetDefinition
public double getMaximum()(Code)(Java Doc)
public double getMinimum()(Code)(Java Doc)
public String getNoDataMessage()(Code)(Java Doc)
abstract public Font getValueFont()(Code)(Java Doc)
public void setMaximum(double maximum)(Code)(Java Doc)
public void setMinimum(double minimum)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.