Java Doc for CategoryAxis.java in  » Chart » jfreechart » org » jfree » chart » axis » 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 » jfreechart » org.jfree.chart.axis 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jfree.chart.axis.Axis
      org.jfree.chart.axis.CategoryAxis

All known Subclasses:   org.jfree.chart.axis.CategoryAxis3D,  org.jfree.chart.axis.SubCategoryAxis,  org.jfree.chart.axis.ExtendedCategoryAxis,
CategoryAxis
public class CategoryAxis extends Axis implements Cloneable,Serializable(Code)
An axis that displays categories.


Field Summary
final public static  doubleDEFAULT_AXIS_MARGIN
     The default margin for the axis (used for both lower and upper margins).
final public static  doubleDEFAULT_CATEGORY_MARGIN
     The default margin between categories (a percentage of the overall axis length).

Constructor Summary
public  CategoryAxis()
     Creates a new category axis with no label.
public  CategoryAxis(String label)
     Constructs a category axis, using default values where necessary.

Method Summary
public  voidaddCategoryLabelToolTip(Comparable category, String tooltip)
     Adds a tooltip to the specified category and sends an AxisChangeEvent to all registered listeners.
protected  doublecalculateCategoryGapSize(int categoryCount, Rectangle2D area, RectangleEdge edge)
     Calculates the size (width or height, depending on the location of the axis) of a category gap.
Parameters:
  categoryCount - the number of categories.
Parameters:
  area - the area within which the categories will be drawn.
Parameters:
  edge - the axis location.
protected  doublecalculateCategorySize(int categoryCount, Rectangle2D area, RectangleEdge edge)
     Calculates the size (width or height, depending on the location of the axis) of a category.
Parameters:
  categoryCount - the number of categories.
Parameters:
  area - the area within which the categories will be drawn.
Parameters:
  edge - the axis location.
protected  doublecalculateTextBlockHeight(TextBlock block, CategoryLabelPosition position, Graphics2D g2)
     A utility method for determining the height of a text block.
Parameters:
  block - the text block.
Parameters:
  position - the label position.
Parameters:
  g2 - the graphics device.
protected  doublecalculateTextBlockWidth(TextBlock block, CategoryLabelPosition position, Graphics2D g2)
     A utility method for determining the width of a text block.
Parameters:
  block - the text block.
Parameters:
  position - the position.
Parameters:
  g2 - the graphics device.
public  voidclearCategoryLabelToolTips()
     Clears the category label tooltips and sends an AxisChangeEvent to all registered listeners.
public  Objectclone()
     Creates a clone of the axis.
public  voidconfigure()
     Configures the axis against the current plot.
protected  TextBlockcreateLabel(Comparable category, float width, RectangleEdge edge, Graphics2D g2)
     Creates a label.
Parameters:
  category - the category.
Parameters:
  width - the available width.
public  AxisStatedraw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRenderingInfo plotState)
     Draws the axis on a Java 2D graphics device (such as the screen or a printer).
Parameters:
  g2 - the graphics device (null not permitted).
Parameters:
  cursor - the cursor location.
Parameters:
  plotArea - the area within which the axis should be drawn (null not permitted).
Parameters:
  dataArea - the area within which the plot is being drawn (null not permitted).
Parameters:
  edge - the location of the axis (null not permitted).
Parameters:
  plotState - collects information about the plot (null permitted).
protected  AxisStatedrawCategoryLabels(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge, AxisState state, PlotRenderingInfo plotState)
     Draws the category labels and returns the updated axis state.
Parameters:
  g2 - the graphics device (null not permitted).
Parameters:
  dataArea - the area inside the axes (null not permitted).
Parameters:
  edge - the axis location (null not permitted).
Parameters:
  state - the axis state (null not permitted).
Parameters:
  plotState - collects information about the plot (nullpermitted).
protected  AxisStatedrawCategoryLabels(Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, AxisState state, PlotRenderingInfo plotState)
     Draws the category labels and returns the updated axis state.
Parameters:
  g2 - the graphics device (null not permitted).
Parameters:
  plotArea - the plot area (null not permitted).
