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

All known Subclasses:   org.jfree.chart.axis.ValueAxis,  org.jfree.chart.axis.CategoryAxis,
Axis
abstract public class Axis implements Cloneable,Serializable(Code)
The base class for all axes in JFreeChart. Subclasses are divided into those that display values ( ValueAxis ) and those that display categories ( CategoryAxis ).


Field Summary
final public static  FontDEFAULT_AXIS_LABEL_FONT
     The default axis label font.
final public static  RectangleInsetsDEFAULT_AXIS_LABEL_INSETS
     The default axis label insets.
final public static  PaintDEFAULT_AXIS_LABEL_PAINT
     The default axis label paint.
final public static  PaintDEFAULT_AXIS_LINE_PAINT
     The default axis line paint.
final public static  StrokeDEFAULT_AXIS_LINE_STROKE
     The default axis line stroke.
final public static  booleanDEFAULT_AXIS_VISIBLE
     The default axis visibility.
final public static  booleanDEFAULT_TICK_LABELS_VISIBLE
     The default tick labels visibility.
final public static  FontDEFAULT_TICK_LABEL_FONT
     The default tick label font.
final public static  RectangleInsetsDEFAULT_TICK_LABEL_INSETS
     The default tick label insets.
final public static  PaintDEFAULT_TICK_LABEL_PAINT
     The default tick label paint.
final public static  booleanDEFAULT_TICK_MARKS_VISIBLE
     The default tick marks visible.
final public static  floatDEFAULT_TICK_MARK_INSIDE_LENGTH
     The default tick mark inside length.
final public static  floatDEFAULT_TICK_MARK_OUTSIDE_LENGTH
     The default tick mark outside length.
final public static  PaintDEFAULT_TICK_MARK_PAINT
     The default tick paint.
final public static  StrokeDEFAULT_TICK_MARK_STROKE
     The default tick stroke.

Constructor Summary
protected  Axis(String label)
     Constructs an axis, using default values where necessary.

Method Summary
public  voidaddChangeListener(AxisChangeListener listener)
     Registers an object for notification of changes to the axis.
public  Objectclone()
     Returns a clone of the axis.
abstract public  voidconfigure()
     Configures the axis to work with the current plot.
abstract 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).
protected  voiddrawAxisLine(Graphics2D g2, double cursor, Rectangle2D dataArea, RectangleEdge edge)
     Draws an axis line at the current cursor position and edge.
protected  AxisStatedrawLabel(String label, Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, AxisState state)
     Draws the axis label.
Parameters:
  label - the label text.
Parameters:
  g2 - the graphics device.
Parameters:
  plotArea - the plot area.
Parameters:
  dataArea - the area inside the axes.
Parameters:
  edge - the location of the axis.
Parameters:
  state - the axis state (null not permitted).
public  booleanequals(Object obj)
     Tests this axis for equality with another object.
Parameters:
  obj - the object (null permitted).
public  PaintgetAxisLinePaint()
     Returns the paint used to draw the axis line.
public  StrokegetAxisLineStroke()
     Returns the stroke used to draw the axis line.
public  doublegetFixedDimension()
     Returns the fixed dimension for the axis.
public  StringgetLabel()
     Returns the label for the axis.
public  doublegetLabelAngle()
     Returns the angle of the axis label.
protected  Rectangle2DgetLabelEnclosure(Graphics2D g2, RectangleEdge edge)
     Returns a rectangle that encloses the axis label.
public  FontgetLabelFont()
     Returns the font for the axis label.
public  RectangleInsetsgetLabelInsets()
     Returns the insets for the label (that is, the amount of blank space that should be left around the label).
public  PaintgetLabelPaint()
     Returns the color/shade used to draw the axis label.
public  PlotgetPlot()
     Returns the plot that the axis is assigned to.
public  FontgetTickLabelFont()
     Returns the font used for the tick labels (if showing).
public  RectangleInsetsgetTickLabelInsets()
     Returns the insets for the tick labels.
