Java Doc for BasicStroke.java in  » Apache-Harmony-Java-SE » java-package » java » awt » 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 » Apache Harmony Java SE » java package » java.awt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.awt.BasicStroke

BasicStroke
public class BasicStroke implements Stroke(Code)

Inner Class :class Dasher
Inner Class :abstract static class DashIterator
Inner Class :static class BufferedPath

Field Summary
final public static  intCAP_BUTT
    
final public static  intCAP_ROUND
    
final public static  intCAP_SQUARE
    
final static  doubleCORNER_ANGLE
    
final static  doubleCORNER_ZERO
    
final static  doubleCUBIC_ARC
    
final static  doubleCURVE_DELTA
    
final public static  intJOIN_BEVEL
    
final public static  intJOIN_MITER
    
final public static  intJOIN_ROUND
    
final static  intMAX_LEVEL
    
 intcap
    
 booleancheckMove
    
 doublecornerDelta
    
 doublecurveDelta
    
 floatdash
    
 floatdashPhase
    
 Dasherdasher
    
 BufferedPathdstlprpsp
    
 doublefmxfmy
    
 booleanisFirst
    
 booleanisMove
    
 intjoin
    
 floatmiterLimit
    
 doublemxmycxcy
    
 doublescxscysmxsmy
    
 doublew2
    
 floatwidth
    
 doublezeroDelta
    

Constructor Summary
public  BasicStroke()
    
public  BasicStroke(float width, int cap, int join, float miterLimit, float[] dash, float dashPhase)
    
public  BasicStroke(float width, int cap, int join, float miterLimit)
    
public  BasicStroke(float width, int cap, int join)
    
public  BasicStroke(float width)
    

Method Summary
 voidaddCap(BufferedPath p, double x0, double y0, double x2, double y2)
    
 voidaddCubic(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4)
    
 voidaddDashCubic(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4)
    
 voidaddDashLine(double x1, double y1, double x2, double y2)
    
 voidaddDashQuad(double x1, double y1, double x2, double y2, double x3, double y3)
    
 voidaddJoin(BufferedPath p, double x0, double y0, double x2, double y2, boolean isLeft)
    
 voidaddLine(double x1, double y1, double x2, double y2, boolean zero)
    
 voidaddQuad(double x1, double y1, double x2, double y2, double x3, double y3)
    
 voidaddRoundJoin(BufferedPath p, double x0, double y0, double x2, double y2, boolean isLeft)
    
 voidaddSubCubic(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, int level)
    
 voidaddSubQuad(double x1, double y1, double x2, double y2, double x3, double y3, int level)
    
 voidcloseDashedShape()
    
 voidcloseSolidShape()
    
 voidcreateDashedShape(PathIterator p)
    
 voidcreateSolidShape(PathIterator p)
    
public  ShapecreateStrokedShape(Shape s)
    
public  booleanequals(Object obj)
    
 doublegetCornerDelta(double width)
    
 doublegetCurveDelta(double width)
    
public  float[]getDashArray()
    
public  floatgetDashPhase()
    
public  intgetEndCap()
    
public  intgetLineJoin()
    
public  floatgetLineWidth()
    
public  floatgetMiterLimit()
    
 doublegetZeroDelta(double width)
    
public  inthashCode()
    

Field Detail
CAP_BUTT
final public static int CAP_BUTT(Code)



CAP_ROUND
final public static int CAP_ROUND(Code)



CAP_SQUARE
final public static int CAP_SQUARE(Code)



CORNER_ANGLE
final static double CORNER_ANGLE(Code)



CORNER_ZERO
final static double CORNER_ZERO(Code)



CUBIC_ARC
final static double CUBIC_ARC(Code)



CURVE_DELTA
final static double CURVE_DELTA(Code)



JOIN_BEVEL
final public static int JOIN_BEVEL(Code)



JOIN_MITER
final public static int JOIN_MITER(Code)



JOIN_ROUND
final public static int JOIN_ROUND(Code)



MAX_LEVEL
final static int MAX_LEVEL(Code)
Constants for calculating



cap
int cap(Code)
Stroke cap type



checkMove
boolean checkMove(Code)



cornerDelta
double cornerDelta(Code)