Parameters:
  dataArea - the area inside the axes (null not permitted).
Parameters:
  edge - the axis location (null not permitted).
Parameters:
  state - the axis state (null not permitted).
Parameters:
  plotState - collects information about the plot (nullpermitted).
public  booleanequals(Object obj)
     Tests this axis for equality with an arbitrary object.
Parameters:
  obj - the object (null permitted).
public  doublegetCategoryEnd(int category, int categoryCount, Rectangle2D area, RectangleEdge edge)
     Returns the end coordinate for the specified category.
Parameters:
  category - the category.
Parameters:
  categoryCount - the number of categories.
Parameters:
  area - the data area.
Parameters:
  edge - the axis location.
public  doublegetCategoryJava2DCoordinate(CategoryAnchor anchor, int category, int categoryCount, Rectangle2D area, RectangleEdge edge)
     Returns the Java 2D coordinate for a category.
Parameters:
  anchor - the anchor point.
Parameters:
  category - the category index.
Parameters:
  categoryCount - the category count.
Parameters:
  area - the data area.
Parameters:
  edge - the location of the axis.
public  intgetCategoryLabelPositionOffset()
     Returns the offset between the axis and the category labels (before label positioning is taken into account).
public  CategoryLabelPositionsgetCategoryLabelPositions()
     Returns the category label position specification (this contains label positioning info for all four possible axis locations).
public  StringgetCategoryLabelToolTip(Comparable category)
     Returns the tool tip text for the label belonging to the specified category.
Parameters:
  category - the category (null not permitted).
public  doublegetCategoryMargin()
     Returns the category margin.
public  doublegetCategoryMiddle(int category, int categoryCount, Rectangle2D area, RectangleEdge edge)
     Returns the middle coordinate for the specified category.
Parameters:
  category - the category.
Parameters:
  categoryCount - the number of categories.
Parameters:
  area - the data area.
Parameters:
  edge - the axis location.
public  doublegetCategoryStart(int category, int categoryCount, Rectangle2D area, RectangleEdge edge)
     Returns the starting coordinate for the specified category.
Parameters:
  category - the category.
Parameters:
  categoryCount - the number of categories.
Parameters:
  area - the data area.
Parameters:
  edge - the axis location.
public  doublegetLowerMargin()
     Returns the lower margin for the axis.
public  intgetMaximumCategoryLabelLines()
     Returns the maximum number of lines to use for each category label.
public  floatgetMaximumCategoryLabelWidthRatio()
     Returns the category label width ratio.
public  FontgetTickLabelFont(Comparable category)
     Returns the font for the tick label for the given category.
Parameters:
  category - the category (null not permitted).
public  PaintgetTickLabelPaint(Comparable category)
     Returns the paint for the tick label for the given category.
Parameters:
  category - the category (null not permitted).
public  doublegetUpperMargin()
     Returns the upper margin for the axis.
public  inthashCode()
     Returns a hash code for this object.
public  ListrefreshTicks(Graphics2D g2, AxisState state, Rectangle2D dataArea, RectangleEdge edge)
     Creates a temporary list of ticks that can be used when drawing the axis.
Parameters:
  g2 - the graphics device (used to get font measurements).
Parameters:
  state - the axis state.
Parameters:
  dataArea - the area inside the axes.
Parameters:
  edge - the location of the axis.
public  voidremoveCategoryLabelToolTip(Comparable category)
     Removes the tooltip for the specified category and sends an AxisChangeEvent to all registered listeners.
public  AxisSpacereserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, RectangleEdge edge, AxisSpace space)
     Estimates the space required for the axis, given a specific drawing area.
Parameters:
  g2 - the graphics device (used to obtain font information).
Parameters:
  plot - the plot that the axis belongs to.
Parameters:
  plotArea - the area within which the axis should be drawn.
Parameters:
  edge - the axis location (top or bottom).
Parameters:
  space - the space already reserved.
public  voidsetCategoryLabelPositionOffset(int offset)
     Sets the offset between the axis and the category labels (before label positioning is taken into account).
public  voidsetCategoryLabelPositions(CategoryLabelPositions positions)
     Sets the category label position specification for the axis and sends an AxisChangeEvent to all registered listeners.