public  PaintgetTickLabelPaint()
     Returns the color/shade used for the tick labels.
public  floatgetTickMarkInsideLength()
     Returns the inside length of the tick marks.
public  floatgetTickMarkOutsideLength()
     Returns the outside length of the tick marks.
public  PaintgetTickMarkPaint()
     Returns the paint used to draw tick marks (if they are showing).
public  StrokegetTickMarkStroke()
     Returns the stroke used to draw tick marks.
public  booleanhasListener(EventListener listener)
     Returns true if the specified object is registered with the dataset as a listener.
public  booleanisAxisLineVisible()
     A flag that controls whether or not the axis line is drawn.
public  booleanisTickLabelsVisible()
     Returns a flag indicating whether or not the tick labels are visible.
public  booleanisTickMarksVisible()
     Returns the flag that indicates whether or not the tick marks are showing.
public  booleanisVisible()
     Returns true if the axis is visible, and false otherwise.
protected  voidnotifyListeners(AxisChangeEvent event)
     Notifies all registered listeners that the axis has changed.
abstract public  ListrefreshTicks(Graphics2D g2, AxisState state, Rectangle2D dataArea, RectangleEdge edge)
     Calculates the positions of the ticks for the axis, storing the results in the tick list (ready for drawing).
Parameters:
  g2 - the graphics device.
Parameters:
  state - the axis state.
Parameters:
  dataArea - the area inside the axes.
Parameters:
  edge - the edge on which the axis is located.
public  voidremoveChangeListener(AxisChangeListener listener)
     Deregisters an object for notification of changes to the axis.
abstract public  AxisSpacereserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, RectangleEdge edge, AxisSpace space)
     Estimates the space (height or width) 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 (including axes) should be drawn.
Parameters:
  edge - the axis location.
Parameters:
  space - space already reserved.
public  voidsetAxisLinePaint(Paint paint)
     Sets the paint used to draw the axis line and sends an AxisChangeEvent to all registered listeners.
public  voidsetAxisLineStroke(Stroke stroke)
     Sets the stroke used to draw the axis line and sends an AxisChangeEvent to all registered listeners.
public  voidsetAxisLineVisible(boolean visible)
     Sets a flag that controls whether or not the axis line is visible and sends an AxisChangeEvent to all registered listeners.
public  voidsetFixedDimension(double dimension)
     Sets the fixed dimension for the axis.

This is used when combining more than one plot on a chart.

public  voidsetLabel(String label)
     Sets the label for the axis and sends an AxisChangeEvent to all registered listeners.
public  voidsetLabelAngle(double angle)
     Sets the angle for the label and sends an AxisChangeEvent to all registered listeners.
public  voidsetLabelFont(Font font)
     Sets the font for the axis label and sends an AxisChangeEvent to all registered listeners.
public  voidsetLabelInsets(RectangleInsets insets)
     Sets the insets for the axis label, and sends an AxisChangeEvent to all registered listeners.
public  voidsetLabelPaint(Paint paint)
     Sets the paint used to draw the axis label and sends an AxisChangeEvent to all registered listeners.
public  voidsetPlot(Plot plot)
     Sets a reference to the plot that the axis is assigned to.
public  voidsetTickLabelFont(Font font)
     Sets the font for the tick labels and sends an AxisChangeEvent to all registered listeners.
public  voidsetTickLabelInsets(RectangleInsets insets)
     Sets the insets for the tick labels and sends an AxisChangeEvent to all registered listeners.
public  voidsetTickLabelPaint(Paint paint)
     Sets the paint used to draw tick labels (if they are showing) and sends an AxisChangeEvent to all registered listeners.
public  voidsetTickLabelsVisible(boolean flag)
     Sets the flag that determines whether or not the tick labels are visible and sends an AxisChangeEvent to all registered listeners.
public  voidsetTickMarkInsideLength(float length)
     Sets the inside length of the tick marks and sends an AxisChangeEvent to all registered listeners.
