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


org.jfree.chart.title.Title
   org.jfree.chart.title.PaintScaleLegend

PaintScaleLegend
public class PaintScaleLegend extends Title implements PublicCloneable(Code)
A legend that shows a range of values and their associated colors, driven by an underlying PaintScale implementation.
since:
   1.0.4



Constructor Summary
public  PaintScaleLegend(PaintScale scale, ValueAxis axis)
     Creates a new instance.

Method Summary
public  Size2Darrange(Graphics2D g2, RectangleConstraint constraint)
     Arranges the contents of the block, within the given constraints, and returns the block size.
Parameters:
  g2 - the graphics device.
Parameters:
  constraint - the constraint (null not permitted).
protected  Size2DarrangeRR(Graphics2D g2, Range widthRange, Range heightRange)
     Returns the content size for the title.
public  voiddraw(Graphics2D g2, Rectangle2D area)
     Draws the legend within the specified area.
public  Objectdraw(Graphics2D g2, Rectangle2D area, Object params)
     Draws the legend within the specified area.
Parameters:
  g2 - the graphics target (null not permitted).
Parameters:
  area - the drawing area (null not permitted).
Parameters:
  params - drawing parameters (ignored here).
public  booleanequals(Object obj)
     Tests this legend for equality with an arbitrary object.
Parameters:
  obj - the object (null permitted).
public  ValueAxisgetAxis()
     Returns the axis for the paint scale.
public  AxisLocationgetAxisLocation()
     Returns the axis location.
public  doublegetAxisOffset()
     Returns the offset between the axis and the paint strip.
public  PaintgetBackgroundPaint()
     Returns the background paint.
public  PaintScalegetScale()
     Returns the scale used to convert values to colors.
public  PaintgetStripOutlinePaint()
     Returns the paint used to draw the outline of the paint strip.
public  StrokegetStripOutlineStroke()
     Returns the stroke used to draw the outline around the paint strip.
public  doublegetStripWidth()
     Returns the width of the paint strip, in Java2D units.
public  booleanisStripOutlineVisible()
     Returns the flag that controls whether or not an outline is drawn around the paint strip.
public  voidsetAxis(ValueAxis axis)
     Sets the axis for the paint scale and sends a TitleChangeEvent to all registered listeners.
public  voidsetAxisLocation(AxisLocation location)
     Sets the axis location and sends a TitleChangeEvent to all registered listeners.
public  voidsetAxisOffset(double offset)
     Sets the offset between the axis and the paint strip and sends a TitleChangeEvent to all registered listeners.
public  voidsetBackgroundPaint(Paint paint)
     Sets the background paint and sends a TitleChangeEvent to all registered listeners.
public  voidsetScale(PaintScale scale)
     Sets the scale and sends a TitleChangeEvent to all registered listeners.
public  voidsetStripOutlinePaint(Paint paint)
     Sets the paint used to draw the outline of the paint strip, and sends a TitleChangeEvent to all registered listeners.
public  voidsetStripOutlineStroke(Stroke stroke)
     Sets the stroke used to draw the outline around the paint strip and sends a TitleChangeEvent to all registered listeners.
public  voidsetStripOutlineVisible(boolean visible)
     Sets the flag that controls whether or not an outline is drawn around the paint strip, and sends a TitleChangeEvent to all registered listeners.
public  voidsetStripWidth(double width)
     Sets the width of the paint strip and sends a TitleChangeEvent to all registered listeners.


Constructor Detail
PaintScaleLegend
public PaintScaleLegend(PaintScale scale, ValueAxis axis)(Code)
Creates a new instance.
Parameters:
  scale - the scale (null not permitted).
Parameters:
  axis - the axis (null not permitted).




Method Detail
arrange
public Size2D arrange(Graphics2D g2, RectangleConstraint constraint)(Code)
Arranges the contents of the block, within the given constraints, and returns the block size.
Parameters:
  g2 - the graphics device.
Parameters:
  constraint - the constraint (null not permitted). The block size (in Java2D units, never null).



arrangeRR
protected Size2D arrangeRR(Graphics2D g2, Range widthRange, Range heightRange)(Code)
Returns the content size for the title. This will reflect the fact that a text title positioned on the left or right of a chart will be rotated 90 degrees.
Parameters:
  g2 - the graphics device.
Parameters:
  widthRange - the width range.
Parameters:
  heightRange - the height range. The content size.



draw
public void draw(Graphics2D g2, Rectangle2D area)(Code)
Draws the legend within the specified area.
Parameters:
  g2 - the graphics target (null not permitted).
Parameters:
  area - the drawing area (null not permitted).



draw
public Object draw(Graphics2D g2, Rectangle2D area, Object params)(Code)
Draws the legend within the specified area.
Parameters:
  g2 - the graphics target (null not permitted).
Parameters:
  area - the drawing area (null not permitted).
Parameters:
  params - drawing parameters (ignored here). null.



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



getAxis
public ValueAxis getAxis()(Code)
Returns the axis for the paint scale. The axis (never null).
See Also:   PaintScaleLegend.setAxis(ValueAxis)