public  voidsetCategoryMargin(double margin)
     Sets the category margin and sends an AxisChangeEvent to all registered listeners.
public  voidsetLowerMargin(double margin)
     Sets the lower margin for the axis and sends an AxisChangeEvent to all registered listeners.
public  voidsetMaximumCategoryLabelLines(int lines)
     Sets the maximum number of lines to use for each category label and sends an AxisChangeEvent to all registered listeners.
public  voidsetMaximumCategoryLabelWidthRatio(float ratio)
     Sets the maximum category label width ratio and sends an AxisChangeEvent to all registered listeners.
public  voidsetTickLabelFont(Comparable category, Font font)
     Sets the font for the tick label for the specified category and sends an AxisChangeEvent to all registered listeners.
public  voidsetTickLabelPaint(Comparable category, Paint paint)
     Sets the paint for the tick label for the specified category and sends an AxisChangeEvent to all registered listeners.
public  voidsetUpperMargin(double margin)
     Sets the upper margin for the axis and sends an AxisChangeEvent to all registered listeners.

Field Detail
DEFAULT_AXIS_MARGIN
final public static double DEFAULT_AXIS_MARGIN(Code)
The default margin for the axis (used for both lower and upper margins).



DEFAULT_CATEGORY_MARGIN
final public static double DEFAULT_CATEGORY_MARGIN(Code)
The default margin between categories (a percentage of the overall axis length).




Constructor Detail
CategoryAxis
public CategoryAxis()(Code)
Creates a new category axis with no label.



CategoryAxis
public CategoryAxis(String label)(Code)
Constructs a category axis, using default values where necessary.
Parameters:
  label - the axis label (null permitted).




Method Detail
addCategoryLabelToolTip
public void addCategoryLabelToolTip(Comparable category, String tooltip)(Code)
Adds a tooltip to the specified category and sends an AxisChangeEvent to all registered listeners.
Parameters:
  category - the category (null not permitted).
Parameters:
  tooltip - the tooltip text (null permitted).
See Also:   CategoryAxis.removeCategoryLabelToolTip(Comparable)



calculateCategoryGapSize
protected double calculateCategoryGapSize(int categoryCount, Rectangle2D area, RectangleEdge edge)(Code)
Calculates the size (width or height, depending on the location of the axis) of a category gap.
Parameters:
  categoryCount - the number of categories.
Parameters:
  area - the area within which the categories will be drawn.
Parameters:
  edge - the axis location. The category gap width.



calculateCategorySize
protected double calculateCategorySize(int categoryCount, Rectangle2D area, RectangleEdge edge)(Code)
Calculates the size (width or height, depending on the location of the axis) of a category.
Parameters:
  categoryCount - the number of categories.
Parameters:
  area - the area within which the categories will be drawn.
Parameters:
  edge - the axis location. The category size.



calculateTextBlockHeight
protected double calculateTextBlockHeight(TextBlock block, CategoryLabelPosition position, Graphics2D g2)(Code)
A utility method for determining the height of a text block.
Parameters:
  block - the text block.
Parameters:
  position - the label position.
Parameters:
  g2 - the graphics device. The height.



calculateTextBlockWidth
protected double calculateTextBlockWidth(TextBlock block, CategoryLabelPosition position, Graphics2D g2)(Code)
A utility method for determining the width of a text block.
Parameters:
  block - the text block.
Parameters:
  position - the position.
Parameters:
  g2 - the graphics device. The width.



clearCategoryLabelToolTips
public void clearCategoryLabelToolTips()(Code)
Clears the category label tooltips and sends an AxisChangeEvent to all registered listeners.
See Also:   CategoryAxis.addCategoryLabelToolTip(Comparable,String)
See Also:   CategoryAxis.removeCategoryLabelToolTip(Comparable)



clone
public Object clone() throws CloneNotSupportedException(Code)
Creates a clone of the axis. A clone.
throws:
  CloneNotSupportedException - if some component of the axis does not support cloning.



configure
public void configure()(Code)
Configures the axis against the current plot.