public  voidsetTickMarkOutsideLength(float length)
     Sets the outside length of the tick marks and sends an AxisChangeEvent to all registered listeners.
public  voidsetTickMarkPaint(Paint paint)
     Sets the paint used to draw tick marks and sends an AxisChangeEvent to all registered listeners.
public  voidsetTickMarkStroke(Stroke stroke)
     Sets the stroke used to draw tick marks and sends an AxisChangeEvent to all registered listeners.
public  voidsetTickMarksVisible(boolean flag)
     Sets the flag that indicates whether or not the tick marks are showing and sends an AxisChangeEvent to all registered listeners.
public  voidsetVisible(boolean flag)
     Sets a flag that controls whether or not the axis is visible and sends an AxisChangeEvent to all registered listeners.

Field Detail
DEFAULT_AXIS_LABEL_FONT
final public static Font DEFAULT_AXIS_LABEL_FONT(Code)
The default axis label font.



DEFAULT_AXIS_LABEL_INSETS
final public static RectangleInsets DEFAULT_AXIS_LABEL_INSETS(Code)
The default axis label insets.



DEFAULT_AXIS_LABEL_PAINT
final public static Paint DEFAULT_AXIS_LABEL_PAINT(Code)
The default axis label paint.



DEFAULT_AXIS_LINE_PAINT
final public static Paint DEFAULT_AXIS_LINE_PAINT(Code)
The default axis line paint.



DEFAULT_AXIS_LINE_STROKE
final public static Stroke DEFAULT_AXIS_LINE_STROKE(Code)
The default axis line stroke.



DEFAULT_AXIS_VISIBLE
final public static boolean DEFAULT_AXIS_VISIBLE(Code)
The default axis visibility.



DEFAULT_TICK_LABELS_VISIBLE
final public static boolean DEFAULT_TICK_LABELS_VISIBLE(Code)
The default tick labels visibility.



DEFAULT_TICK_LABEL_FONT
final public static Font DEFAULT_TICK_LABEL_FONT(Code)
The default tick label font.



DEFAULT_TICK_LABEL_INSETS
final public static RectangleInsets DEFAULT_TICK_LABEL_INSETS(Code)
The default tick label insets.



DEFAULT_TICK_LABEL_PAINT
final public static Paint DEFAULT_TICK_LABEL_PAINT(Code)
The default tick label paint.



DEFAULT_TICK_MARKS_VISIBLE
final public static boolean DEFAULT_TICK_MARKS_VISIBLE(Code)
The default tick marks visible.



DEFAULT_TICK_MARK_INSIDE_LENGTH
final public static float DEFAULT_TICK_MARK_INSIDE_LENGTH(Code)
The default tick mark inside length.



DEFAULT_TICK_MARK_OUTSIDE_LENGTH
final public static float DEFAULT_TICK_MARK_OUTSIDE_LENGTH(Code)
The default tick mark outside length.



DEFAULT_TICK_MARK_PAINT
final public static Paint DEFAULT_TICK_MARK_PAINT(Code)
The default tick paint.



DEFAULT_TICK_MARK_STROKE
final public static Stroke DEFAULT_TICK_MARK_STROKE(Code)
The default tick stroke.




Constructor Detail
Axis
protected Axis(String label)(Code)
Constructs an axis, using default values where necessary.
Parameters:
  label - the axis label (null permitted).




Method Detail
addChangeListener
public void addChangeListener(AxisChangeListener listener)(Code)
Registers an object for notification of changes to the axis.
Parameters:
  listener - the object that is being registered.
See Also:   Axis.removeChangeListener(AxisChangeListener)



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



configure
abstract public void configure()(Code)
Configures the axis to work with the current plot. Override this method to perform any special processing (such as auto-rescaling).



draw
abstract 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).



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.



drawLabel
protected AxisState drawLabel(String label, Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, AxisState state)(Code)
Draws the axis label.
Parameters:
  label - the label text.
Parameters:
  g2 - the graphics device.
