Java Doc for ValueAxis.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.ValueAxis

All known Subclasses:   org.jfree.chart.axis.NumberAxis,  org.jfree.chart.axis.DateAxis,  org.jfree.experimental.chart.axis.LogAxis,  org.jfree.chart.axis.PeriodAxis,
ValueAxis
abstract public class ValueAxis extends Axis implements Cloneable,PublicCloneable,Serializable(Code)
The base class for axes that display value data, where values are measured using the double primitive. The two key subclasses are DateAxis and NumberAxis .


Field Summary
final public static  booleanDEFAULT_AUTO_RANGE
     The default auto-range value.
final public static  doubleDEFAULT_AUTO_RANGE_MINIMUM_SIZE
     The default minimum auto range.
final public static  booleanDEFAULT_AUTO_TICK_UNIT_SELECTION
     The default auto-tick-unit-selection value.
final public static  booleanDEFAULT_INVERTED
     The default inverted flag setting.
final public static  doubleDEFAULT_LOWER_BOUND
     The default lower bound for the axis.
final public static  doubleDEFAULT_LOWER_MARGIN
     The default value for the lower margin (0.05 = 5%).
final public static  RangeDEFAULT_RANGE
     The default axis range.
final public static  doubleDEFAULT_UPPER_BOUND
     The default upper bound for the axis.
final public static  doubleDEFAULT_UPPER_MARGIN
     The default value for the upper margin (0.05 = 5%).
final public static  intMAXIMUM_TICK_COUNT
     The maximum tick count.

Constructor Summary
protected  ValueAxis(String label, TickUnitSource standardTickUnits)
     Constructs a value axis.

Method Summary
abstract protected  voidautoAdjustRange()
     Automatically sets the axis range to fit the range of values in the dataset.
protected  float[]calculateAnchorPoint(ValueTick tick, double cursor, Rectangle2D dataArea, RectangleEdge edge)
     Calculates the anchor point for a tick label.
Parameters:
  tick - the tick.
Parameters:
  cursor - the cursor.
Parameters:
  dataArea - the data area.
Parameters:
  edge - the edge on which the axis is drawn.
public  voidcenterRange(double value)
     Centers the axis range about the specified value and sends an AxisChangeEvent to all registered listeners.
public  Objectclone()
     Returns a clone of the object.
protected  voiddrawAxisLine(Graphics2D g2, double cursor, Rectangle2D dataArea, RectangleEdge edge)
     Draws an axis line at the current cursor position and edge.
protected  AxisStatedrawTickMarksAndLabels(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge)
     Draws the axis line, tick marks and tick mark labels.
Parameters:
  g2 - the graphics device.
Parameters:
  cursor - the cursor.
Parameters:
  plotArea - the plot area.
Parameters:
  dataArea - the data area.
Parameters:
  edge - the edge that the axis is aligned with.
public  booleanequals(Object obj)
     Tests the axis for equality with an arbitrary object.
Parameters:
  obj - the object (null permitted).
protected  doublefindMaximumTickLabelHeight(List ticks, Graphics2D g2, Rectangle2D drawArea, boolean vertical)
     A utility method for determining the height of the tallest tick label.
Parameters:
  ticks - the ticks.
Parameters:
  g2 - the graphics device.
Parameters:
  drawArea - the area within which the plot and axes should be drawn.
Parameters:
  vertical - a flag that indicates whether or not the tick labels are 'vertical'.
protected  doublefindMaximumTickLabelWidth(List ticks, Graphics2D g2, Rectangle2D drawArea, boolean vertical)
     A utility method for determining the width of the widest tick label.
Parameters:
  ticks - the ticks.
Parameters:
  g2 - the graphics device.
Parameters:
  drawArea - the area within which the plot and axes should be drawn.
Parameters:
  vertical - a flag that indicates whether or not the tick labels are 'vertical'.
public  doublegetAutoRangeMinimumSize()
     Returns the minimum size allowed for the axis range when it is automatically calculated.
protected  intgetAutoTickIndex()
     Returns the auto tick index.
public  RangegetDefaultAutoRange()
     Returns the default auto range.
public  ShapegetDownArrow()
     Returns a shape that can be displayed as an arrow pointing downwards at the end of an axis line.