createLabel
protected TextBlock createLabel(Comparable category, float width, RectangleEdge edge, Graphics2D g2)(Code)
Creates a label.
Parameters:
  category - the category.
Parameters:
  width - the available width.
Parameters:
  edge - the edge on which the axis appears.
Parameters:
  g2 - the graphics device. A label.



draw
public AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRenderingInfo plotState)(Code)
Draws the axis on a Java 2D graphics device (such as the screen or a printer).
Parameters:
  g2 - the graphics device (null not permitted).
Parameters:
  cursor - the cursor location.
Parameters:
  plotArea - the area within which the axis should be drawn (null not permitted).
Parameters:
  dataArea - the area within which the plot is being drawn (null not permitted).
Parameters:
  edge - the location of the axis (null not permitted).
Parameters:
  plotState - collects information about the plot (null permitted). The axis state (never null).



drawCategoryLabels
protected AxisState drawCategoryLabels(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge, AxisState state, PlotRenderingInfo plotState)(Code)
Draws the category labels and returns the updated axis state.
Parameters:
  g2 - the graphics device (null not permitted).
Parameters:
  dataArea - the area inside the axes (null not permitted).
Parameters:
  edge - the axis location (null not permitted).
Parameters:
  state - the axis state (null not permitted).
Parameters:
  plotState - collects information about the plot (nullpermitted). The updated axis state (never null).CategoryAxis.drawCategoryLabels(Graphics2D,Rectangle2D,Rectangle2D,RectangleEdge,AxisState,PlotRenderingInfo)



drawCategoryLabels
protected AxisState drawCategoryLabels(Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, AxisState state, PlotRenderingInfo plotState)(Code)
Draws the category labels and returns the updated axis state.
Parameters:
  g2 - the graphics device (null not permitted).
Parameters:
  plotArea - the plot area (null not permitted).
Parameters:
  dataArea - the area inside the axes (null not permitted).
Parameters:
  edge - the axis location (null not permitted).
Parameters:
  state - the axis state (null not permitted).
Parameters:
  plotState - collects information about the plot (nullpermitted). The updated axis state (never null).



equals
public boolean equals(Object obj)(Code)
Tests this axis for equality with an arbitrary object.
Parameters:
  obj - the object (null permitted). A boolean.



getCategoryEnd
public double getCategoryEnd(int category, int categoryCount, Rectangle2D area, RectangleEdge edge)(Code)
Returns the end coordinate for the specified category.
Parameters:
  category - the category.
Parameters:
  categoryCount - the number of categories.
Parameters:
  area - the data area.
Parameters:
  edge - the axis location. The coordinate.
See Also:   CategoryAxis.getCategoryStart(int,int,Rectangle2D,RectangleEdge)
See Also:   CategoryAxis.getCategoryMiddle(int,int,Rectangle2D,RectangleEdge)



getCategoryJava2DCoordinate
public double getCategoryJava2DCoordinate(CategoryAnchor anchor, int category, int categoryCount, Rectangle2D area, RectangleEdge edge)(Code)
Returns the Java 2D coordinate for a category.
Parameters:
  anchor - the anchor point.
Parameters:
  category - the category index.
Parameters:
  categoryCount - the category count.
Parameters:
  area - the data area.
Parameters:
  edge - the location of the axis. The coordinate.



getCategoryLabelPositionOffset
public int getCategoryLabelPositionOffset()(Code)
Returns the offset between the axis and the category labels (before label positioning is taken into account). The offset (in Java2D units).
See Also:   CategoryAxis.setCategoryLabelPositionOffset(int)



getCategoryLabelPositions
public CategoryLabelPositions getCategoryLabelPositions()(Code)
Returns the category label position specification (this contains label positioning info for all four possible axis locations). The positions (never null).
See Also:   CategoryAxis.setCategoryLabelPositions(CategoryLabelPositions)



getCategoryLabelToolTip
public String getCategoryLabelToolTip(Comparable category)(Code)
Returns the tool tip text for the label belonging to the specified category.
Parameters:
  category - the category (null not permitted). The tool tip text (possibly null).
See Also:   CategoryAxis.addCategoryLabelToolTip(Comparable,String)
See Also:   CategoryAxis.removeCategoryLabelToolTip(Comparable)