Parameters:
  plotArea - the plot area.
Parameters:
  dataArea - the area inside the axes.
Parameters:
  edge - the location of the axis.
Parameters:
  state - the axis state (null not permitted). Information about the axis.



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



getAxisLinePaint
public Paint getAxisLinePaint()(Code)
Returns the paint used to draw the axis line. The paint (never null).
See Also:   Axis.setAxisLinePaint(Paint)



getAxisLineStroke
public Stroke getAxisLineStroke()(Code)
Returns the stroke used to draw the axis line. The stroke (never null).
See Also:   Axis.setAxisLineStroke(Stroke)



getFixedDimension
public double getFixedDimension()(Code)
Returns the fixed dimension for the axis. The fixed dimension.
See Also:   Axis.setFixedDimension(double)



getLabel
public String getLabel()(Code)
Returns the label for the axis. The label for the axis (null possible).
See Also:   Axis.getLabelFont()
See Also:   Axis.getLabelPaint()
See Also:   Axis.setLabel(String)



getLabelAngle
public double getLabelAngle()(Code)
Returns the angle of the axis label. The angle (in radians).
See Also:   Axis.setLabelAngle(double)



getLabelEnclosure
protected Rectangle2D getLabelEnclosure(Graphics2D g2, RectangleEdge edge)(Code)
Returns a rectangle that encloses the axis label. This is typically used for layout purposes (it gives the maximum dimensions of the label).
Parameters:
  g2 - the graphics device.
Parameters:
  edge - the edge of the plot area along which the axis is measuring. The enclosing rectangle.



getLabelFont
public Font getLabelFont()(Code)
Returns the font for the axis label. The font (never null).
See Also:   Axis.setLabelFont(Font)



getLabelInsets
public RectangleInsets getLabelInsets()(Code)
Returns the insets for the label (that is, the amount of blank space that should be left around the label). The label insets (never null).
See Also:   Axis.setLabelInsets(RectangleInsets)



getLabelPaint
public Paint getLabelPaint()(Code)
Returns the color/shade used to draw the axis label. The paint (never null).
See Also:   Axis.setLabelPaint(Paint)



getPlot
public Plot getPlot()(Code)
Returns the plot that the axis is assigned to. This method will return null if the axis is not currently assigned to a plot. The plot that the axis is assigned to (possibly null).
See Also:   Axis.setPlot(Plot)



getTickLabelFont
public Font getTickLabelFont()(Code)
Returns the font used for the tick labels (if showing). The font (never null).
See Also:   Axis.setTickLabelFont(Font)



getTickLabelInsets
public RectangleInsets getTickLabelInsets()(Code)
Returns the insets for the tick labels. The insets (never null).
See Also:   Axis.setTickLabelInsets(RectangleInsets)



getTickLabelPaint
public Paint getTickLabelPaint()(Code)
Returns the color/shade used for the tick labels. The paint used for the tick labels.
See Also:   Axis.setTickLabelPaint(Paint)



getTickMarkInsideLength
public float getTickMarkInsideLength()(Code)
Returns the inside length of the tick marks. The length.
See Also:   Axis.getTickMarkOutsideLength()
See Also:   Axis.setTickMarkInsideLength(float)



getTickMarkOutsideLength
public float getTickMarkOutsideLength()(Code)
Returns the outside length of the tick marks. The length.
See Also:   Axis.getTickMarkInsideLength()
See Also:   Axis.setTickMarkOutsideLength(float)



getTickMarkPaint
public Paint getTickMarkPaint()(Code)
Returns the paint used to draw tick marks (if they are showing). The paint (never null).
See Also:   Axis.setTickMarkPaint(Paint)



getTickMarkStroke
public Stroke getTickMarkStroke()(Code)
Returns the stroke used to draw tick marks. The stroke (never null).
See Also:   Axis.setTickMarkStroke(Stroke)



