Java Doc for ModuloAxis.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
         org.jfree.chart.axis.NumberAxis
            org.jfree.chart.axis.ModuloAxis

ModuloAxis
public class ModuloAxis extends NumberAxis (Code)
An axis that displays numerical values within a fixed range using a modulo calculation.



Constructor Summary
public  ModuloAxis(String label, Range fixedRange)
     Creates a new axis.

Method Summary
protected  voidautoAdjustRange()
     This method should calculate a range that will show all the data values.
public  doublegetDisplayEnd()
     Returns the display end value.
public  doublegetDisplayStart()
     Returns the display start value.
public  doublejava2DToValue(double java2DValue, Rectangle2D area, RectangleEdge edge)
     Translates a Java2D coordinate into a data value.
Parameters:
  java2DValue - the Java2D coordinate.
Parameters:
  area - the area.
Parameters:
  edge - the edge.
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  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  voidsetDisplayRange(double start, double end)
     Sets the display range.
public  doublevalueToJava2D(double value, Rectangle2D area, RectangleEdge edge)
     Translates a data value to a Java2D coordinate.
Parameters:
  value - the value.
Parameters:
  area - the area.
Parameters:
  edge - the edge.


Constructor Detail
ModuloAxis
public ModuloAxis(String label, Range fixedRange)(Code)
Creates a new axis.
Parameters:
  label - the axis label (null permitted).
Parameters:
  fixedRange - the fixed range (null not permitted).




Method Detail
autoAdjustRange
protected void autoAdjustRange()(Code)
This method should calculate a range that will show all the data values. For now, it just sets the axis range to the fixedRange.



getDisplayEnd
public double getDisplayEnd()(Code)
Returns the display end value. The display end value.



getDisplayStart
public double getDisplayStart()(Code)
Returns the display start value. The display start value.



java2DToValue
public double java2DToValue(double java2DValue, Rectangle2D area, RectangleEdge edge)(Code)
Translates a Java2D coordinate into a data value.
Parameters:
  java2DValue - the Java2D coordinate.
Parameters:
  area - the area.
Parameters:
  edge - the edge. The Java2D coordinate.



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.



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.




setDisplayRange
public void setDisplayRange(double start, double end)(Code)
Sets the display range. The values will be mapped to the fixed range if necessary.
Parameters:
  start - the start value.
Parameters:
  end - the end value.



valueToJava2D
public double valueToJava2D(double value, Rectangle2D area, RectangleEdge edge)(Code)
Translates a data value to a Java2D coordinate.
Parameters:
  value - the value.
Parameters:
  area - the area.
Parameters:
  edge - the edge. A Java2D coordinate.



Fields inherited from org.jfree.chart.axis.NumberAxis
final public static boolean DEFAULT_AUTO_RANGE_INCLUDES_ZERO(Code)(Java Doc)
final public static boolean DEFAULT_AUTO_RANGE_STICKY_ZERO(Code)(Java Doc)
final public static NumberTickUnit DEFAULT_TICK_UNIT(Code)(Java Doc)
final public static boolean DEFAULT_VERTICAL_TICK_LABELS(Code)(Java Doc)

Methods inherited from org.jfree.chart.axis.NumberAxis
protected void autoAdjustRange()(Code)(Java Doc)
protected double calculateHighestVisibleTickValue()(Code)(Java Doc)
protected double calculateLowestVisibleTickValue()(Code)(Java Doc)
protected int calculateVisibleTickCount()(Code)(Java Doc)
public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public void configure()(Code)(Java Doc)
public static TickUnitSource createIntegerTickUnits()(Code)(Java Doc)
public static TickUnitSource createIntegerTickUnits(Locale locale)(Code)(Java Doc)
public static TickUnitSource createStandardTickUnits()(Code)(Java Doc)
public static TickUnitSource createStandardTickUnits(Locale locale)(Code)(Java Doc)
public AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRenderingInfo plotState)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected double estimateMaximumTickLabelHeight(Graphics2D g2)(Code)(Java Doc)
protected double estimateMaximumTickLabelWidth(Graphics2D g2, TickUnit unit)(Code)(Java Doc)
public boolean getAutoRangeIncludesZero()(Code)(Java Doc)
public boolean getAutoRangeStickyZero()(Code)(Java Doc)
public MarkerAxisBand getMarkerBand()(Code)(Java Doc)
public NumberFormat getNumberFormatOverride()(Code)(Java Doc)
public RangeType getRangeType()(Code)(Java Doc)
public NumberTickUnit getTickUnit()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public double java2DToValue(double java2DValue, Rectangle2D area, RectangleEdge edge)(Code)(Java Doc)
public List refreshTicks(Graphics2D g2, AxisState state, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc)
protected List refreshTicksHorizontal(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc)
protected List refreshTicksVertical(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc)
protected void selectAutoTickUnit(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc)
protected void selectHorizontalAutoTickUnit(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc)
protected void selectVerticalAutoTickUnit(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc)
public void setAutoRangeIncludesZero(boolean flag)(Code)(Java Doc)
public void setAutoRangeStickyZero(boolean flag)(Code)(Java Doc)
public void setMarkerBand(MarkerAxisBand band)(Code)(Java Doc)
public void setNumberFormatOverride(NumberFormat formatter)(Code)(Java Doc)
public void setRangeType(RangeType rangeType)(Code)(Java Doc)
public void setTickUnit(NumberTickUnit unit)(Code)(Java Doc)
public void setTickUnit(NumberTickUnit unit, boolean notify, boolean turnOffAutoSelect)(Code)(Java Doc)
public double valueToJava2D(double value, Rectangle2D area, RectangleEdge edge)(Code)(Java Doc)

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)

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.