getCategoryMargin
public double getCategoryMargin()(Code)
Returns the category margin. The margin.
See Also:   CategoryAxis.setCategoryMargin(double)



getCategoryMiddle
public double getCategoryMiddle(int category, int categoryCount, Rectangle2D area, RectangleEdge edge)(Code)
Returns the middle coordinate for the specified category.
Parameters:
  category - the category.
Parameters:
  categoryCount - the number of categories.
Parameters:
  area - the data area.
Parameters:
  edge - the axis location. The coordinate.
See Also:   CategoryAxis.getCategoryStart(int,int,Rectangle2D,RectangleEdge)
See Also:   CategoryAxis.getCategoryEnd(int,int,Rectangle2D,RectangleEdge)



getCategoryStart
public double getCategoryStart(int category, int categoryCount, Rectangle2D area, RectangleEdge edge)(Code)
Returns the starting coordinate for the specified category.
Parameters:
  category - the category.
Parameters:
  categoryCount - the number of categories.
Parameters:
  area - the data area.
Parameters:
  edge - the axis location. The coordinate.
See Also:   CategoryAxis.getCategoryMiddle(int,int,Rectangle2D,RectangleEdge)
See Also:   CategoryAxis.getCategoryEnd(int,int,Rectangle2D,RectangleEdge)



getLowerMargin
public double getLowerMargin()(Code)
Returns the lower margin for the axis. The margin.
See Also:   CategoryAxis.getUpperMargin()
See Also:   CategoryAxis.setLowerMargin(double)



getMaximumCategoryLabelLines
public int getMaximumCategoryLabelLines()(Code)
Returns the maximum number of lines to use for each category label. The maximum number of lines.
See Also:   CategoryAxis.setMaximumCategoryLabelLines(int)



getMaximumCategoryLabelWidthRatio
public float getMaximumCategoryLabelWidthRatio()(Code)
Returns the category label width ratio. The ratio.
See Also:   CategoryAxis.setMaximumCategoryLabelWidthRatio(float)



getTickLabelFont
public Font getTickLabelFont(Comparable category)(Code)
Returns the font for the tick label for the given category.
Parameters:
  category - the category (null not permitted). The font (never null).
See Also:   CategoryAxis.setTickLabelFont(Comparable,Font)



getTickLabelPaint
public Paint getTickLabelPaint(Comparable category)(Code)
Returns the paint for the tick label for the given category.
Parameters:
  category - the category (null not permitted). The paint (never null).
See Also:   CategoryAxis.setTickLabelPaint(Paint)



getUpperMargin
public double getUpperMargin()(Code)
Returns the upper margin for the axis. The margin.
See Also:   CategoryAxis.getLowerMargin()
See Also:   CategoryAxis.setUpperMargin(double)



hashCode
public int hashCode()(Code)
Returns a hash code for this object. A hash code.



refreshTicks
public List refreshTicks(Graphics2D g2, AxisState state, Rectangle2D dataArea, RectangleEdge edge)(Code)
Creates a temporary list of ticks that can be used when drawing the axis.
Parameters:
  g2 - the graphics device (used to get font measurements).
Parameters:
  state - the axis state.
Parameters:
  dataArea - the area inside the axes.
Parameters:
  edge - the location of the axis. A list of ticks.



removeCategoryLabelToolTip
public void removeCategoryLabelToolTip(Comparable category)(Code)
Removes the tooltip for the specified category and sends an AxisChangeEvent to all registered listeners.
Parameters:
  category - the category (null not permitted).
See Also:   CategoryAxis.addCategoryLabelToolTip(Comparable,String)
See Also:   CategoryAxis.clearCategoryLabelToolTips()



reserveSpace
public AxisSpace reserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, RectangleEdge edge, AxisSpace space)(Code)
Estimates the space required for the axis, given a specific drawing area.
Parameters:
  g2 - the graphics device (used to obtain font information).
Parameters:
  plot - the plot that the axis belongs to.
Parameters:
  plotArea - the area within which the axis should be drawn.
Parameters:
  edge - the axis location (top or bottom).