hasListener
public boolean hasListener(EventListener listener)(Code)
Returns true if the specified object is registered with the dataset as a listener. Most applications won't need to call this method, it exists mainly for use by unit testing code.
Parameters:
  listener - the listener. A boolean.



isAxisLineVisible
public boolean isAxisLineVisible()(Code)
A flag that controls whether or not the axis line is drawn. A boolean.
See Also:   Axis.getAxisLinePaint()
See Also:   Axis.getAxisLineStroke()
See Also:   Axis.setAxisLineVisible(boolean)



isTickLabelsVisible
public boolean isTickLabelsVisible()(Code)
Returns a flag indicating whether or not the tick labels are visible. The flag.
See Also:   Axis.getTickLabelFont()
See Also:   Axis.getTickLabelPaint()
See Also:   Axis.setTickLabelsVisible(boolean)



isTickMarksVisible
public boolean isTickMarksVisible()(Code)
Returns the flag that indicates whether or not the tick marks are showing. The flag that indicates whether or not the tick marks are showing.
See Also:   Axis.setTickMarksVisible(boolean)



isVisible
public boolean isVisible()(Code)
Returns true if the axis is visible, and false otherwise. A boolean.
See Also:   Axis.setVisible(boolean)



notifyListeners
protected void notifyListeners(AxisChangeEvent event)(Code)
Notifies all registered listeners that the axis has changed. The AxisChangeEvent provides information about the change.
Parameters:
  event - information about the change to the axis.



refreshTicks
abstract public List refreshTicks(Graphics2D g2, AxisState state, Rectangle2D dataArea, RectangleEdge edge)(Code)
Calculates the positions of the ticks for the axis, storing the results in the tick list (ready for drawing).
Parameters:
  g2 - the graphics device.
Parameters:
  state - the axis state.
Parameters:
  dataArea - the area inside the axes.
Parameters:
  edge - the edge on which the axis is located. The list of ticks.



removeChangeListener
public void removeChangeListener(AxisChangeListener listener)(Code)
Deregisters an object for notification of changes to the axis.
Parameters:
  listener - the object to deregister.
See Also:   Axis.addChangeListener(AxisChangeListener)



reserveSpace
abstract public AxisSpace reserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, RectangleEdge edge, AxisSpace space)(Code)
Estimates the space (height or width) 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 (including axes) should be drawn.
Parameters:
  edge - the axis location.
Parameters:
  space - space already reserved. The space required to draw the axis (including pre-reserved space).



setAxisLinePaint
public void setAxisLinePaint(Paint paint)(Code)
Sets the paint used to draw the axis line and sends an AxisChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null not permitted).
See Also:   Axis.getAxisLinePaint()



setAxisLineStroke
public void setAxisLineStroke(Stroke stroke)(Code)
Sets the stroke used to draw the axis line and sends an AxisChangeEvent to all registered listeners.
Parameters:
  stroke - the stroke (null not permitted).
See Also:   Axis.getAxisLineStroke()



setAxisLineVisible
public void setAxisLineVisible(boolean visible)(Code)
Sets a flag that controls whether or not the axis line is visible and sends an AxisChangeEvent to all registered listeners.
Parameters:
  visible - the flag.
See Also:   Axis.isAxisLineVisible()
See Also:   Axis.setAxisLinePaint(Paint)
See Also:   Axis.setAxisLineStroke(Stroke)



setFixedDimension
public void setFixedDimension(double dimension)(Code)
Sets the fixed dimension for the axis.

This is used when combining more than one plot on a chart. In this case, there may be several axes that need to have the same height or width so that they are aligned. This method is used to fix a dimension for the axis (the context determines whether the dimension is horizontal or vertical).
Parameters:
  dimension - the fixed dimension.
See Also:   Axis.getFixedDimension()




setLabel
public void setLabel(String label)(Code)
Sets the label for the axis and sends an AxisChangeEvent to all registered listeners.
Parameters:
  label - the new label (null permitted).
See Also:   Axis.getLabel()
See Also:   Axis.setLabelFont(Font)
See Also:   Axis.setLabelPaint(Paint)