curveDelta
double curveDelta(Code)
The temporary pre-calculated values



dash
float dash(Code)
Stroke dashes array



dashPhase
float dashPhase(Code)
Stroke dash phase



dasher
Dasher dasher(Code)
Stroke dasher class



dstlprpsp
BufferedPath dstlprpsp(Code)
The temporary and destination work paths



fmxfmy
double fmxfmy(Code)



isFirst
boolean isFirst(Code)



isMove
boolean isMove(Code)
The temporary indicators



join
int join(Code)
Stroke join type



miterLimit
float miterLimit(Code)
Stroke miter limit



mxmycxcy
double mxmycxcy(Code)



scxscysmxsmy
double scxscysmxsmy(Code)



w2
double w2(Code)



width
float width(Code)
Stroke width



zeroDelta
double zeroDelta(Code)




Constructor Detail
BasicStroke
public BasicStroke()(Code)



BasicStroke
public BasicStroke(float width, int cap, int join, float miterLimit, float[] dash, float dashPhase)(Code)



BasicStroke
public BasicStroke(float width, int cap, int join, float miterLimit)(Code)



BasicStroke
public BasicStroke(float width, int cap, int join)(Code)



BasicStroke
public BasicStroke(float width)(Code)




Method Detail
addCap
void addCap(BufferedPath p, double x0, double y0, double x2, double y2)(Code)
Adds cap to the work path
Parameters:
  p - - the BufferedPath object of work path
Parameters:
  x0 - - the x coordinate of the source path
Parameters:
  y0 - - the y coordinate on the source path
Parameters:
  x2 - - the x coordinate of the next point on the work path
Parameters:
  y2 - - the y coordinate of the next point on the work path



addCubic
void addCubic(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4)(Code)
Adds solid cubic segment to the work path
Parameters:
  x1 - - the x coordinate of the first control point
Parameters:
  y1 - - the y coordinate of the first control point
Parameters:
  x2 - - the x coordinate of the second control point
Parameters:
  y2 - - the y coordinate of the second control point
Parameters:
  x3 - - the x coordinate of the third control point
Parameters:
  y3 - - the y coordinate of the third control point
Parameters:
  x4 - - the x coordinate of the fours control point
Parameters:
  y4 - - the y coordinate of the fours control point



addDashCubic
void addDashCubic(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4)(Code)
Adds dashed cubic segment to the work path
Parameters:
  x1 - - the x coordinate of the first control point
Parameters:
  y1 - - the y coordinate of the first control point
Parameters:
  x2 - - the x coordinate of the second control point
Parameters:
  y2 - - the y coordinate of the second control point
Parameters:
  x3 - - the x coordinate of the third control point
Parameters:
  y3 - - the y coordinate of the third control point
Parameters:
  x4 - - the x coordinate of the fours control point
Parameters:
  y4 - - the y coordinate of the fours control point



addDashLine
void addDashLine(double x1, double y1, double x2, double y2)(Code)
Adds dashed line segment to the work path
Parameters:
  x1 - - the x coordinate of the start line point
Parameters:
  y1 - - the y coordinate of the start line point
Parameters:
  x2 - - the x coordinate of the end line point
Parameters:
  y2 - - the y coordinate of the end line point



addDashQuad
void addDashQuad(double x1, double y1, double x2, double y2, double x3, double y3)(Code)
Adds dashed quad segment to the work path
Parameters:
  x1 - - the x coordinate of the first control point
Parameters:
  y1 - - the y coordinate of the first control point
Parameters:
  x2 - - the x coordinate of the second control point
Parameters:
  y2 - - the y coordinate of the second control point
Parameters:
  x3 - - the x coordinate of the third control point
Parameters:
  y3 - - the y coordinate of the third control point



addJoin
void addJoin(BufferedPath p, double x0, double y0, double x2, double y2, boolean isLeft)(Code)
Adds bevel and miter join to the work path
Parameters:
  p - - the BufferedPath object of work path
Parameters:
  x0 - - the x coordinate of the source path
Parameters:
  y0 - - the y coordinate on the source path
Parameters:
  x2 - - the x coordinate of the next point on the work path
Parameters:
  y2 - - the y coordinate of the next point on the work path
