Java Doc for PieChartArea.java in  » Chart » Chart2D_1.9.6k » net » sourceforge » chart2d » 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 » Chart » Chart2D_1.9.6k » net.sourceforge.chart2d 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sourceforge.chart2d.Area
      net.sourceforge.chart2d.FontArea
         net.sourceforge.chart2d.TitledArea
            net.sourceforge.chart2d.ChartArea
               net.sourceforge.chart2d.PieChartArea

PieChartArea
final class PieChartArea extends ChartArea (Code)
A titled pie chart with legend exactly like PieChart2D with one difference. This chart does not keep the title near to it, when auto min sizing is disabled. In this scenario, the title would be near the top of the max size and the chart would be centered within the left over space. This is not desireable. PieChart2D forces the title as near as possible to the chart under unless explicitly set not to. PieChart2D uses this class. It creates one of these charts with min sizing enabled. That produces a chart that is where the title is forced near the chart, and the chart is centered in the middle of the area. But really, if any settings of the chart need to be changed they are generally changed here, or in one of its components available through a get method.



Constructor Summary
 PieChartArea()
     Creates a Pie Chart Area with default values.

Method Summary
final  ColorgetLabelsLineDotsColor()
     Returns the color of the dots on the lines between the pie sector labels and the pie sectors.
final  booleangetLabelsLineDotsExistence()
     Returns the existence of the dots on the lines between the pie sector labels and the pie sectors.
final  intgetLabelsLineDotsThicknessModel()
     Returns the model thickness of the dots on the lines between the pie sector labels and the pie sectors.
final  ColorgetLabelsLinesColor()
     Returns the color of the lines between the pie sector labels and the pie sectors.
final  intgetLabelsLinesThicknessModel()
     Return the model thickness of the lines between the pie sector labels and the pie sectors.
final  booleangetPieChartAreaNeedsUpdate()
     Indicates whether some property of this class has changed.
final  PieInfoAreagetPieInfoArea()
     Returns the pie labels component of this chart in order to allow customization of it.
final  DimensiongetPrefSize(Graphics2D g2D)
     Returns the minimum size that the chart would need if it was to be redrawn, the "preferred" size.
final  voidpaintComponent(Graphics2D g2D)
     Paints pie chart area components.
final  voidresetPieChartAreaModel(boolean reset)
     Resets the model for this class.
final  voidsetDataset(float[] d)
     The dataset to plot.
final  voidsetLabelsLineDotsColor(Color color)
     Sets the color of the dots on the lines between the pie sector labels and the pie sectors.
final  voidsetLabelsLineDotsExistence(boolean existence)
     Sets the existence of the dots on the lines between the pie sector labels and the pie sectors.
final  voidsetLabelsLineDotsThicknessModel(int thickness)
     Sets the model thickness of the dots on the lines between the pie sector labels and the pie sectors.
final  voidsetLabelsLinesColor(Color color)
     Sets the color of the lines between the pie sector labels and the pie sectors.
final  voidsetLabelsLinesExistence(boolean existence)
     Sets the existence of the lines between the pie sector labels and the pie sectors.
final  voidsetLabelsLinesThicknessModel(int thickness)
     Sets the model thickness of the lines between the pie sector labels and the pie sectors.
final  voidsetPieLabelsToHeightRatio(float ratio)
     Sets the height to be shared by all the labels, beyond the height of the pie.
final  voidsetPieLabelsToWidthRatio(float ratio)
     Sets the width to be shared by all the labels, beyond the width of the pie.
final  voidupdatePieChartArea(Graphics2D g2D)
     Updates this parent's variables, and this' variables.


Constructor Detail
PieChartArea
PieChartArea()(Code)
Creates a Pie Chart Area with default values.




Method Detail
getLabelsLineDotsColor
final Color getLabelsLineDotsColor()(Code)
Returns the color of the dots on the lines between the pie sector labels and the pie sectors. The color of the dots.