Parameters:
  space - the space already reserved. The space required to draw the axis.



setCategoryLabelPositionOffset
public void setCategoryLabelPositionOffset(int offset)(Code)
Sets the offset between the axis and the category labels (before label positioning is taken into account).
Parameters:
  offset - the offset (in Java2D units).
See Also:   CategoryAxis.getCategoryLabelPositionOffset()



setCategoryLabelPositions
public void setCategoryLabelPositions(CategoryLabelPositions positions)(Code)
Sets the category label position specification for the axis and sends an AxisChangeEvent to all registered listeners.
Parameters:
  positions - the positions (null not permitted).
See Also:   CategoryAxis.getCategoryLabelPositions()



setCategoryMargin
public void setCategoryMargin(double margin)(Code)
Sets the category margin and sends an AxisChangeEvent to all registered listeners. The overall category margin is distributed over N-1 gaps, where N is the number of categories on the axis.
Parameters:
  margin - the margin as a percentage of the axis length (for example, 0.05 is five percent).
See Also:   CategoryAxis.getCategoryMargin()



setLowerMargin
public void setLowerMargin(double margin)(Code)
Sets the lower margin for the axis and sends an AxisChangeEvent to all registered listeners.
Parameters:
  margin - the margin as a percentage of the axis length (for example, 0.05 is five percent).
See Also:   CategoryAxis.getLowerMargin()



setMaximumCategoryLabelLines
public void setMaximumCategoryLabelLines(int lines)(Code)
Sets the maximum number of lines to use for each category label and sends an AxisChangeEvent to all registered listeners.
Parameters:
  lines - the maximum number of lines.
See Also:   CategoryAxis.getMaximumCategoryLabelLines()



setMaximumCategoryLabelWidthRatio
public void setMaximumCategoryLabelWidthRatio(float ratio)(Code)
Sets the maximum category label width ratio and sends an AxisChangeEvent to all registered listeners.
Parameters:
  ratio - the ratio.
See Also:   CategoryAxis.getMaximumCategoryLabelWidthRatio()



setTickLabelFont
public void setTickLabelFont(Comparable category, Font font)(Code)
Sets the font for the tick label for the specified category and sends an AxisChangeEvent to all registered listeners.
Parameters:
  category - the category (null not permitted).
Parameters:
  font - the font (null permitted).
See Also:   CategoryAxis.getTickLabelFont(Comparable)



setTickLabelPaint
public void setTickLabelPaint(Comparable category, Paint paint)(Code)
Sets the paint for the tick label for the specified category and sends an AxisChangeEvent to all registered listeners.
Parameters:
  category - the category (null not permitted).
Parameters:
  paint - the paint (null permitted).
See Also:   CategoryAxis.getTickLabelPaint(Comparable)



setUpperMargin
public void setUpperMargin(double margin)(Code)
Sets the upper margin for the axis and sends an AxisChangeEvent to all registered listeners.
Parameters:
  margin - the margin as a percentage of the axis length (for example, 0.05 is five percent).
See Also:   CategoryAxis.getUpperMargin()



Fields inherited from org.jfree.chart.axis.Axis
final public static Font DEFAULT_AXIS_LABEL_FONT(Code)(Java Doc)
final public static RectangleInsets DEFAULT_AXIS_LABEL_INSETS(Code)(Java Doc)
final public static Paint DEFAULT_AXIS_LABEL_PAINT(Code)(Java Doc)
final public static Paint DEFAULT_AXIS_LINE_PAINT(Code)(Java Doc)
final public static Stroke DEFAULT_AXIS_LINE_STROKE(Code)(Java Doc)
final public static boolean DEFAULT_AXIS_VISIBLE(Code)(Java Doc)
final public static boolean DEFAULT_TICK_LABELS_VISIBLE(Code)(Java Doc)
final public static Font DEFAULT_TICK_LABEL_FONT(Code)(Java Doc)
final public static RectangleInsets DEFAULT_TICK_LABEL_INSETS(Code)(Java Doc)
final public static Paint DEFAULT_TICK_LABEL_PAINT(Code)(Java Doc)
final public static boolean DEFAULT_TICK_MARKS_VISIBLE(Code)(Java Doc)
final public static float DEFAULT_TICK_MARK_INSIDE_LENGTH(Code)(Java Doc)
final public static float DEFAULT_TICK_MARK_OUTSIDE_LENGTH(Code)(Java Doc)
final public static Paint DEFAULT_TICK_MARK_PAINT(Code)(Java Doc)
final public static Stroke DEFAULT_TICK_MARK_STROKE(Code)(Java Doc)