setLabelAngle
public void setLabelAngle(double angle)(Code)
Sets the angle for the label and sends an AxisChangeEvent to all registered listeners.
Parameters:
  angle - the angle (in radians).
See Also:   Axis.getLabelAngle()



setLabelFont
public void setLabelFont(Font font)(Code)
Sets the font for the axis label and sends an AxisChangeEvent to all registered listeners.
Parameters:
  font - the font (null not permitted).
See Also:   Axis.getLabelFont()



setLabelInsets
public void setLabelInsets(RectangleInsets insets)(Code)
Sets the insets for the axis label, and sends an AxisChangeEvent to all registered listeners.
Parameters:
  insets - the insets (null not permitted).
See Also:   Axis.getLabelInsets()



setLabelPaint
public void setLabelPaint(Paint paint)(Code)
Sets the paint used to draw the axis label and sends an AxisChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null not permitted).
See Also:   Axis.getLabelPaint()



setPlot
public void setPlot(Plot plot)(Code)
Sets a reference to the plot that the axis is assigned to.

This method is used internally, you shouldn't need to call it yourself.
Parameters:
  plot - the plot.
See Also:   Axis.getPlot()




setTickLabelFont
public void setTickLabelFont(Font font)(Code)
Sets the font for the tick labels and sends an AxisChangeEvent to all registered listeners.
Parameters:
  font - the font (null not allowed).
See Also:   Axis.getTickLabelFont()



setTickLabelInsets
public void setTickLabelInsets(RectangleInsets insets)(Code)
Sets the insets for the tick labels and sends an AxisChangeEvent to all registered listeners.
Parameters:
  insets - the insets (null not permitted).
See Also:   Axis.getTickLabelInsets()



setTickLabelPaint
public void setTickLabelPaint(Paint paint)(Code)
Sets the paint used to draw tick labels (if they are showing) and sends an AxisChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null not permitted).
See Also:   Axis.getTickLabelPaint()



setTickLabelsVisible
public void setTickLabelsVisible(boolean flag)(Code)
Sets the flag that determines whether or not the tick labels are visible and sends an AxisChangeEvent to all registered listeners.
Parameters:
  flag - the flag.
See Also:   Axis.isTickLabelsVisible()
See Also:   Axis.setTickLabelFont(Font)
See Also:   Axis.setTickLabelPaint(Paint)



setTickMarkInsideLength
public void setTickMarkInsideLength(float length)(Code)
Sets the inside length of the tick marks and sends an AxisChangeEvent to all registered listeners.
Parameters:
  length - the new length.
See Also:   Axis.getTickMarkInsideLength()



setTickMarkOutsideLength
public void setTickMarkOutsideLength(float length)(Code)
Sets the outside length of the tick marks and sends an AxisChangeEvent to all registered listeners.
Parameters:
  length - the new length.
See Also:   Axis.getTickMarkInsideLength()



setTickMarkPaint
public void setTickMarkPaint(Paint paint)(Code)
Sets the paint used to draw tick marks and sends an AxisChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null not permitted).
See Also:   Axis.getTickMarkPaint()



setTickMarkStroke
public void setTickMarkStroke(Stroke stroke)(Code)
Sets the stroke used to draw tick marks and sends an AxisChangeEvent to all registered listeners.
Parameters:
  stroke - the stroke (null not permitted).
See Also:   Axis.getTickMarkStroke()



setTickMarksVisible
public void setTickMarksVisible(boolean flag)(Code)
Sets the flag that indicates whether or not the tick marks are showing and sends an AxisChangeEvent to all registered listeners.
Parameters:
  flag - the flag.
See Also:   Axis.isTickMarksVisible()



setVisible
public void setVisible(boolean flag)(Code)
Sets a flag that controls whether or not the axis is visible and sends an AxisChangeEvent to all registered listeners.
Parameters:
  flag - the flag.
See Also:   Axis.isVisible()



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.