getLabelsLineDotsExistence
final boolean getLabelsLineDotsExistence()(Code)
Returns the existence of the dots on the lines between the pie sector labels and the pie sectors. If true, the dots will be painted.



getLabelsLineDotsThicknessModel
final int getLabelsLineDotsThicknessModel()(Code)
Returns the model thickness of the dots on the lines between the pie sector labels and the pie sectors. The model thickness of the dots.



getLabelsLinesColor
final Color getLabelsLinesColor()(Code)
Returns the color of the lines between the pie sector labels and the pie sectors. The color of the lines.



getLabelsLinesThicknessModel
final int getLabelsLinesThicknessModel()(Code)
Return the model thickness of the lines between the pie sector labels and the pie sectors. The model thickness of the lines.



getPieChartAreaNeedsUpdate
final boolean getPieChartAreaNeedsUpdate()(Code)
Indicates whether some property of this class has changed. True if some property has changed.



getPieInfoArea
final PieInfoArea getPieInfoArea()(Code)
Returns the pie labels component of this chart in order to allow customization of it. The pie labels area.



getPrefSize
final Dimension getPrefSize(Graphics2D g2D)(Code)
Returns the minimum size that the chart would need if it was to be redrawn, the "preferred" size. The preferred size is the minimum size which would need to be set as the maxmodel size of the chart, if the chart was to be redrawn (assuming magnification is disabled).
Parameters:
  g2D - The graphics context for calculations and painting. The size of the minimum maxmodel for a redraw.



paintComponent
final void paintComponent(Graphics2D g2D)(Code)
Paints pie chart area components.
Parameters:
  g2D - The graphics context to use for calculations.



resetPieChartAreaModel
final void resetPieChartAreaModel(boolean reset)(Code)
Resets the model for this class. The model is used for shrinking and growing of its components based on the maximum size of this class. If this method is called, then the next time the maximum size is set, this classes model maximum size will be made equal to the new maximum size. Effectively what this does is ensure that whenever this objects maximum size is equal to the one given, then all of the components will take on their default model sizes. Note: This is only useful when auto model max sizing is disabled.
Parameters:
  reset - True causes the max model to be reset upon next max sizing.



setDataset
final void setDataset(float[] d)(Code)
The dataset to plot.
Parameters:
  set - The set of data.



setLabelsLineDotsColor
final void setLabelsLineDotsColor(Color color)(Code)
Sets the color of the dots on the lines between the pie sector labels and the pie sectors.
Parameters:
  color - The color of the dots.



setLabelsLineDotsExistence
final void setLabelsLineDotsExistence(boolean existence)(Code)
Sets the existence of the dots on the lines between the pie sector labels and the pie sectors.
Parameters:
  existence - If true, the dots will be painted.



setLabelsLineDotsThicknessModel
final void setLabelsLineDotsThicknessModel(int thickness)(Code)
Sets the model thickness of the dots on the lines between the pie sector labels and the pie sectors.
Parameters:
  thickness - The model thickness of the dots.



setLabelsLinesColor
final void setLabelsLinesColor(Color color)(Code)
Sets the color of the lines between the pie sector labels and the pie sectors.
Parameters:
  color - The color of the lines.



setLabelsLinesExistence
final void setLabelsLinesExistence(boolean existence)(Code)
Sets the existence of the lines between the pie sector labels and the pie sectors.
Parameters:
  existence - If true, the lines will be painted.



setLabelsLinesThicknessModel
final void setLabelsLinesThicknessModel(int thickness)(Code)
Sets the model thickness of the lines between the pie sector labels and the pie sectors.
Parameters:
  thickness - The model thickness of the lines.



setPieLabelsToHeightRatio
final void setPieLabelsToHeightRatio(float ratio)(Code)
Sets the height to be shared by all the labels, beyond the height of the pie. For instance, if there are lables on the top and the bottom of the pie, then their max heights will be equal and will each be half of the height indicated by applying the ratio to the max width of the chart.
Parameters:
  ratio - The ratio for indicating the max heights of the labels.