public  doublegetFixedAutoRange()
     Returns the fixed auto range.
public  ShapegetLeftArrow()
     Returns a shape that can be displayed as an arrow pointing left at the end of an axis line.
public  doublegetLowerBound()
     Returns the lower bound of the axis range.
public  doublegetLowerMargin()
     Returns the lower margin for the axis, expressed as a percentage of the axis range.
public  RangegetRange()
     Returns the range for the axis.
public  ShapegetRightArrow()
     Returns a shape that can be displayed as an arrow pointing right at the end of an axis line.
public  TickUnitSourcegetStandardTickUnits()
     Returns the source for obtaining standard tick units for the axis.
public  ShapegetUpArrow()
     Returns a shape that can be displayed as an arrow pointing upwards at the end of an axis line.
public  doublegetUpperBound()
     Returns the upper bound for the axis range.
public  doublegetUpperMargin()
     Returns the upper margin for the axis, expressed as a percentage of the axis range.
public  booleanisAutoRange()
     Returns the flag that controls whether or not the axis range is automatically adjusted to fit the data values.
public  booleanisAutoTickUnitSelection()
     Returns a flag indicating whether or not the tick unit is automatically selected from a range of standard tick units.
public  booleanisInverted()
     Returns a flag that controls the direction of values on the axis.

For a regular axis, values increase from left to right (for a horizontal axis) and bottom to top (for a vertical axis).

public  booleanisNegativeArrowVisible()
     Returns a flag that controls whether or not the axis line has an arrow drawn that points in the negative direction for the axis.
public  booleanisPositiveArrowVisible()
     Returns a flag that controls whether or not the axis line has an arrow drawn that points in the positive direction for the axis.
public  booleanisVerticalTickLabels()
     Returns true if the tick labels should be rotated (to vertical), and false otherwise.
abstract public  doublejava2DToValue(double java2DValue, Rectangle2D area, RectangleEdge edge)
     Converts a coordinate in Java2D space to the corresponding data value, assuming that the axis runs along one edge of the specified dataArea.
Parameters:
  java2DValue - the coordinate in Java2D space.
Parameters:
  area - the area in which the data is plotted.
Parameters:
  edge - the edge along which the axis lies.
public  doublelengthToJava2D(double length, Rectangle2D area, RectangleEdge edge)
     Converts a length in data coordinates into the corresponding length in Java2D coordinates.
Parameters:
  length - the length.
Parameters:
  area - the plot area.
Parameters:
  edge - the edge along which the axis lies.
public  AxisSpacereserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, RectangleEdge edge, AxisSpace space)
     Returns the space required to draw the axis.
Parameters:
  g2 - the graphics device.
Parameters:
  plot - the plot that the axis belongs to.
Parameters:
  plotArea - the area within which the plot should be drawn.
Parameters:
  edge - the axis location.
Parameters:
  space - the space already reserved (for other axes).
public  voidresizeRange(double percent)
     Increases or decreases the axis range by the specified percentage about the central value and sends an AxisChangeEvent to all registered listeners.
public  voidresizeRange(double percent, double anchorValue)
     Increases or decreases the axis range by the specified percentage about the specified anchor value and sends an AxisChangeEvent to all registered listeners.
public  voidsetAutoRange(boolean auto)
     Sets a flag that determines whether or not the axis range is automatically adjusted to fit the data, and notifies registered listeners that the axis has been modified.
protected  voidsetAutoRange(boolean auto, boolean notify)
     Sets the auto range attribute.
public  voidsetAutoRangeMinimumSize(double size)
     Sets the auto range minimum size and sends an AxisChangeEvent to all registered listeners.
public  voidsetAutoRangeMinimumSize(double size, boolean notify)
     Sets the minimum size allowed for the axis range when it is automatically calculated.
protected  voidsetAutoTickIndex(int index)
     Sets the auto tick index.
public  voidsetAutoTickUnitSelection(boolean flag)
     Sets a flag indicating whether or not the tick unit is automatically selected from a range of standard tick units.
public  voidsetAutoTickUnitSelection(boolean flag, boolean notify)
     Sets a flag indicating whether or not the tick unit is automatically selected from a range of standard tick units.
public  voidsetDefaultAutoRange(Range range)
     Sets the default auto range and sends an AxisChangeEvent to all registered listeners.
