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


org.jfree.chart.axis.ValueAxis
   org.jfree.experimental.chart.axis.LogAxis

LogAxis
public class LogAxis extends ValueAxis (Code)
A numerical axis that uses a logarithmic scale. The plan is for this class to replace the LogarithmicAxis class. WARNING: THIS CLASS IS NOT PART OF THE STANDARD JFREECHART API AND IS SUBJECT TO ALTERATION OR REMOVAL. DO NOT RELY ON THIS CLASS FOR PRODUCTION USE. Please experiment with this code and provide feedback.



Constructor Summary
public  LogAxis()
     Creates a new LogAxis with no label.
public  LogAxis(String label)
     Creates a new LogAxis with the given label.

Method Summary
protected  voidautoAdjustRange()
     Adjusts the axis range to match the data range that the axis is required to display.
public  doublecalculateLog(double value)
     Calculates the log of the given value, using the current base.
Parameters:
  value - the value.
public  doublecalculateValue(double log)
     Calculates the value from a given log.
Parameters:
  log - the log value (must be > 0.0).
public  voidconfigure()
     Configures the axis.
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 (determines where to draw the axis).
Parameters:
  plotArea - the area within which the axes and plot should be drawn.
Parameters:
  dataArea - the area within which the data should be drawn.
Parameters:
  edge - the axis location (null not permitted).
Parameters:
  plotState - collects information about the plot (null permitted).
public  doublegetBase()
     Returns the base for the logarithm calculation.
public  intgetMinorTickCount()
     Returns the number of minor tick marks to display.
public  NumberFormatgetNumberFormatOverride()
     Returns the number format override.
public  doublegetSmallestValue()
     Returns the smallest value represented by the axis.
public  NumberTickUnitgetTickUnit()
     Returns the current tick unit.
public  doublejava2DToValue(double java2DValue, Rectangle2D area, RectangleEdge edge)
     Converts a Java2D coordinate to an axis value, assuming that the axis covers the specified edge of the area.
Parameters:
  java2DValue - the Java2D coordinate.
Parameters:
  area - the area.
Parameters:
  edge - the edge that the axis belongs to.
public  ListrefreshTicks(Graphics2D g2, AxisState state, Rectangle2D dataArea, RectangleEdge edge)
     Calculates the positions of the tick labels for the axis, storing the results in the tick label list (ready for drawing).
Parameters:
  g2 - the graphics device.
Parameters:
  state - the axis state.
Parameters:
  dataArea - the area in which the plot should be drawn.
Parameters:
  edge - the location of the axis.
protected  ListrefreshTicksHorizontal(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge)
     Returns a list of ticks for an axis at the top or bottom of the chart.
Parameters:
  g2 - the graphics device.
Parameters:
  dataArea - the data area.
Parameters:
  edge - the edge.
protected  ListrefreshTicksVertical(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge)
     Returns a list of ticks for an axis at the left or right of the chart.
Parameters:
  g2 - the graphics device.
Parameters:
  dataArea - the data area.
Parameters:
  edge - the edge.
public  voidsetBase(double base)
     Sets the base for the logarithm calculation and sends an AxisChangeEvent to all registered listeners.
public  voidsetMinorTickCount(int count)
     Sets the number of minor tick marks to display.
public  voidsetNumberFormatOverride(NumberFormat formatter)
     Sets the number format override.
public  voidsetSmallestValue(double value)
     Sets the smallest value represented by the axis.
public  voidsetTickUnit(NumberTickUnit unit)
     Sets the tick unit for the axis and sends an AxisChangeEvent to all registered listeners.
public  voidsetTickUnit(NumberTickUnit unit, boolean notify, boolean turnOffAutoSelect)
     Sets the tick unit for the axis and, if requested, sends an AxisChangeEvent to all registered listeners.
public  doublevalueToJava2D(double value, Rectangle2D area, RectangleEdge edge)
     Converts a value on the axis scale to a Java2D coordinate relative to the given area, based on the axis running along the specified edge.
Parameters:
  value - the data value.
Parameters:
  area - the area.
Parameters:
  edge - the edge.


Constructor Detail
LogAxis
public LogAxis()(Code)
Creates a new LogAxis with no label.



LogAxis
public LogAxis(String label)(Code)
Creates a new LogAxis with the given label.
Parameters:
  label - the axis label (null permitted).




Method Detail
autoAdjustRange
protected void autoAdjustRange()(Code)
Adjusts the axis range to match the data range that the axis is required to display.



calculateLog
public double calculateLog(double value)(Code)
Calculates the log of the given value, using the current base.
Parameters:
  value - the value. The log of the given value.
See Also:   LogAxis.getBase()



calculateValue
public double calculateValue(double log)(Code)
Calculates the value from a given log.
Parameters:
  log - the log value (must be > 0.0). The value with the given log.



configure
public void configure()(Code)
Configures the axis. This method is typically called when an axis is assigned to a new plot.



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 (determines where to draw the axis).
Parameters:
  plotArea - the area within which the axes and plot should be drawn.