setPieLabelsToWidthRatio
final void setPieLabelsToWidthRatio(float ratio)(Code)
Sets the width to be shared by all the labels, beyond the width of the pie. For instance, if there are labels on the left and the right of the pie, then their max widths will be equal and will each be half of the width indicated by applying the ratio to the max width of the chart.
Parameters:
  ratio - The ratio for indicating the max widths of the labels.



updatePieChartArea
final void updatePieChartArea(Graphics2D g2D)(Code)
Updates this parent's variables, and this' variables.
Parameters:
  g2D - The graphics context to use for calculations.



Fields inherited from net.sourceforge.chart2d.ChartArea
final static int DEFAULT_FLOAT(Code)(Java Doc)
final static int MAX_FLOAT(Code)(Java Doc)
final static int MAX_INTEGER(Code)(Java Doc)

Methods inherited from net.sourceforge.chart2d.ChartArea
final boolean getAutoSetLayoutRatios()(Code)(Java Doc)
final boolean getBetweenChartAndLegendGapExistence()(Code)(Java Doc)
final int getBetweenChartAndLegendGapThicknessModel()(Code)(Java Doc)
final boolean getChartAreaNeedsUpdate()(Code)(Java Doc)
final static float[] getDataCategoryTotals(float[][] datasets)(Code)(Java Doc)
final Color[] getDatasetColors()(Code)(Java Doc)
final Color[] getDatasetColors(int begin, int end)(Code)(Java Doc)
final static float getDatasetTotal(float[] dataset)(Code)(Java Doc)
final static String getFloatToString(float value, int places)(Code)(Java Doc)
final int getLabelsPrecisionNum()(Code)(Java Doc)
final LegendArea getLegend()(Code)(Java Doc)
final boolean getLegendExistence()(Code)(Java Doc)
final float getLegendToHeightRatio()(Code)(Java Doc)
final float getLegendToWidthRatio()(Code)(Java Doc)
final static float getPrecisionCeil(float value, int precision)(Code)(Java Doc)
final static float getPrecisionFloor(float value, int precision)(Code)(Java Doc)
final static float getPrecisionRound(float value, int precision)(Code)(Java Doc)
final boolean getTitleSqueeze()(Code)(Java Doc)
void paintComponent(Graphics2D g2D)(Code)(Java Doc)
final void resetChartAreaModel(boolean reset)(Code)(Java Doc)
final void setAutoSetLayoutRatios(boolean auto)(Code)(Java Doc)
final void setBetweenChartAndLegendGapExistence(boolean existence)(Code)(Java Doc)
final void setBetweenChartAndLegendGapThicknessModel(int thickness)(Code)(Java Doc)
final void setDatasetColors(Color[] colors)(Code)(Java Doc)
final void setLabelsPrecisionNum(int num)(Code)(Java Doc)
final void setLegendExistence(boolean existence)(Code)(Java Doc)
final void setLegendToHeightRatio(float ratio)(Code)(Java Doc)
final void setLegendToWidthRatio(float ratio)(Code)(Java Doc)
final void setTitleSqueeze(boolean squeeze)(Code)(Java Doc)
final void updateChartArea(Graphics2D g2D)(Code)(Java Doc)

