Java Doc for ExtendedGeneralPath.java in  » Graphic-Library » batik » org » apache » batik » ext » awt » geom » 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 » Graphic Library » batik » org.apache.batik.ext.awt.geom 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.batik.ext.awt.geom.ExtendedGeneralPath

ExtendedGeneralPath
public class ExtendedGeneralPath implements ExtendedShape,Cloneable(Code)
The ExtendedGeneralPath class represents a geometric path constructed from straight lines, quadratic and cubic (Bezier) curves and elliptical arc. This class delegates lines and curves to an enclosed GeneralPath. Elliptical arc is implemented using an Arc2D in float precision.

Warning : An elliptical arc may be composed of several path segments. For futher details, see the SVG Appendix F.6
author:
   Thierry Kormann
version:
   $Id: ExtendedGeneralPath.java 511565 2007-02-25 18:04:46Z dvholten $


Inner Class :class EPI implements ExtendedPathIterator

Field Summary
 floatmxmycxcy
    
 intnumSeg
    
 intnumVals
    
protected  GeneralPathpath
     The enclosed general path.
 int[]types
    
 float[]values
    

Constructor Summary
public  ExtendedGeneralPath()
     Constructs a new ExtendedGeneralPath.
public  ExtendedGeneralPath(int rule)
     Constructs a new ExtendedGeneralPath with the specified winding rule to control operations that require the interior of the path to be defined.
public  ExtendedGeneralPath(int rule, int initialCapacity)
     Constructs a new ExtendedGeneralPath object with the specified winding rule and the specified initial capacity to store path coordinates.
public  ExtendedGeneralPath(Shape s)
     Constructs a new ExtendedGeneralPath object from an arbitrary Shape object.

Method Summary
public  voidappend(Shape s, boolean connect)
     Delegates to the enclosed GeneralPath.
public  voidappend(PathIterator pi, boolean connect)
     Delegates to the enclosed GeneralPath.
public  voidappend(ExtendedPathIterator epi, boolean connect)
     Delegates to the enclosed GeneralPath.
public synchronized  voidarcTo(float rx, float ry, float angle, boolean largeArcFlag, boolean sweepFlag, float x, float y)
     Adds an elliptical arc, defined by two radii, an angle from the x-axis, a flag to choose the large arc or not, a flag to indicate if we increase or decrease the angles and the final point of the arc.
Parameters:
  rx - the x radius of the ellipse
Parameters:
  ry - the y radius of the ellipse
Parameters:
  angle - the angle from the x-axis of the currentcoordinate system to the x-axis of the ellipse in degrees.
Parameters:
  largeArcFlag - the large arc flag.
protected  voidcheckMoveTo()
     Checks if previous command was a moveto command, skipping a close command (if present).
public  Objectclone()
     Delegates to the enclosed GeneralPath.
public synchronized  voidclosePath()
     Delegates to the enclosed GeneralPath.
public static  Arc2DcomputeArc(double x0, double y0, double rx, double ry, double angle, boolean largeArcFlag, boolean sweepFlag, double x, double y)
     This constructs an unrotated Arc2D from the SVG specification of an Elliptical arc.
public  booleancontains(double x, double y)
     Delegates to the enclosed GeneralPath.
public  booleancontains(Point2D p)
     Delegates to the enclosed GeneralPath.
public  booleancontains(double x, double y, double w, double h)
     Delegates to the enclosed GeneralPath.
public  booleancontains(Rectangle2D r)
     Delegates to the enclosed GeneralPath.
public synchronized  ShapecreateTransformedShape(AffineTransform at)
     Delegates to the enclosed GeneralPath.
public synchronized  voidcurveTo(float x1, float y1, float x2, float y2, float x3, float y3)
     Delegates to the enclosed GeneralPath.
public synchronized  RectanglegetBounds()
     Delegates to the enclosed GeneralPath.
public synchronized  Rectangle2DgetBounds2D()
     Delegates to the enclosed GeneralPath.
public synchronized  Point2DgetCurrentPoint()
     get the current position or null.
public  ExtendedPathIteratorgetExtendedPathIterator()
     Delegates to the enclosed GeneralPath.
public  PathIteratorgetPathIterator(AffineTransform at)
     Delegates to the enclosed GeneralPath.
public  PathIteratorgetPathIterator(AffineTransform at, double flatness)
     Delegates to the enclosed GeneralPath.
public synchronized  intgetWindingRule()
     Delegates to the enclosed GeneralPath.
public  booleanintersects(double x, double y, double w, double h)
     Delegates to the enclosed GeneralPath.
public  booleanintersects(Rectangle2D r)
     Delegates to the enclosed GeneralPath.
public synchronized  voidlineTo(float x, float y)
     Delegates to the enclosed GeneralPath.
public synchronized  voidmoveTo(float x, float y)
     Delegates to the enclosed GeneralPath.
public synchronized  voidquadTo(float x1, float y1, float x2, float y2)
     Delegates to the enclosed GeneralPath.
public synchronized  voidreset()
     Delegates to the enclosed GeneralPath.
public  voidsetWindingRule(int rule)
     Delegates to the enclosed GeneralPath.
public  voidtransform(AffineTransform at)
     Delegates to the enclosed GeneralPath.

Field Detail
mxmycxcy
float mxmycxcy(Code)



numSeg
int numSeg(Code)



numVals
int numVals(Code)