getAxisLocation
public AxisLocation getAxisLocation()(Code)
Returns the axis location. The axis location (never null).
See Also:   PaintScaleLegend.setAxisLocation(AxisLocation)



getAxisOffset
public double getAxisOffset()(Code)
Returns the offset between the axis and the paint strip. The offset between the axis and the paint strip.
See Also:   PaintScaleLegend.setAxisOffset(double)



getBackgroundPaint
public Paint getBackgroundPaint()(Code)
Returns the background paint. The background paint.



getScale
public PaintScale getScale()(Code)
Returns the scale used to convert values to colors. The scale (never null).
See Also:   PaintScaleLegend.setScale(PaintScale)



getStripOutlinePaint
public Paint getStripOutlinePaint()(Code)
Returns the paint used to draw the outline of the paint strip. The paint (never null).
See Also:   PaintScaleLegend.setStripOutlinePaint(Paint)



getStripOutlineStroke
public Stroke getStripOutlineStroke()(Code)
Returns the stroke used to draw the outline around the paint strip. The stroke (never null).
See Also:   PaintScaleLegend.setStripOutlineStroke(Stroke)



getStripWidth
public double getStripWidth()(Code)
Returns the width of the paint strip, in Java2D units. The width of the paint strip.
See Also:   PaintScaleLegend.setStripWidth(double)



isStripOutlineVisible
public boolean isStripOutlineVisible()(Code)
Returns the flag that controls whether or not an outline is drawn around the paint strip. A boolean.
See Also:   PaintScaleLegend.setStripOutlineVisible(boolean)



setAxis
public void setAxis(ValueAxis axis)(Code)
Sets the axis for the paint scale and sends a TitleChangeEvent to all registered listeners.
Parameters:
  axis - the axis (null not permitted).
See Also:   PaintScaleLegend.getAxis()



setAxisLocation
public void setAxisLocation(AxisLocation location)(Code)
Sets the axis location and sends a TitleChangeEvent to all registered listeners.
Parameters:
  location - the location (null not permitted).
See Also:   PaintScaleLegend.getAxisLocation()



setAxisOffset
public void setAxisOffset(double offset)(Code)
Sets the offset between the axis and the paint strip and sends a TitleChangeEvent to all registered listeners.
Parameters:
  offset - the offset.



setBackgroundPaint
public void setBackgroundPaint(Paint paint)(Code)
Sets the background paint and sends a TitleChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null permitted).



setScale
public void setScale(PaintScale scale)(Code)
Sets the scale and sends a TitleChangeEvent to all registered listeners.
Parameters:
  scale - the scale (null not permitted).
See Also:   PaintScaleLegend.getScale()



setStripOutlinePaint
public void setStripOutlinePaint(Paint paint)(Code)
Sets the paint used to draw the outline of the paint strip, and sends a TitleChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null not permitted).
See Also:   PaintScaleLegend.getStripOutlinePaint()



setStripOutlineStroke
public void setStripOutlineStroke(Stroke stroke)(Code)
Sets the stroke used to draw the outline around the paint strip and sends a TitleChangeEvent to all registered listeners.
Parameters:
  stroke - the stroke (null not permitted).
See Also:   PaintScaleLegend.getStripOutlineStroke()



setStripOutlineVisible
public void setStripOutlineVisible(boolean visible)(Code)
Sets the flag that controls whether or not an outline is drawn around the paint strip, and sends a TitleChangeEvent to all registered listeners.
Parameters:
  visible - the flag.
See Also:   PaintScaleLegend.isStripOutlineVisible()



setStripWidth
public void setStripWidth(double width)(Code)
Sets the width of the paint strip and sends a TitleChangeEvent to all registered listeners.
Parameters:
  width - the width.
See Also:   PaintScaleLegend.getStripWidth()



Fields inherited from org.jfree.chart.title.Title
final public static HorizontalAlignment DEFAULT_HORIZONTAL_ALIGNMENT(Code)(Java Doc)
final public static RectangleInsets DEFAULT_PADDING(Code)(Java Doc)
final public static RectangleEdge DEFAULT_POSITION(Code)(Java Doc)
final public static VerticalAlignment DEFAULT_VERTICAL_ALIGNMENT(Code)(Java Doc)

Methods inherited from org.jfree.chart.title.Title
public void addChangeListener(TitleChangeListener listener)(Code)(Java Doc)
public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
abstract public void draw(Graphics2D g2, Rectangle2D area)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public HorizontalAlignment getHorizontalAlignment()(Code)(Java Doc)
public boolean getNotify()(Code)(Java Doc)
public RectangleEdge getPosition()(Code)(Java Doc)
public VerticalAlignment getVerticalAlignment()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
protected void notifyListeners(TitleChangeEvent event)(Code)(Java Doc)
public void removeChangeListener(TitleChangeListener listener)(Code)(Java Doc)
public void setHorizontalAlignment(HorizontalAlignment alignment)(Code)(Java Doc)
public void setNotify(boolean flag)(Code)(Java Doc)
public void setPosition(RectangleEdge position)(Code)(Java Doc)
public void setVerticalAlignment(VerticalAlignment alignment)(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.