public  voidsetDownArrow(Shape arrow)
     Sets the shape that can be displayed as an arrow pointing downwards at the end of an axis line and sends an AxisChangeEvent to all registered listeners.
public  voidsetFixedAutoRange(double length)
     Sets the fixed auto range for the axis.
public  voidsetInverted(boolean flag)
     Sets a flag that controls the direction of values on the axis, and notifies registered listeners that the axis has changed.
public  voidsetLeftArrow(Shape arrow)
     Sets the shape that can be displayed as an arrow pointing left at the end of an axis line and sends an AxisChangeEvent to all registered listeners.
public  voidsetLowerBound(double min)
     Sets the lower bound for the axis range.
public  voidsetLowerMargin(double margin)
     Sets the lower margin for the axis (as a percentage of the axis range) and sends an AxisChangeEvent to all registered listeners.
public  voidsetNegativeArrowVisible(boolean visible)
     Sets a flag that controls whether or not the axis lines has an arrow drawn that points in the negative direction for the axis, and sends an AxisChangeEvent to all registered listeners.
public  voidsetPositiveArrowVisible(boolean visible)
     Sets a flag that controls whether or not the axis lines has an arrow drawn that points in the positive direction for the axis, and sends an AxisChangeEvent to all registered listeners.
public  voidsetRange(Range range)
     Sets the range attribute and sends an AxisChangeEvent to all registered listeners.
public  voidsetRange(Range range, boolean turnOffAutoRange, boolean notify)
     Sets the range for the axis, if requested, sends an AxisChangeEvent to all registered listeners.
public  voidsetRange(double lower, double upper)
     Sets the axis range and sends an AxisChangeEvent to all registered listeners.
public  voidsetRangeAboutValue(double value, double length)
     Sets the axis range, where the new range is 'size' in length, and centered on 'value'.
public  voidsetRangeWithMargins(Range range)
     Sets the range for the axis (after first adding the current margins to the specified range) and sends an AxisChangeEvent to all registered listeners.
public  voidsetRangeWithMargins(Range range, boolean turnOffAutoRange, boolean notify)
     Sets the range for the axis after first adding the current margins to the range and, if requested, sends an AxisChangeEvent to all registered listeners.
public  voidsetRangeWithMargins(double lower, double upper)
     Sets the axis range (after first adding the current margins to the range) and sends an AxisChangeEvent to all registered listeners.
public  voidsetRightArrow(Shape arrow)
     Sets the shape that can be displayed as an arrow pointing rightwards at the end of an axis line and sends an AxisChangeEvent to all registered listeners.
public  voidsetStandardTickUnits(TickUnitSource source)
     Sets the source for obtaining standard tick units for the axis and sends an AxisChangeEvent to all registered listeners.
public  voidsetUpArrow(Shape arrow)
     Sets the shape that can be displayed as an arrow pointing upwards at the end of an axis line and sends an AxisChangeEvent to all registered listeners.
public  voidsetUpperBound(double max)
     Sets the upper bound for the axis range, and sends an AxisChangeEvent to all registered listeners.
public  voidsetUpperMargin(double margin)
     Sets the upper margin for the axis (as a percentage of the axis range) and sends an AxisChangeEvent to all registered listeners.
public  voidsetVerticalTickLabels(boolean flag)
     Sets the flag that controls whether the tick labels are displayed vertically (that is, rotated 90 degrees from horizontal).
abstract public  doublevalueToJava2D(double value, Rectangle2D area, RectangleEdge edge)
     Converts a data value to a coordinate in Java2D space, assuming that the axis runs along one edge of the specified dataArea.

Note that it is possible for the coordinate to fall outside the area.
Parameters:
  value - the data value.
Parameters:
  area - the area for plotting the data.
Parameters:
  edge - the edge along which the axis lies.

public  voidzoomRange(double lowerPercent, double upperPercent)
     Zooms in on the current range.

Field Detail
DEFAULT_AUTO_RANGE
final public static boolean DEFAULT_AUTO_RANGE(Code)
The default auto-range value.



DEFAULT_AUTO_RANGE_MINIMUM_SIZE
final public static double DEFAULT_AUTO_RANGE_MINIMUM_SIZE(Code)
The default minimum auto range.