Methods inherited from net.sourceforge.chart2d.TitledArea
final int getBetweenTitleAndSpaceGapThickness(Graphics2D g2D)(Code)(Java Doc)
final int getBetweenTitleAndSpaceGapThicknessModel()(Code)(Java Doc)
final Rectangle getMaxEntitledSpaceBounds(Graphics2D g2D)(Code)(Java Doc)
final Rectangle getMinEntitledSpaceBounds(Graphics2D g2D)(Code)(Java Doc)
final TextArea getTitle()(Code)(Java Doc)
final boolean getTitleAutoLocate()(Code)(Java Doc)
final boolean getTitleExistence()(Code)(Java Doc)
final int getTitleJustifications(int which)(Code)(Java Doc)
final Dimension getTitleSize(int which, Graphics2D g2D)(Code)(Java Doc)
final String getTitleText()(Code)(Java Doc)
final boolean getTitledAreaNeedsUpdate()(Code)(Java Doc)
void paintComponent(Graphics2D g2D)(Code)(Java Doc)
final void resetTitledAreaModel(boolean reset)(Code)(Java Doc)
final void setBetweenTitleAndSpaceGapExistence(boolean existence)(Code)(Java Doc)
final void setBetweenTitleAndSpaceGapThicknessModel(int gap)(Code)(Java Doc)
final void setTitle(String title)(Code)(Java Doc)
final void setTitleAutoLocate(boolean auto)(Code)(Java Doc)
final void setTitleExistence(boolean existence)(Code)(Java Doc)
final void setTitleJustifications(int horizontal, int vertical)(Code)(Java Doc)
final void setTitleLocation(Point location)(Code)(Java Doc)
final void setTitleRotateLeft(boolean rotate)(Code)(Java Doc)
final void updateTitledArea(Graphics2D g2D)(Code)(Java Doc)

Methods inherited from net.sourceforge.chart2d.FontArea
final Font getFont()(Code)(Java Doc)
final boolean getFontAreaNeedsUpdate()(Code)(Java Doc)
final Color getFontColor()(Code)(Java Doc)
final String getFontName()(Code)(Java Doc)
final int getFontPointModel()(Code)(Java Doc)
final int getFontStyle()(Code)(Java Doc)
void paintComponent(Graphics2D g2D)(Code)(Java Doc)
final void resetFontAreaModel(boolean reset)(Code)(Java Doc)
final void setFontColor(Color c)(Code)(Java Doc)
final void setFontName(String n)(Code)(Java Doc)
final void setFontPointModel(int p)(Code)(Java Doc)
final void setFontStyle(int s)(Code)(Java Doc)
final void updateFontArea()(Code)(Java Doc)

Fields inherited from net.sourceforge.chart2d.Area
final static int BETWEEN(Code)(Java Doc)
final static int BOTTOM(Code)(Java Doc)
final static int CENTER(Code)(Java Doc)
final static int CENTERED(Code)(Java Doc)
static float[] CONTINUOUS(Code)(Java Doc)
static float[] DASHED(Code)(Java Doc)
static float[] DOTTED(Code)(Java Doc)
final static int HEIGHT(Code)(Java Doc)
final static int HORIZONTAL(Code)(Java Doc)
final static int LABELSBOTTOM(Code)(Java Doc)
final static int LABELSLEFT(Code)(Java Doc)
final static int LEFT(Code)(Java Doc)
final static int LEFTBOTTOM(Code)(Java Doc)
final static int LEFTRIGHT(Code)(Java Doc)
final static int LEFTTOP(Code)(Java Doc)
final static int LESSER(Code)(Java Doc)
final static int MAX(Code)(Java Doc)
final static int MAXMODEL(Code)(Java Doc)
final static int MIN(Code)(Java Doc)
static int NONE(Code)(Java Doc)
final static int RIGHT(Code)(Java Doc)
final static int RIGHTBOTTOM(Code)(Java Doc)
final static int RIGHTTOP(Code)(Java Doc)
final static int TOP(Code)(Java Doc)
final static int TOPBOTTOM(Code)(Java Doc)
final static int VERTICAL(Code)(Java Doc)
final static int WIDTH(Code)(Java Doc)

