/[classpath]/classpath/java/awt/geom/GeneralPath.java
ViewVC logotype

Diff of /classpath/java/awt/geom/GeneralPath.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by smarothy, Sun Nov 7 17:18:07 2004 UTC revision 1.12 by tromey, Tue Apr 26 18:56:18 2005 UTC
# Line 88  public final class GeneralPath implement Line 88  public final class GeneralPath implement
88    /** A big number, but not so big it can't survive a few float operations */    /** A big number, but not so big it can't survive a few float operations */
89    private static final double BIG_VALUE = java.lang.Double.MAX_VALUE / 10.0;    private static final double BIG_VALUE = java.lang.Double.MAX_VALUE / 10.0;
90    
91    /** The winding rule. */    /** The winding rule.
92    private int rule;     * This is package-private to avoid an accessor method.
93       */
94      int rule;
95    
96    /**    /**
97     * The path type in points. Note that xpoints[index] and ypoints[index] maps     * The path type in points. Note that xpoints[index] and ypoints[index] maps
98     * to types[index]; the control points of quad and cubic paths map as     * to types[index]; the control points of quad and cubic paths map as
99     * well but are ignored.     * well but are ignored.
100       * This is package-private to avoid an accessor method.
101     */     */
102    private byte[] types;    byte[] types;
103    
104    /**    /**
105     * The list of all points seen. Since you can only append floats, it makes     * The list of all points seen. Since you can only append floats, it makes
# Line 104  public final class GeneralPath implement Line 107  public final class GeneralPath implement
107     * allow a general path of double precision points.     * allow a general path of double precision points.
108     * Note: Storing x and y coords seperately makes for a slower transforms,     * Note: Storing x and y coords seperately makes for a slower transforms,
109     * But it speeds up and simplifies box-intersection checking a lot.     * But it speeds up and simplifies box-intersection checking a lot.
110       * These are package-private to avoid accessor methods.
111     */     */
112    private float[] xpoints;    float[] xpoints;
113    private float[] ypoints;    float[] ypoints;
114    
115    /** The index of the most recent moveto point, or null. */    /** The index of the most recent moveto point, or null. */
116    private int subpath = -1;    private int subpath = -1;
117    
118    /** The next available index into points. */    /** The next available index into points.
119    private int index;     * This is package-private to avoid an accessor method.
120       */
121      int index;
122    
123    /**    /**
124     * Constructs a GeneralPath with the default (NON_ZERO)     * Constructs a GeneralPath with the default (NON_ZERO)
# Line 534  public final class GeneralPath implement Line 540  public final class GeneralPath implement
540    
541      /**      /**
542       * The GeneralPath whose segments are being iterated.       * The GeneralPath whose segments are being iterated.
543         * This is package-private to avoid an accessor method.
544       */       */
545      private final GeneralPath path;      final GeneralPath path;
546    
547      /**      /**
548       * The affine transformation used to transform coordinates.       * The affine transformation used to transform coordinates.

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26