DEFAULT_AUTO_TICK_UNIT_SELECTION
final public static boolean DEFAULT_AUTO_TICK_UNIT_SELECTION(Code)
The default auto-tick-unit-selection value.



DEFAULT_INVERTED
final public static boolean DEFAULT_INVERTED(Code)
The default inverted flag setting.



DEFAULT_LOWER_BOUND
final public static double DEFAULT_LOWER_BOUND(Code)
The default lower bound for the axis. ValueAxis.getDefaultAutoRange()



DEFAULT_LOWER_MARGIN
final public static double DEFAULT_LOWER_MARGIN(Code)
The default value for the lower margin (0.05 = 5%).



DEFAULT_RANGE
final public static Range DEFAULT_RANGE(Code)
The default axis range.



DEFAULT_UPPER_BOUND
final public static double DEFAULT_UPPER_BOUND(Code)
The default upper bound for the axis. ValueAxis.getDefaultAutoRange()



DEFAULT_UPPER_MARGIN
final public static double DEFAULT_UPPER_MARGIN(Code)
The default value for the upper margin (0.05 = 5%).



MAXIMUM_TICK_COUNT
final public static int MAXIMUM_TICK_COUNT(Code)
The maximum tick count.




Constructor Detail
ValueAxis
protected ValueAxis(String label, TickUnitSource standardTickUnits)(Code)
Constructs a value axis.
Parameters:
  label - the axis label (null permitted).
Parameters:
  standardTickUnits - the source for standard tick units (null permitted).




Method Detail
autoAdjustRange
abstract protected void autoAdjustRange()(Code)
Automatically sets the axis range to fit the range of values in the dataset. Sometimes this can depend on the renderer used as well (for example, the renderer may "stack" values, requiring an axis range greater than otherwise necessary).



calculateAnchorPoint
protected float[] calculateAnchorPoint(ValueTick tick, double cursor, Rectangle2D dataArea, RectangleEdge edge)(Code)
Calculates the anchor point for a tick label.
Parameters:
  tick - the tick.
Parameters:
  cursor - the cursor.
Parameters:
  dataArea - the data area.
Parameters:
  edge - the edge on which the axis is drawn. The x and y coordinates of the anchor point.



centerRange
public void centerRange(double value)(Code)
Centers the axis range about the specified value and sends an AxisChangeEvent to all registered listeners.
Parameters:
  value - the center value.



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



drawAxisLine
protected void drawAxisLine(Graphics2D g2, double cursor, Rectangle2D dataArea, RectangleEdge edge)(Code)
Draws an axis line at the current cursor position and edge.
Parameters:
  g2 - the graphics device.
Parameters:
  cursor - the cursor position.
Parameters:
  dataArea - the data area.
Parameters:
  edge - the edge.



drawTickMarksAndLabels
protected AxisState drawTickMarksAndLabels(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge)(Code)
Draws the axis line, tick marks and tick mark labels.
Parameters:
  g2 - the graphics device.
Parameters:
  cursor - the cursor.
Parameters:
  plotArea - the plot area.
Parameters:
  dataArea - the data area.
Parameters:
  edge - the edge that the axis is aligned with. The width or height used to draw the axis.



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



findMaximumTickLabelHeight
protected double findMaximumTickLabelHeight(List ticks, Graphics2D g2, Rectangle2D drawArea, boolean vertical)(Code)
A utility method for determining the height of the tallest tick label.
Parameters:
  ticks - the ticks.
Parameters:
  g2 - the graphics device.
Parameters:
  drawArea - the area within which the plot and axes should be drawn.
Parameters:
  vertical - a flag that indicates whether or not the tick labels are 'vertical'. The height of the tallest tick label.



findMaximumTickLabelWidth
protected double findMaximumTickLabelWidth(List ticks, Graphics2D g2, Rectangle2D drawArea, boolean vertical)(Code)
A utility method for determining the width of the widest tick label.
Parameters:
  ticks - the ticks.
Parameters:
  g2 - the graphics device.
Parameters:
  drawArea - the area within which the plot and axes should be drawn.
Parameters:
  vertical - a flag that indicates whether or not the tick labels are 'vertical'. The width of the tallest tick label.