Parameters:
  dataArea - the area within which the data should be drawn.
Parameters:
  edge - the axis location (null not permitted).
Parameters:
  plotState - collects information about the plot (null permitted). The axis state (never null).



getBase
public double getBase()(Code)
Returns the base for the logarithm calculation. The base for the logarithm calculation.



getMinorTickCount
public int getMinorTickCount()(Code)
Returns the number of minor tick marks to display. The number of minor tick marks to display.



getNumberFormatOverride
public NumberFormat getNumberFormatOverride()(Code)
Returns the number format override. If this is non-null, then it will be used to format the numbers on the axis. The number formatter (possibly null).



getSmallestValue
public double getSmallestValue()(Code)
Returns the smallest value represented by the axis. The smallest value represented by the axis.



getTickUnit
public NumberTickUnit getTickUnit()(Code)
Returns the current tick unit. The current tick unit.



java2DToValue
public double java2DToValue(double java2DValue, Rectangle2D area, RectangleEdge edge)(Code)
Converts a Java2D coordinate to an axis value, assuming that the axis covers the specified edge of the area.
Parameters:
  java2DValue - the Java2D coordinate.
Parameters:
  area - the area.
Parameters:
  edge - the edge that the axis belongs to. A value along the axis scale.



refreshTicks
public List refreshTicks(Graphics2D g2, AxisState state, Rectangle2D dataArea, RectangleEdge edge)(Code)
Calculates the positions of the tick labels for the axis, storing the results in the tick label list (ready for drawing).
Parameters:
  g2 - the graphics device.
Parameters:
  state - the axis state.
Parameters:
  dataArea - the area in which the plot should be drawn.
Parameters:
  edge - the location of the axis. A list of ticks.



refreshTicksHorizontal
protected List refreshTicksHorizontal(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge)(Code)
Returns a list of ticks for an axis at the top or bottom of the chart.
Parameters:
  g2 - the graphics device.
Parameters:
  dataArea - the data area.
Parameters:
  edge - the edge. A list of ticks.



refreshTicksVertical
protected List refreshTicksVertical(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge)(Code)
Returns a list of ticks for an axis at the left or right of the chart.
Parameters:
  g2 - the graphics device.
Parameters:
  dataArea - the data area.
Parameters:
  edge - the edge. A list of ticks.



setBase
public void setBase(double base)(Code)
Sets the base for the logarithm calculation and sends an AxisChangeEvent to all registered listeners.
Parameters:
  base - the base value (must be > 1.0).



setMinorTickCount
public void setMinorTickCount(int count)(Code)
Sets the number of minor tick marks to display.
Parameters:
  count - the count.



setNumberFormatOverride
public void setNumberFormatOverride(NumberFormat formatter)(Code)
Sets the number format override. If this is non-null, then it will be used to format the numbers on the axis.
Parameters:
  formatter - the number formatter (null permitted).



setSmallestValue
public void setSmallestValue(double value)(Code)
Sets the smallest value represented by the axis.
Parameters:
  value - the value.



setTickUnit
public void setTickUnit(NumberTickUnit unit)(Code)
Sets the tick unit for the axis and sends an AxisChangeEvent to all registered listeners. A side effect of calling this method is that the "auto-select" feature for tick units is switched off (you can restore it using the ValueAxis.setAutoTickUnitSelection(boolean) method).
Parameters:
  unit - the new tick unit (null not permitted).



setTickUnit
public void setTickUnit(NumberTickUnit unit, boolean notify, boolean turnOffAutoSelect)(Code)
Sets the tick unit for the axis and, if requested, sends an AxisChangeEvent to all registered listeners. In addition, an option is provided to turn off the "auto-select" feature for tick units (you can restore it using the ValueAxis.setAutoTickUnitSelection(boolean) method).
Parameters:
  unit - the new tick unit (null not permitted).
Parameters:
  notify - notify listeners?
Parameters:
  turnOffAutoSelect - turn off the auto-tick selection?



valueToJava2D
public double valueToJava2D(double value, Rectangle2D area, RectangleEdge edge)(Code)
Converts a value on the axis scale to a Java2D coordinate relative to the given area, based on the axis running along the specified edge.
Parameters:
  value - the data value.
Parameters:
  area - the area.
Parameters:
  edge - the edge. The Java2D coordinate corresponding to value.



Fields inherited from org.jfree.chart.axis.ValueAxis
final public static boolean DEFAULT_AUTO_RANGE(Code)(Java Doc)
final public static double DEFAULT_AUTO_RANGE_MINIMUM_SIZE(Code)(Java Doc)
final public static boolean DEFAULT_AUTO_TICK_UNIT_SELECTION(Code)(Java Doc)
final public static boolean DEFAULT_INVERTED(Code)(Java Doc)
final public static double DEFAULT_LOWER_BOUND(Code)(Java Doc)
final public static double DEFAULT_LOWER_MARGIN(Code)(Java Doc)
final public static Range DEFAULT_RANGE(Code)(Java Doc)
final public static double DEFAULT_UPPER_BOUND(Code)(Java Doc)
final public static double DEFAULT_UPPER_MARGIN(Code)(Java Doc)
final public static int MAXIMUM_TICK_COUNT(Code)(Java Doc)