Methods inherited from net.sourceforge.chart2d.Area
final int applyRatio(int model, float ratio)(Code)(Java Doc)
final boolean getAreaNeedsUpdate()(Code)(Java Doc)
final boolean getAutoSize(int which)(Code)(Java Doc)
final Color getBackgroundColor()(Code)(Java Doc)
final boolean getBackgroundExistence()(Code)(Java Doc)
final Color getBorderColor()(Code)(Java Doc)
final Color getBorderColor(int which)(Code)(Java Doc)
final boolean getBorderExistence()(Code)(Java Doc)
final boolean getBorderExistence(int which)(Code)(Java Doc)
final int getBorderThickness(int which)(Code)(Java Doc)
final int getBorderThickness()(Code)(Java Doc)
final int getBorderThicknessModel()(Code)(Java Doc)
final int getBorderThicknessModel(int which)(Code)(Java Doc)
final boolean getGapExistence()(Code)(Java Doc)
final boolean getGapExistence(int which)(Code)(Java Doc)
final int getGapThickness()(Code)(Java Doc)
final int getGapThickness(int which)(Code)(Java Doc)
final int getGapThicknessModel()(Code)(Java Doc)
final int getJustifications(int which)(Code)(Java Doc)
int getLightSource()(Code)(Java Doc)
final int getOffsetThickness()(Code)(Java Doc)
final float getRatio(int which)(Code)(Java Doc)
final boolean getResetAreaModel()(Code)(Java Doc)
final Dimension getSize(int which)(Code)(Java Doc)
final Point getSizeLocation(int which)(Code)(Java Doc)
final Dimension getSpaceSize(int which)(Code)(Java Doc)
final Point getSpaceSizeLocation(int which)(Code)(Java Doc)
void paintComponent(Graphics2D g2D)(Code)(Java Doc)
final void resetAreaModel(boolean reset)(Code)(Java Doc)
final void setAutoJustifys(boolean horizontal, boolean vertical)(Code)(Java Doc)
final void setAutoSizes(boolean maxModel, boolean min)(Code)(Java Doc)
final void setBackgroundColor(Color color)(Code)(Java Doc)
final void setBackgroundExistence(boolean existence)(Code)(Java Doc)
final void setBorderAssociations(boolean leftRight, boolean leftTop, boolean leftBottom, boolean rightTop, boolean rightBottom, boolean topBottom)(Code)(Java Doc)
final void setBorderColor(Color color)(Code)(Java Doc)
final void setBorderColors(Color left, Color right, Color top, Color bottom)(Code)(Java Doc)
final void setBorderCornerAssociations(int leftTop, int leftBottom, int rightTop, int rightBottom)(Code)(Java Doc)
final void setBorderExistence(boolean existences)(Code)(Java Doc)
final void setBorderExistences(boolean left, boolean right, boolean top, boolean bottom)(Code)(Java Doc)
final void setBorderThicknessModel(int thickness)(Code)(Java Doc)
final void setBorderThicknessModels(int left, int right, int top, int bottom)(Code)(Java Doc)
final void setCustomRatio(int which, boolean customize, float ratio)(Code)(Java Doc)
final void setGapAssociations(boolean leftRight, boolean leftTop, boolean leftBottom, boolean rightTop, boolean rightBottom, boolean topBottom)(Code)(Java Doc)
final void setGapExistence(boolean existence)(Code)(Java Doc)
final void setGapExistences(boolean left, boolean right, boolean top, boolean bottom)(Code)(Java Doc)
final void setGapThicknessModel(int thickness)(Code)(Java Doc)
final void setGapThicknessModels(int left, int right, int top, int bottom)(Code)(Java Doc)
final void setJustifications(int horizontal, int vertical)(Code)(Java Doc)
void setLightSource(int source)(Code)(Java Doc)
final void setLockRatios(boolean lock)(Code)(Java Doc)
final void setSize(int which, Dimension size)(Code)(Java Doc)
final void setSizeLocation(int which, Point location)(Code)(Java Doc)
final void setSpaceSize(int which, Dimension size)(Code)(Java Doc)
final void setSpaceSizeLocation(int which, Point location)(Code)(Java Doc)
final void updateArea()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.