getAutoRangeMinimumSize
public double getAutoRangeMinimumSize()(Code)
Returns the minimum size allowed for the axis range when it is automatically calculated. The minimum range.
See Also:   ValueAxis.setAutoRangeMinimumSize(double)



getAutoTickIndex
protected int getAutoTickIndex()(Code)
Returns the auto tick index. The auto tick index.
See Also:   ValueAxis.setAutoTickIndex(int)



getDefaultAutoRange
public Range getDefaultAutoRange()(Code)
Returns the default auto range. The default auto range (never null).
See Also:   ValueAxis.setDefaultAutoRange(Range)
since:
   1.0.5



getDownArrow
public Shape getDownArrow()(Code)
Returns a shape that can be displayed as an arrow pointing downwards at the end of an axis line. A shape (never null).
See Also:   ValueAxis.setDownArrow(Shape)



getFixedAutoRange
public double getFixedAutoRange()(Code)
Returns the fixed auto range. The length.
See Also:   ValueAxis.setFixedAutoRange(double)



getLeftArrow
public Shape getLeftArrow()(Code)
Returns a shape that can be displayed as an arrow pointing left at the end of an axis line. A shape (never null).
See Also:   ValueAxis.setLeftArrow(Shape)



getLowerBound
public double getLowerBound()(Code)
Returns the lower bound of the axis range. The lower bound.
See Also:   ValueAxis.setLowerBound(double)



getLowerMargin
public double getLowerMargin()(Code)
Returns the lower margin for the axis, expressed as a percentage of the axis range. This controls the space added to the lower end of the axis when the axis range is automatically calculated (it is ignored when the axis range is set explicitly). The default value is 0.05 (five percent). The lower margin.
See Also:   ValueAxis.setLowerMargin(double)



getRange
public Range getRange()(Code)
Returns the range for the axis. The axis range (never null).
See Also:   ValueAxis.setRange(Range)



getRightArrow
public Shape getRightArrow()(Code)
Returns a shape that can be displayed as an arrow pointing right at the end of an axis line. A shape (never null).
See Also:   ValueAxis.setRightArrow(Shape)



getStandardTickUnits
public TickUnitSource getStandardTickUnits()(Code)
Returns the source for obtaining standard tick units for the axis. The source (possibly null).
See Also:   ValueAxis.setStandardTickUnits(TickUnitSource)



getUpArrow
public Shape getUpArrow()(Code)
Returns a shape that can be displayed as an arrow pointing upwards at the end of an axis line. A shape (never null).
See Also:   ValueAxis.setUpArrow(Shape)



getUpperBound
public double getUpperBound()(Code)
Returns the upper bound for the axis range. The upper bound.
See Also:   ValueAxis.setUpperBound(double)



getUpperMargin
public double getUpperMargin()(Code)
Returns the upper margin for the axis, expressed as a percentage of the axis range. This controls the space added to the lower end of the axis when the axis range is automatically calculated (it is ignored when the axis range is set explicitly). The default value is 0.05 (five percent). The upper margin.
See Also:   ValueAxis.setUpperMargin(double)



isAutoRange
public boolean isAutoRange()(Code)
Returns the flag that controls whether or not the axis range is automatically adjusted to fit the data values. The flag.
See Also:   ValueAxis.setAutoRange(boolean)



isAutoTickUnitSelection
public boolean isAutoTickUnitSelection()(Code)
Returns a flag indicating whether or not the tick unit is automatically selected from a range of standard tick units. A flag indicating whether or not the tick unit is automaticallyselected.
See Also:   ValueAxis.setAutoTickUnitSelection(boolean)



isInverted
public boolean isInverted()(Code)
Returns a flag that controls the direction of values on the axis.

For a regular axis, values increase from left to right (for a horizontal axis) and bottom to top (for a vertical axis). When the axis is 'inverted', the values increase in the opposite direction. The flag.
See Also:   ValueAxis.setInverted(boolean)




isNegativeArrowVisible
public boolean isNegativeArrowVisible()(Code)
Returns a flag that controls whether or not the axis line has an arrow drawn that points in the negative direction for the axis. A boolean.
See Also:   ValueAxis.setNegativeArrowVisible(boolean)



