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


java.lang.Object
   org.jfree.chart.plot.Marker

All known Subclasses:   org.jfree.chart.plot.ValueMarker,  org.jfree.chart.plot.CategoryMarker,  org.jfree.chart.plot.IntervalMarker,
Marker
abstract public class Marker implements Cloneable,Serializable(Code)
The base class for markers that can be added to plots to highlight a value or range of values.

An event notification mechanism was added to this class in JFreeChart version 1.0.3.



Constructor Summary
protected  Marker()
     Creates a new marker with default attributes.
protected  Marker(Paint paint)
     Constructs a new marker.
protected  Marker(Paint paint, Stroke stroke, Paint outlinePaint, Stroke outlineStroke, float alpha)
     Constructs a new marker.

Method Summary
public  voidaddChangeListener(MarkerChangeListener listener)
     Registers an object for notification of changes to the marker.
public  Objectclone()
     Creates a clone of the marker.
public  booleanequals(Object obj)
     Tests the marker for equality with an arbitrary object.
Parameters:
  obj - the object (null permitted).
public  floatgetAlpha()
     Returns the alpha transparency.
public  StringgetLabel()
     Returns the label (if null no label is displayed).
public  RectangleAnchorgetLabelAnchor()
     Returns the label anchor.
public  FontgetLabelFont()
     Returns the label font.
public  RectangleInsetsgetLabelOffset()
     Returns the label offset.
public  LengthAdjustmentTypegetLabelOffsetType()
     Returns the label offset type.
public  PaintgetLabelPaint()
     Returns the label paint.
public  TextAnchorgetLabelTextAnchor()
     Returns the label text anchor.
public  EventListener[]getListeners(Class listenerType)
     Returns an array containing all the listeners of the specified type.
Parameters:
  listenerType - the listener type.
public  PaintgetOutlinePaint()
     Returns the outline paint.
public  StrokegetOutlineStroke()
     Returns the outline stroke.
public  PaintgetPaint()
     Returns the paint.
public  StrokegetStroke()
     Returns the stroke.
public  voidnotifyListeners(MarkerChangeEvent event)
     Notifies all registered listeners that the marker has been modified.
public  voidremoveChangeListener(MarkerChangeListener listener)
     Unregisters an object for notification of changes to the marker.
public  voidsetAlpha(float alpha)
     Sets the alpha transparency that should be used when drawing the marker, and sends a MarkerChangeEvent to all registered listeners.
public  voidsetLabel(String label)
     Sets the label (if null no label is displayed) and sends a MarkerChangeEvent to all registered listeners.
public  voidsetLabelAnchor(RectangleAnchor anchor)
     Sets the label anchor and sends a MarkerChangeEvent to all registered listeners.
public  voidsetLabelFont(Font font)
     Sets the label font and sends a MarkerChangeEvent to all registered listeners.
public  voidsetLabelOffset(RectangleInsets offset)
     Sets the label offset and sends a MarkerChangeEvent to all registered listeners.
public  voidsetLabelOffsetType(LengthAdjustmentType adj)
     Sets the label offset type and sends a MarkerChangeEvent to all registered listeners.
public  voidsetLabelPaint(Paint paint)
     Sets the label paint and sends a MarkerChangeEvent to all registered listeners.
public  voidsetLabelTextAnchor(TextAnchor anchor)
     Sets the label text anchor and sends a MarkerChangeEvent to all registered listeners.
public  voidsetOutlinePaint(Paint paint)
     Sets the outline paint and sends a MarkerChangeEvent to all registered listeners.
public  voidsetOutlineStroke(Stroke stroke)
     Sets the outline stroke and sends a MarkerChangeEvent to all registered listeners.
public  voidsetPaint(Paint paint)
     Sets the paint and sends a MarkerChangeEvent to all registered listeners.
public  voidsetStroke(Stroke stroke)
     Sets the stroke and sends a MarkerChangeEvent to all registered listeners.


Constructor Detail
Marker
protected Marker()(Code)
Creates a new marker with default attributes.



Marker
protected Marker(Paint paint)(Code)
Constructs a new marker.
Parameters:
  paint - the paint (null not permitted).



Marker
protected Marker(Paint paint, Stroke stroke, Paint outlinePaint, Stroke outlineStroke, float alpha)(Code)
Constructs a new marker.
Parameters:
  paint - the paint (null not permitted).
Parameters:
  stroke - the stroke (null not permitted).
Parameters:
  outlinePaint - the outline paint (null permitted).
Parameters:
  outlineStroke - the outline stroke (null permitted).
Parameters:
  alpha - the alpha transparency (must be in the range 0.0f to 1.0f).
throws:
  IllegalArgumentException - if paint or stroke is null, or alpha is not in the specified range.




Method Detail
addChangeListener
public void addChangeListener(MarkerChangeListener listener)(Code)
Registers an object for notification of changes to the marker.
Parameters:
  listener - the object to be registered.
since:
   1.0.3



clone
public Object clone() throws CloneNotSupportedException(Code)
Creates a clone of the marker. A clone.
throws:
  CloneNotSupportedException - never.



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



getAlpha
public float getAlpha()(Code)
Returns the alpha transparency. The alpha transparency.
See Also:   Marker.setAlpha(float)



getLabel
public String getLabel()(Code)
Returns the label (if null no label is displayed). The label (possibly null).
See Also:   Marker.setLabel(String)