path
protected GeneralPath path(Code)
The enclosed general path.



types
int[] types(Code)



values
float[] values(Code)




Constructor Detail
ExtendedGeneralPath
public ExtendedGeneralPath()(Code)
Constructs a new ExtendedGeneralPath.



ExtendedGeneralPath
public ExtendedGeneralPath(int rule)(Code)
Constructs a new ExtendedGeneralPath with the specified winding rule to control operations that require the interior of the path to be defined.



ExtendedGeneralPath
public ExtendedGeneralPath(int rule, int initialCapacity)(Code)
Constructs a new ExtendedGeneralPath object with the specified winding rule and the specified initial capacity to store path coordinates.



ExtendedGeneralPath
public ExtendedGeneralPath(Shape s)(Code)
Constructs a new ExtendedGeneralPath object from an arbitrary Shape object.




Method Detail
append
public void append(Shape s, boolean connect)(Code)
Delegates to the enclosed GeneralPath.



append
public void append(PathIterator pi, boolean connect)(Code)
Delegates to the enclosed GeneralPath.



append
public void append(ExtendedPathIterator epi, boolean connect)(Code)
Delegates to the enclosed GeneralPath.



arcTo
public synchronized void arcTo(float rx, float ry, float angle, boolean largeArcFlag, boolean sweepFlag, float x, float y)(Code)
Adds an elliptical arc, defined by two radii, an angle from the x-axis, a flag to choose the large arc or not, a flag to indicate if we increase or decrease the angles and the final point of the arc.
Parameters:
  rx - the x radius of the ellipse
Parameters:
  ry - the y radius of the ellipse
Parameters:
  angle - the angle from the x-axis of the currentcoordinate system to the x-axis of the ellipse in degrees.
Parameters:
  largeArcFlag - the large arc flag. If true the arcspanning less than or equal to 180 degrees is chosen, otherwisethe arc spanning greater than 180 degrees is chosen
Parameters:
  sweepFlag - the sweep flag. If true the line joiningcenter to arc sweeps through decreasing angles otherwise itsweeps through increasing angles
Parameters:
  x - the absolute x coordinate of the final point of the arc.
Parameters:
  y - the absolute y coordinate of the final point of the arc.



checkMoveTo
protected void checkMoveTo()(Code)
Checks if previous command was a moveto command, skipping a close command (if present).



clone
public Object clone()(Code)
Delegates to the enclosed GeneralPath.



closePath
public synchronized void closePath()(Code)
Delegates to the enclosed GeneralPath.



computeArc
public static Arc2D computeArc(double x0, double y0, double rx, double ry, double angle, boolean largeArcFlag, boolean sweepFlag, double x, double y)(Code)
This constructs an unrotated Arc2D from the SVG specification of an Elliptical arc. To get the final arc you need to apply a rotation transform such as: AffineTransform.getRotateInstance (angle, arc.getX()+arc.getWidth()/2, arc.getY()+arc.getHeight()/2);



contains
public boolean contains(double x, double y)(Code)
Delegates to the enclosed GeneralPath.



contains
public boolean contains(Point2D p)(Code)
Delegates to the enclosed GeneralPath.



contains
public boolean contains(double x, double y, double w, double h)(Code)
Delegates to the enclosed GeneralPath.



contains
public boolean contains(Rectangle2D r)(Code)
Delegates to the enclosed GeneralPath.



createTransformedShape
public synchronized Shape createTransformedShape(AffineTransform at)(Code)
Delegates to the enclosed GeneralPath.



curveTo
public synchronized void curveTo(float x1, float y1, float x2, float y2, float x3, float y3)(Code)
Delegates to the enclosed GeneralPath.



getBounds
public synchronized Rectangle getBounds()(Code)
Delegates to the enclosed GeneralPath.



getBounds2D
public synchronized Rectangle2D getBounds2D()(Code)
Delegates to the enclosed GeneralPath.



getCurrentPoint
public synchronized Point2D getCurrentPoint()(Code)
get the current position or null.



getExtendedPathIterator
public ExtendedPathIterator getExtendedPathIterator()(Code)
Delegates to the enclosed GeneralPath.



getPathIterator
public PathIterator getPathIterator(AffineTransform at)(Code)
Delegates to the enclosed GeneralPath.



getPathIterator
public PathIterator getPathIterator(AffineTransform at, double flatness)(Code)
Delegates to the enclosed GeneralPath.



getWindingRule
public synchronized int getWindingRule()(Code)
Delegates to the enclosed GeneralPath.



intersects
public boolean intersects(double x, double y, double w, double h)(Code)
Delegates to the enclosed GeneralPath.



intersects
public boolean intersects(Rectangle2D r)(Code)
Delegates to the enclosed GeneralPath.



lineTo
public synchronized void lineTo(float x, float y)(Code)
Delegates to the enclosed GeneralPath.



moveTo
public synchronized void moveTo(float x, float y)(Code)
Delegates to the enclosed GeneralPath.



quadTo
public synchronized void quadTo(float x1, float y1, float x2, float y2)(Code)
Delegates to the enclosed GeneralPath.



reset
public synchronized void reset()(Code)
Delegates to the enclosed GeneralPath.



setWindingRule
public void setWindingRule(int rule)(Code)
Delegates to the enclosed GeneralPath.



transform
public void transform(AffineTransform at)(Code)
Delegates to the enclosed GeneralPath.



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.