Java Doc for AbstractShapeRenderer.java in  » Database-Client » prefuse » prefuse » render » 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 » Database Client » prefuse » prefuse.render 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   prefuse.render.AbstractShapeRenderer

All known Subclasses:   prefuse.render.AxisRenderer,  prefuse.render.LabelRenderer,  prefuse.render.EdgeRenderer,  prefuse.render.ShapeRenderer,  prefuse.render.PolygonRenderer,
AbstractShapeRenderer
abstract public class AbstractShapeRenderer implements Renderer(Code)

Abstract base class implementation of the Renderer interface for supporting the drawing of basic shapes. Subclasses should override the AbstractShapeRenderer.getRawShape(VisualItem) getRawShape method, which returns the shape to draw. Optionally, subclasses can also override the AbstractShapeRenderer.getTransform(VisualItem) getTransform method to apply a desired AffineTransform to the shape.

NOTE: For more efficient rendering, subclasses should use a single shape instance in memory, and update its parameters on each call to getRawShape, rather than allocating a new Shape object each time. Otherwise, a new object will be allocated every time something needs to be drawn, and then subsequently be arbage collected. This can significantly reduce performance, especially when there are many things to draw.


version:
   1.0
author:
   alan newberger
author:
   jeffrey heer


Field Summary
final public static  intRENDER_TYPE_DRAW
    
final public static  intRENDER_TYPE_DRAW_AND_FILL
    
final public static  intRENDER_TYPE_FILL
    
final public static  intRENDER_TYPE_NONE
    
protected  booleanm_manageBounds
    
protected  AffineTransformm_transform
    


Method Summary
protected  voiddrawShape(Graphics2D g, VisualItem item, Shape shape)
     Draws the specified shape into the provided Graphics context, using stroke and fill color values from the specified VisualItem.
abstract protected  ShapegetRawShape(VisualItem item)
     Return a non-transformed shape for the visual representation of the item.
public  intgetRenderType(VisualItem item)
     Returns a value indicating if a shape is drawn by its outline, by a fill, or both.
public  ShapegetShape(VisualItem item)
     Returns the shape describing the boundary of an item.
protected  BasicStrokegetStroke(VisualItem item)
     Retursn the stroke to use for drawing lines and shape outlines.
protected  AffineTransformgetTransform(VisualItem item)
     Return the graphics space transform applied to this item's shape, if any.
public  booleanlocatePoint(Point2D p, VisualItem item)
    
public  voidrender(Graphics2D g, VisualItem item)
    
public  voidsetBounds(VisualItem item)
    
public  voidsetManageBounds(boolean b)
    
public  voidsetRenderType(int type)
     Sets a value indicating if a shape is drawn by its outline, by a fill, or both.

Field Detail
RENDER_TYPE_DRAW
final public static int RENDER_TYPE_DRAW(Code)



RENDER_TYPE_DRAW_AND_FILL
final public static int RENDER_TYPE_DRAW_AND_FILL(Code)



RENDER_TYPE_FILL
final public static int RENDER_TYPE_FILL(Code)



RENDER_TYPE_NONE
final public static int RENDER_TYPE_NONE(Code)



m_manageBounds
protected boolean m_manageBounds(Code)



m_transform
protected AffineTransform m_transform(Code)





Method Detail
drawShape
protected void drawShape(Graphics2D g, VisualItem item, Shape shape)(Code)
Draws the specified shape into the provided Graphics context, using stroke and fill color values from the specified VisualItem. This method can be called by subclasses in custom rendering routines.



getRawShape
abstract protected Shape getRawShape(VisualItem item)(Code)
Return a non-transformed shape for the visual representation of the item. Subclasses must implement this method.
Parameters:
  item - the VisualItem being drawn the "raw", untransformed shape.



getRenderType
public int getRenderType(VisualItem item)(Code)
Returns a value indicating if a shape is drawn by its outline, by a fill, or both. The default is to draw both. the rendering type



getShape
public Shape getShape(VisualItem item)(Code)
Returns the shape describing the boundary of an item. The shape's coordinates should be in abolute (item-space) coordinates.
Parameters:
  item - the item for which to get the Shape



getStroke
protected BasicStroke getStroke(VisualItem item)(Code)
Retursn the stroke to use for drawing lines and shape outlines. By default returns the value of VisualItem.getStroke . Subclasses can override this method to implement custom stroke assignment, though changing the VisualItem's stroke value is preferred.
Parameters:
  item - the VisualItem the strok to use for drawing lines and shape outlines



getTransform
protected AffineTransform getTransform(VisualItem item)(Code)
Return the graphics space transform applied to this item's shape, if any. Subclasses can implement this method, otherwise it will return null to indicate no transformation is needed.
Parameters:
  item - the VisualItem the graphics space transform, or null if none



locatePoint
public boolean locatePoint(Point2D p, VisualItem item)(Code)

See Also:   prefuse.render.Renderer.locatePoint(java.awt.geom.Point2Dprefuse.visual.VisualItem)



render
public void render(Graphics2D g, VisualItem item)(Code)

See Also:   prefuse.render.Renderer.render(java.awt.Graphics2Dprefuse.visual.VisualItem)



setBounds
public void setBounds(VisualItem item)(Code)

See Also:   prefuse.render.Renderer.setBounds(prefuse.visual.VisualItem)



setManageBounds
public void setManageBounds(boolean b)(Code)



setRenderType
public void setRenderType(int type)(Code)
Sets a value indicating if a shape is drawn by its outline, by a fill, or both. The default is to draw both.
Parameters:
  type - the new rendering type. Should be one ofAbstractShapeRenderer.RENDER_TYPE_NONE, AbstractShapeRenderer.RENDER_TYPE_DRAW,AbstractShapeRenderer.RENDER_TYPE_FILL, or AbstractShapeRenderer.RENDER_TYPE_DRAW_AND_FILL.



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.