getLabelAnchor
public RectangleAnchor getLabelAnchor()(Code)
Returns the label anchor. This defines the position of the label anchor, relative to the bounds of the marker. The label anchor (never null).
See Also:   Marker.setLabelAnchor(RectangleAnchor)



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



getLabelOffset
public RectangleInsets getLabelOffset()(Code)
Returns the label offset. The label offset (never null).
See Also:   Marker.setLabelOffset(RectangleInsets)



getLabelOffsetType
public LengthAdjustmentType getLabelOffsetType()(Code)
Returns the label offset type. The type (never null).
See Also:   Marker.setLabelOffsetType(LengthAdjustmentType)



getLabelPaint
public Paint getLabelPaint()(Code)
Returns the label paint. The label paint (never null).
See Also:   Marker.setLabelPaint(Paint)



getLabelTextAnchor
public TextAnchor getLabelTextAnchor()(Code)
Returns the label text anchor. The label text anchor (never null).
See Also:   Marker.setLabelTextAnchor(TextAnchor)



getListeners
public EventListener[] getListeners(Class listenerType)(Code)
Returns an array containing all the listeners of the specified type.
Parameters:
  listenerType - the listener type. The array of listeners.
since:
   1.0.3



getOutlinePaint
public Paint getOutlinePaint()(Code)
Returns the outline paint. The outline paint (possibly null).
See Also:   Marker.setOutlinePaint(Paint)



getOutlineStroke
public Stroke getOutlineStroke()(Code)
Returns the outline stroke. The outline stroke (possibly null).
See Also:   Marker.setOutlineStroke(Stroke)



getPaint
public Paint getPaint()(Code)
Returns the paint. The paint (never null).
See Also:   Marker.setPaint(Paint)



getStroke
public Stroke getStroke()(Code)
Returns the stroke. The stroke (never null).
See Also:   Marker.setStroke(Stroke)



notifyListeners
public void notifyListeners(MarkerChangeEvent event)(Code)
Notifies all registered listeners that the marker has been modified.
Parameters:
  event - information about the change event.
since:
   1.0.3



removeChangeListener
public void removeChangeListener(MarkerChangeListener listener)(Code)
Unregisters an object for notification of changes to the marker.
Parameters:
  listener - the object to be unregistered.
since:
   1.0.3



setAlpha
public void setAlpha(float alpha)(Code)
Sets the alpha transparency that should be used when drawing the marker, and sends a MarkerChangeEvent to all registered listeners. The alpha transparency is a value in the range 0.0f (completely transparent) to 1.0f (completely opaque).
Parameters:
  alpha - the alpha transparency (must be in the range 0.0f to 1.0f).
throws:
  IllegalArgumentException - if alpha is not in thespecified range.
See Also:   Marker.getAlpha()



setLabel
public void setLabel(String label)(Code)
Sets the label (if null no label is displayed) and sends a MarkerChangeEvent to all registered listeners.
Parameters:
  label - the label (null permitted).
See Also:   Marker.getLabel()



setLabelAnchor
public void setLabelAnchor(RectangleAnchor anchor)(Code)
Sets the label anchor and sends a MarkerChangeEvent to all registered listeners. The anchor defines the position of the label anchor, relative to the bounds of the marker.
Parameters:
  anchor - the anchor (null not permitted).
See Also:   Marker.getLabelAnchor()



setLabelFont
public void setLabelFont(Font font)(Code)
Sets the label font and sends a MarkerChangeEvent to all registered listeners.
Parameters:
  font - the font (null not permitted).
See Also:   Marker.getLabelFont()



setLabelOffset
public void setLabelOffset(RectangleInsets offset)(Code)
Sets the label offset and sends a MarkerChangeEvent to all registered listeners.
Parameters:
  offset - the label offset (null not permitted).
See Also:   Marker.getLabelOffset()



setLabelOffsetType
public void setLabelOffsetType(LengthAdjustmentType adj)(Code)
Sets the label offset type and sends a MarkerChangeEvent to all registered listeners.
Parameters:
  adj - the type (null not permitted).
See Also:   Marker.getLabelOffsetType()



setLabelPaint
public void setLabelPaint(Paint paint)(Code)
Sets the label paint and sends a MarkerChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null not permitted).
See Also:   Marker.getLabelPaint()



setLabelTextAnchor
public void setLabelTextAnchor(TextAnchor anchor)(Code)
Sets the label text anchor and sends a MarkerChangeEvent to all registered listeners.
Parameters:
  anchor - the label text anchor (null not permitted).
See Also:   Marker.getLabelTextAnchor()



setOutlinePaint
public void setOutlinePaint(Paint paint)(Code)
Sets the outline paint and sends a MarkerChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null permitted).
See Also:   Marker.getOutlinePaint()



setOutlineStroke
public void setOutlineStroke(Stroke stroke)(Code)
Sets the outline stroke and sends a MarkerChangeEvent to all registered listeners.
Parameters:
  stroke - the stroke (null permitted).
See Also:   Marker.getOutlineStroke()



setPaint
public void setPaint(Paint paint)(Code)
Sets the paint and sends a MarkerChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null not permitted).
See Also:   Marker.getPaint()



setStroke
public void setStroke(Stroke stroke)(Code)
Sets the stroke and sends a MarkerChangeEvent to all registered listeners.
Parameters:
  stroke - the stroke (null not permitted).
See Also:   Marker.getStroke()



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.