isPositiveArrowVisible
public boolean isPositiveArrowVisible()(Code)
Returns a flag that controls whether or not the axis line has an arrow drawn that points in the positive direction for the axis. A boolean.
See Also:   ValueAxis.setPositiveArrowVisible(boolean)



isVerticalTickLabels
public boolean isVerticalTickLabels()(Code)
Returns true if the tick labels should be rotated (to vertical), and false otherwise. true or false.
See Also:   ValueAxis.setVerticalTickLabels(boolean)



java2DToValue
abstract public double java2DToValue(double java2DValue, Rectangle2D area, RectangleEdge edge)(Code)
Converts a coordinate in Java2D space to the corresponding data value, assuming that the axis runs along one edge of the specified dataArea.
Parameters:
  java2DValue - the coordinate in Java2D space.
Parameters:
  area - the area in which the data is plotted.
Parameters:
  edge - the edge along which the axis lies. The data value.
See Also:   ValueAxis.valueToJava2D(double,Rectangle2D,RectangleEdge)



lengthToJava2D
public double lengthToJava2D(double length, Rectangle2D area, RectangleEdge edge)(Code)
Converts a length in data coordinates into the corresponding length in Java2D coordinates.
Parameters:
  length - the length.
Parameters:
  area - the plot area.
Parameters:
  edge - the edge along which the axis lies. The length in Java2D coordinates.



reserveSpace
public AxisSpace reserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, RectangleEdge edge, AxisSpace space)(Code)
Returns the space required to draw the axis.
Parameters:
  g2 - the graphics device.
Parameters:
  plot - the plot that the axis belongs to.
Parameters:
  plotArea - the area within which the plot should be drawn.
Parameters:
  edge - the axis location.
Parameters:
  space - the space already reserved (for other axes). The space required to draw the axis (including pre-reserved space).



resizeRange
public void resizeRange(double percent)(Code)
Increases or decreases the axis range by the specified percentage about the central value and sends an AxisChangeEvent to all registered listeners.

To double the length of the axis range, use 200% (2.0). To halve the length of the axis range, use 50% (0.5).
Parameters:
  percent - the resize factor.




resizeRange
public void resizeRange(double percent, double anchorValue)(Code)
Increases or decreases the axis range by the specified percentage about the specified anchor value and sends an AxisChangeEvent to all registered listeners.

To double the length of the axis range, use 200% (2.0). To halve the length of the axis range, use 50% (0.5).
Parameters:
  percent - the resize factor.
Parameters:
  anchorValue - the new central value after the resize.




setAutoRange
public void setAutoRange(boolean auto)(Code)
Sets a flag that determines whether or not the axis range is automatically adjusted to fit the data, and notifies registered listeners that the axis has been modified.
Parameters:
  auto - the new value of the flag.
See Also:   ValueAxis.isAutoRange()



setAutoRange
protected void setAutoRange(boolean auto, boolean notify)(Code)
Sets the auto range attribute. If the notify flag is set, an AxisChangeEvent is sent to registered listeners.
Parameters:
  auto - the flag.
Parameters:
  notify - notify listeners?
See Also:   ValueAxis.isAutoRange()



setAutoRangeMinimumSize
public void setAutoRangeMinimumSize(double size)(Code)
Sets the auto range minimum size and sends an AxisChangeEvent to all registered listeners.
Parameters:
  size - the size.
See Also:   ValueAxis.getAutoRangeMinimumSize()



setAutoRangeMinimumSize
public void setAutoRangeMinimumSize(double size, boolean notify)(Code)
Sets the minimum size allowed for the axis range when it is automatically calculated.

If requested, an AxisChangeEvent is forwarded to all registered listeners.
Parameters:
  size - the new minimum.
Parameters:
  notify - notify listeners?




setAutoTickIndex
protected void setAutoTickIndex(int index)(Code)
Sets the auto tick index.
Parameters:
  index - the new value.
See Also:   ValueAxis.getAutoTickIndex()



setAutoTickUnitSelection
public void setAutoTickUnitSelection(boolean flag)(Code)
Sets a flag indicating whether or not the tick unit is automatically selected from a range of standard tick units. If the flag is changed, registered listeners are notified that the chart has changed.
Parameters:
  flag - the new value of the flag.
See Also:   ValueAxis.isAutoTickUnitSelection()