Methods inherited from org.jfree.chart.axis.Axis
public void addChangeListener(AxisChangeListener listener)(Code)(Java Doc)
public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
abstract public void configure()(Code)(Java Doc)
abstract public AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRenderingInfo plotState)(Code)(Java Doc)
protected void drawAxisLine(Graphics2D g2, double cursor, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc)
protected AxisState drawLabel(String label, Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, AxisState state)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public Paint getAxisLinePaint()(Code)(Java Doc)
public Stroke getAxisLineStroke()(Code)(Java Doc)
public double getFixedDimension()(Code)(Java Doc)
public String getLabel()(Code)(Java Doc)
public double getLabelAngle()(Code)(Java Doc)
protected Rectangle2D getLabelEnclosure(Graphics2D g2, RectangleEdge edge)(Code)(Java Doc)
public Font getLabelFont()(Code)(Java Doc)
public RectangleInsets getLabelInsets()(Code)(Java Doc)
public Paint getLabelPaint()(Code)(Java Doc)
public Plot getPlot()(Code)(Java Doc)
public Font getTickLabelFont()(Code)(Java Doc)
public RectangleInsets getTickLabelInsets()(Code)(Java Doc)
public Paint getTickLabelPaint()(Code)(Java Doc)
public float getTickMarkInsideLength()(Code)(Java Doc)
public float getTickMarkOutsideLength()(Code)(Java Doc)
public Paint getTickMarkPaint()(Code)(Java Doc)
public Stroke getTickMarkStroke()(Code)(Java Doc)
public boolean hasListener(EventListener listener)(Code)(Java Doc)
public boolean isAxisLineVisible()(Code)(Java Doc)
public boolean isTickLabelsVisible()(Code)(Java Doc)
public boolean isTickMarksVisible()(Code)(Java Doc)
public boolean isVisible()(Code)(Java Doc)
protected void notifyListeners(AxisChangeEvent event)(Code)(Java Doc)
abstract public List refreshTicks(Graphics2D g2, AxisState state, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc)
public void removeChangeListener(AxisChangeListener listener)(Code)(Java Doc)
abstract public AxisSpace reserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, RectangleEdge edge, AxisSpace space)(Code)(Java Doc)
public void setAxisLinePaint(Paint paint)(Code)(Java Doc)
public void setAxisLineStroke(Stroke stroke)(Code)(Java Doc)
public void setAxisLineVisible(boolean visible)(Code)(Java Doc)
public void setFixedDimension(double dimension)(Code)(Java Doc)
public void setLabel(String label)(Code)(Java Doc)
public void setLabelAngle(double angle)(Code)(Java Doc)
public void setLabelFont(Font font)(Code)(Java Doc)
public void setLabelInsets(RectangleInsets insets)(Code)(Java Doc)
public void setLabelPaint(Paint paint)(Code)(Java Doc)
public void setPlot(Plot plot)(Code)(Java Doc)
public void setTickLabelFont(Font font)(Code)(Java Doc)
public void setTickLabelInsets(RectangleInsets insets)(Code)(Java Doc)
public void setTickLabelPaint(Paint paint)(Code)(Java Doc)
public void setTickLabelsVisible(boolean flag)(Code)(Java Doc)
public void setTickMarkInsideLength(float length)(Code)(Java Doc)
public void setTickMarkOutsideLength(float length)(Code)(Java Doc)
public void setTickMarkPaint(Paint paint)(Code)(Java Doc)
public void setTickMarkStroke(Stroke stroke)(Code)(Java Doc)
public void setTickMarksVisible(boolean flag)(Code)(Java Doc)
public void setVisible(boolean flag)(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.