Methods inherited from org.jfree.chart.axis.ValueAxis
abstract protected void autoAdjustRange()(Code)(Java Doc)
protected float[] calculateAnchorPoint(ValueTick tick, double cursor, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc)
public void centerRange(double value)(Code)(Java Doc)
public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
protected void drawAxisLine(Graphics2D g2, double cursor, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc)
protected AxisState drawTickMarksAndLabels(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected double findMaximumTickLabelHeight(List ticks, Graphics2D g2, Rectangle2D drawArea, boolean vertical)(Code)(Java Doc)
protected double findMaximumTickLabelWidth(List ticks, Graphics2D g2, Rectangle2D drawArea, boolean vertical)(Code)(Java Doc)
public double getAutoRangeMinimumSize()(Code)(Java Doc)
protected int getAutoTickIndex()(Code)(Java Doc)
public Range getDefaultAutoRange()(Code)(Java Doc)
public Shape getDownArrow()(Code)(Java Doc)
public double getFixedAutoRange()(Code)(Java Doc)
public Shape getLeftArrow()(Code)(Java Doc)
public double getLowerBound()(Code)(Java Doc)
public double getLowerMargin()(Code)(Java Doc)
public Range getRange()(Code)(Java Doc)
public Shape getRightArrow()(Code)(Java Doc)
public TickUnitSource getStandardTickUnits()(Code)(Java Doc)
public Shape getUpArrow()(Code)(Java Doc)
public double getUpperBound()(Code)(Java Doc)
public double getUpperMargin()(Code)(Java Doc)
public boolean isAutoRange()(Code)(Java Doc)
public boolean isAutoTickUnitSelection()(Code)(Java Doc)
public boolean isInverted()(Code)(Java Doc)
public boolean isNegativeArrowVisible()(Code)(Java Doc)
public boolean isPositiveArrowVisible()(Code)(Java Doc)
public boolean isVerticalTickLabels()(Code)(Java Doc)
abstract public double java2DToValue(double java2DValue, Rectangle2D area, RectangleEdge edge)(Code)(Java Doc)
public double lengthToJava2D(double length, Rectangle2D area, RectangleEdge edge)(Code)(Java Doc)
public AxisSpace reserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, RectangleEdge edge, AxisSpace space)(Code)(Java Doc)
public void resizeRange(double percent)(Code)(Java Doc)
public void resizeRange(double percent, double anchorValue)(Code)(Java Doc)
public void setAutoRange(boolean auto)(Code)(Java Doc)
protected void setAutoRange(boolean auto, boolean notify)(Code)(Java Doc)
public void setAutoRangeMinimumSize(double size)(Code)(Java Doc)
public void setAutoRangeMinimumSize(double size, boolean notify)(Code)(Java Doc)
protected void setAutoTickIndex(int index)(Code)(Java Doc)
public void setAutoTickUnitSelection(boolean flag)(Code)(Java Doc)
public void setAutoTickUnitSelection(boolean flag, boolean notify)(Code)(Java Doc)
public void setDefaultAutoRange(Range range)(Code)(Java Doc)
public void setDownArrow(Shape arrow)(Code)(Java Doc)
public void setFixedAutoRange(double length)(Code)(Java Doc)
public void setInverted(boolean flag)(Code)(Java Doc)
public void setLeftArrow(Shape arrow)(Code)(Java Doc)
public void setLowerBound(double min)(Code)(Java Doc)
public void setLowerMargin(double margin)(Code)(Java Doc)
public void setNegativeArrowVisible(boolean visible)(Code)(Java Doc)
public void setPositiveArrowVisible(boolean visible)(Code)(Java Doc)
public void setRange(Range range)(Code)(Java Doc)
public void setRange(Range range, boolean turnOffAutoRange, boolean notify)(Code)(Java Doc)
public void setRange(double lower, double upper)(Code)(Java Doc)
public void setRangeAboutValue(double value, double length)(Code)(Java Doc)
public void setRangeWithMargins(Range range)(Code)(Java Doc)
public void setRangeWithMargins(Range range, boolean turnOffAutoRange, boolean notify)(Code)(Java Doc)
public void setRangeWithMargins(double lower, double upper)(Code)(Java Doc)
public void setRightArrow(Shape arrow)(Code)(Java Doc)
public void setStandardTickUnits(TickUnitSource source)(Code)(Java Doc)
public void setUpArrow(Shape arrow)(Code)(Java Doc)
public void setUpperBound(double max)(Code)(Java Doc)
public void setUpperMargin(double margin)(Code)(Java Doc)
public void setVerticalTickLabels(boolean flag)(Code)(Java Doc)
abstract public double valueToJava2D(double value, Rectangle2D area, RectangleEdge edge)(Code)(Java Doc)
public void zoomRange(double lowerPercent, double upperPercent)(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.