setAutoTickUnitSelection
public void setAutoTickUnitSelection(boolean flag, boolean notify)(Code)
Sets a flag indicating whether or not the tick unit is automatically selected from a range of standard tick units.
Parameters:
  flag - the new value of the flag.
Parameters:
  notify - notify listeners?
See Also:   ValueAxis.isAutoTickUnitSelection()



setDefaultAutoRange
public void setDefaultAutoRange(Range range)(Code)
Sets the default auto range and sends an AxisChangeEvent to all registered listeners.
Parameters:
  range - the range (null not permitted).
See Also:   ValueAxis.getDefaultAutoRange()
since:
   1.0.5



setDownArrow
public void setDownArrow(Shape arrow)(Code)
Sets the shape that can be displayed as an arrow pointing downwards at the end of an axis line and sends an AxisChangeEvent to all registered listeners.
Parameters:
  arrow - the arrow shape (null not permitted).
See Also:   ValueAxis.getDownArrow()



setFixedAutoRange
public void setFixedAutoRange(double length)(Code)
Sets the fixed auto range for the axis.
Parameters:
  length - the range length.
See Also:   ValueAxis.getFixedAutoRange()



setInverted
public void setInverted(boolean flag)(Code)
Sets a flag that controls the direction of values on the axis, and notifies registered listeners that the axis has changed.
Parameters:
  flag - the flag.
See Also:   ValueAxis.isInverted()



setLeftArrow
public void setLeftArrow(Shape arrow)(Code)
Sets the shape that can be displayed as an arrow pointing left at the end of an axis line and sends an AxisChangeEvent to all registered listeners.
Parameters:
  arrow - the arrow shape (null not permitted).
See Also:   ValueAxis.getLeftArrow()



setLowerBound
public void setLowerBound(double min)(Code)
Sets the lower bound for the axis range. An AxisChangeEvent is sent to all registered listeners.
Parameters:
  min - the new minimum.
See Also:   ValueAxis.getLowerBound()



setLowerMargin
public void setLowerMargin(double margin)(Code)
Sets the lower margin for the axis (as a percentage of the axis range) and sends an AxisChangeEvent to all registered listeners. This margin is added only when the axis range is auto-calculated - if you set the axis range manually, the margin is ignored.
Parameters:
  margin - the margin percentage (for example, 0.05 is five percent).
See Also:   ValueAxis.getLowerMargin()
See Also:   ValueAxis.setUpperMargin(double)



setNegativeArrowVisible
public void setNegativeArrowVisible(boolean visible)(Code)
Sets a flag that controls whether or not the axis lines has an arrow drawn that points in the negative direction for the axis, and sends an AxisChangeEvent to all registered listeners.
Parameters:
  visible - the flag.
See Also:   ValueAxis.setNegativeArrowVisible(boolean)



setPositiveArrowVisible
public void setPositiveArrowVisible(boolean visible)(Code)
Sets a flag that controls whether or not the axis lines has an arrow drawn that points in the positive direction for the axis, and sends an AxisChangeEvent to all registered listeners.
Parameters:
  visible - the flag.
See Also:   ValueAxis.isPositiveArrowVisible()



setRange
public void setRange(Range range)(Code)
Sets the range attribute and sends an AxisChangeEvent to all registered listeners. As a side-effect, the auto-range flag is set to false.
Parameters:
  range - the range (null not permitted).
See Also:   ValueAxis.getRange()



setRange
public void setRange(Range range, boolean turnOffAutoRange, boolean notify)(Code)
Sets the range for the axis, if requested, sends an AxisChangeEvent to all registered listeners. As a side-effect, the auto-range flag is set to false (optional).
Parameters:
  range - the range (null not permitted).
Parameters:
  turnOffAutoRange - a flag that controls whether or not the auto range is turned off.
Parameters:
  notify - a flag that controls whether or not listeners are notified.
See Also:   ValueAxis.getRange()



setRange
public void setRange(double lower, double upper)(Code)
Sets the axis range and sends an AxisChangeEvent to all registered listeners. As a side-effect, the auto-range flag is set to false.
Parameters:
  lower - the lower axis limit.
Parameters:
  upper - the upper axis limit.
See Also:   ValueAxis.getRange()
See Also:   ValueAxis.setRange(Range)