Parameters:
  isLeft - - the orientation of work path, true if work path lies to the left from source path, false otherwise



addLine
void addLine(double x1, double y1, double x2, double y2, boolean zero)(Code)
Adds solid line segment to the work path
Parameters:
  x1 - - the x coordinate of the start line point
Parameters:
  y1 - - the y coordinate of the start line point
Parameters:
  x2 - - the x coordinate of the end line point
Parameters:
  y2 - - the y coordinate of the end line point
Parameters:
  zero - - if true it's allowable to add zero length line segment



addQuad
void addQuad(double x1, double y1, double x2, double y2, double x3, double y3)(Code)
Adds solid quad segment to the work path
Parameters:
  x1 - - the x coordinate of the first control point
Parameters:
  y1 - - the y coordinate of the first control point
Parameters:
  x2 - - the x coordinate of the second control point
Parameters:
  y2 - - the y coordinate of the second control point
Parameters:
  x3 - - the x coordinate of the third control point
Parameters:
  y3 - - the y coordinate of the third control point



addRoundJoin
void addRoundJoin(BufferedPath p, double x0, double y0, double x2, double y2, boolean isLeft)(Code)
Adds round join to the work path
Parameters:
  p - - the BufferedPath object of work path
Parameters:
  x0 - - the x coordinate of the source path
Parameters:
  y0 - - the y coordinate on the source path
Parameters:
  x2 - - the x coordinate of the next point on the work path
Parameters:
  y2 - - the y coordinate of the next point on the work path
Parameters:
  isLeft - - the orientation of work path, true if work path lies to the left from source path, false otherwise



addSubCubic
void addSubCubic(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, int level)(Code)
Subdivides solid cubic curve to make outline for source quad segment and adds it to work path
Parameters:
  x1 - - the x coordinate of the first control point
Parameters:
  y1 - - the y coordinate of the first control point
Parameters:
  x2 - - the x coordinate of the second control point
Parameters:
  y2 - - the y coordinate of the second control point
Parameters:
  x3 - - the x coordinate of the third control point
Parameters:
  y3 - - the y coordinate of the third control point
Parameters:
  x4 - - the x coordinate of the fours control point
Parameters:
  y4 - - the y coordinate of the fours control point
Parameters:
  level - - the maximum level of subdivision deepness



addSubQuad
void addSubQuad(double x1, double y1, double x2, double y2, double x3, double y3, int level)(Code)
Subdivides solid quad curve to make outline for source quad segment and adds it to work path
Parameters:
  x1 - - the x coordinate of the first control point
Parameters:
  y1 - - the y coordinate of the first control point
Parameters:
  x2 - - the x coordinate of the second control point
Parameters:
  y2 - - the y coordinate of the second control point
Parameters:
  x3 - - the x coordinate of the third control point
Parameters:
  y3 - - the y coordinate of the third control point
Parameters:
  level - - the maximum level of subdivision deepness



closeDashedShape
void closeDashedShape()(Code)
Closes dashed shape path



closeSolidShape
void closeSolidShape()(Code)
Closes solid shape path



createDashedShape
void createDashedShape(PathIterator p)(Code)
Generates dashed stroked shape
Parameters:
  p - - the PathIterator of source shape



createSolidShape
void createSolidShape(PathIterator p)(Code)
Generates solid stroked shape without dash
Parameters:
  p - - the PathIterator of source shape



createStrokedShape
public Shape createStrokedShape(Shape s)(Code)



equals
public boolean equals(Object obj)(Code)



getCornerDelta
double getCornerDelta(double width)(Code)
Calculates value to detect small angle



getCurveDelta
double getCurveDelta(double width)(Code)
Calculates allowable curve derivation



getDashArray
public float[] getDashArray()(Code)



getDashPhase
public float getDashPhase()(Code)



getEndCap
public int getEndCap()(Code)



getLineJoin
public int getLineJoin()(Code)



getLineWidth
public float getLineWidth()(Code)



getMiterLimit
public float getMiterLimit()(Code)



getZeroDelta
double getZeroDelta(double width)(Code)
Calculates value to detect zero angle



hashCode
public int hashCode()(Code)



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.