setRangeAboutValue
public void setRangeAboutValue(double value, double length)(Code)
Sets the axis range, where the new range is 'size' in length, and centered on 'value'.
Parameters:
  value - the central value.
Parameters:
  length - the range length.



setRangeWithMargins
public void setRangeWithMargins(Range range)(Code)
Sets the range for the axis (after first adding the current margins to the specified range) and sends an AxisChangeEvent to all registered listeners.
Parameters:
  range - the range (null not permitted).



setRangeWithMargins
public void setRangeWithMargins(Range range, boolean turnOffAutoRange, boolean notify)(Code)
Sets the range for the axis after first adding the current margins to the range and, if requested, sends an AxisChangeEvent to all registered listeners. As a side-effect, the auto-range flag is set to false (optional).
Parameters:
  range - the range (excluding margins, null not permitted).
Parameters:
  turnOffAutoRange - a flag that controls whether or not the auto range is turned off.
Parameters:
  notify - a flag that controls whether or not listeners are notified.



setRangeWithMargins
public void setRangeWithMargins(double lower, double upper)(Code)
Sets the axis range (after first adding the current margins to the range) and sends an AxisChangeEvent to all registered listeners. As a side-effect, the auto-range flag is set to false.
Parameters:
  lower - the lower axis limit.
Parameters:
  upper - the upper axis limit.



setRightArrow
public void setRightArrow(Shape arrow)(Code)
Sets the shape that can be displayed as an arrow pointing rightwards at the end of an axis line and sends an AxisChangeEvent to all registered listeners.
Parameters:
  arrow - the arrow shape (null not permitted).
See Also:   ValueAxis.getRightArrow()



setStandardTickUnits
public void setStandardTickUnits(TickUnitSource source)(Code)
Sets the source for obtaining standard tick units for the axis and sends an AxisChangeEvent to all registered listeners. The axis will try to select the smallest tick unit from the source that does not cause the tick labels to overlap (see also the ValueAxis.setAutoTickUnitSelection(boolean) method.
Parameters:
  source - the source for standard tick units (null permitted).
See Also:   ValueAxis.getStandardTickUnits()



setUpArrow
public void setUpArrow(Shape arrow)(Code)
Sets the shape that can be displayed as an arrow pointing upwards at the end of an axis line and sends an AxisChangeEvent to all registered listeners.
Parameters:
  arrow - the arrow shape (null not permitted).
See Also:   ValueAxis.getUpArrow()



setUpperBound
public void setUpperBound(double max)(Code)
Sets the upper bound for the axis range, and sends an AxisChangeEvent to all registered listeners.
Parameters:
  max - the new maximum.
See Also:   ValueAxis.getUpperBound()



setUpperMargin
public void setUpperMargin(double margin)(Code)
Sets the upper margin for the axis (as a percentage of the axis range) and sends an AxisChangeEvent to all registered listeners. This margin is added only when the axis range is auto-calculated - if you set the axis range manually, the margin is ignored.
Parameters:
  margin - the margin percentage (for example, 0.05 is five percent).
See Also:   ValueAxis.getLowerMargin()
See Also:   ValueAxis.setLowerMargin(double)



setVerticalTickLabels
public void setVerticalTickLabels(boolean flag)(Code)
Sets the flag that controls whether the tick labels are displayed vertically (that is, rotated 90 degrees from horizontal). If the flag is changed, an AxisChangeEvent is sent to all registered listeners.
Parameters:
  flag - the flag.
See Also:   ValueAxis.isVerticalTickLabels()



valueToJava2D
abstract public double valueToJava2D(double value, Rectangle2D area, RectangleEdge edge)(Code)
Converts a data value to a coordinate in Java2D space, assuming that the axis runs along one edge of the specified dataArea.

Note that it is possible for the coordinate to fall outside the area.
Parameters:
  value - the data value.
Parameters:
  area - the area for plotting the data.
Parameters:
  edge - the edge along which the axis lies. The Java2D coordinate.
See Also:   ValueAxis.java2DToValue(double,Rectangle2D,RectangleEdge)




zoomRange
public void zoomRange(double lowerPercent, double upperPercent)(Code)
Zooms in on the current range.
Parameters:
  lowerPercent - the new lower bound.
Parameters:
  upperPercent - the new upper bound.



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.