You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-commits@xmlgraphics.apache.org by de...@apache.org on 2005/04/02 16:26:09 UTC

cvs commit: xml-batik/sources/org/apache/batik/ext/awt/geom AbstractSegment.java Linear.java SegmentList.java

deweese     2005/04/02 06:26:09

  Modified:    sources/org/apache/batik/bridge ScriptingEnvironment.java
               sources/org/apache/batik/dom/svg SVGPathSupport.java
               sources/org/apache/batik/ext/awt/g2d GraphicContext.java
               sources/org/apache/batik/ext/awt/geom AbstractSegment.java
                        Linear.java SegmentList.java
  Log:
  JavaDoc cleanup.
  
  Revision  Changes    Path
  1.49      +6 -4      xml-batik/sources/org/apache/batik/bridge/ScriptingEnvironment.java
  
  Index: ScriptingEnvironment.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/ScriptingEnvironment.java,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- ScriptingEnvironment.java	12 Feb 2005 01:48:23 -0000	1.48
  +++ ScriptingEnvironment.java	2 Apr 2005 14:26:09 -0000	1.49
  @@ -1020,18 +1020,20 @@
           }
   
   
  -        public void postURL(String uri, String content, URLResponseHandler h) {
  +        public void postURL(String uri, String content, 
  +                            org.apache.batik.script.Window.URLResponseHandler h) {
               postURL(uri, content, h, "text/plain", null);
           }
   
  -        public void postURL(String uri, String content, URLResponseHandler h, 
  +        public void postURL(String uri, String content, 
  +                            org.apache.batik.script.Window.URLResponseHandler h, 
                        String mimeType) {
               postURL(uri, content, h, mimeType, null);
           }
   
           public void postURL(final String uri, 
                               final String content, 
  -                            final URLResponseHandler h, 
  +                            final org.apache.batik.script.Window.URLResponseHandler h, 
                               final String mimeType, 
                               final String fEnc) {
               Thread t = new Thread() {
  
  
  
  1.3       +3 -3      xml-batik/sources/org/apache/batik/dom/svg/SVGPathSupport.java
  
  Index: SVGPathSupport.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/dom/svg/SVGPathSupport.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SVGPathSupport.java	27 Mar 2005 08:58:32 -0000	1.2
  +++ SVGPathSupport.java	2 Apr 2005 14:26:09 -0000	1.3
  @@ -33,7 +33,7 @@
   public class SVGPathSupport {
   
       /**
  -     * To implement {@link org.w3c.dom.svg.SVGPath#getTotalLength()}.
  +     * To implement {@link org.w3c.dom.svg.SVGPathElement#getTotalLength()}.
        */
       public static float getTotalLength(SVGOMPathElement path) {
           SVGPathContext pathCtx = (SVGPathContext)path.getSVGContext();
  @@ -42,7 +42,7 @@
   
   
       /**
  -     * To implement {@link org.w3c.dom.svg.SVGPath#getPointAtLength()}.
  +     * To implement {@link org.w3c.dom.svg.SVGPathElement#getPointAtLength(float)}.
        */
       public static SVGPoint getPointAtLength(final SVGOMPathElement path,
                                               final float distance) {
  
  
  
  1.10      +3 -3      xml-batik/sources/org/apache/batik/ext/awt/g2d/GraphicContext.java
  
  Index: GraphicContext.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/ext/awt/g2d/GraphicContext.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- GraphicContext.java	2 Apr 2005 12:58:17 -0000	1.9
  +++ GraphicContext.java	2 Apr 2005 14:26:09 -0000	1.10
  @@ -73,7 +73,7 @@
        * This is for use by the class clients. The client should
        * validate the stack every time it starts using it. The
        * stack becomes invalid when a new transform is set.
  -     * @see #invalidatTransformStack
  +     * @see #invalidateTransformStack()
        * @see #isTransformStackValid
        * @see #setTransform
        */
  @@ -710,7 +710,7 @@
        * since it was last read. Only validateTransformStack
        * can override this memento
        */
  -    void invalidateTransformStack(){
  +    protected void invalidateTransformStack(){
           transformStack.removeAllElements();
           transformStackValid = false;
       }
  
  
  
  1.3       +2 -2      xml-batik/sources/org/apache/batik/ext/awt/geom/AbstractSegment.java
  
  Index: AbstractSegment.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/ext/awt/geom/AbstractSegment.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AbstractSegment.java	27 Mar 2005 08:58:32 -0000	1.2
  +++ AbstractSegment.java	2 Apr 2005 14:26:09 -0000	1.3
  @@ -35,7 +35,7 @@
   
       protected abstract int findRoots(double y, double [] roots);
   
  -    public SplitResults split(double y) {
  +    public Segment.SplitResults split(double y) {
           double [] roots = { 0, 0, 0 };
           int numSol = findRoots(y, roots);
           if (numSol == 0) return null; // No split
  
  
  
  1.4       +4 -4      xml-batik/sources/org/apache/batik/ext/awt/geom/Linear.java
  
  Index: Linear.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/ext/awt/geom/Linear.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Linear.java	27 Mar 2005 08:58:32 -0000	1.3
  +++ Linear.java	2 Apr 2005 14:26:09 -0000	1.4
  @@ -100,7 +100,7 @@
           return new Point2D.Double(x, y);
       }
   
  -    public SplitResults split(double y) {
  +    public Segment.SplitResults split(double y) {
           if ((y == p1.y) || (y == p2.y)) return null;
           if ((y <= p1.y) && (y <= p2.y)) return null;
           if ((y >= p1.y) && (y >= p2.y)) return null;
  @@ -114,8 +114,8 @@
           Segment [] t1 = {getSegment(t,1)};
   
           if (p2.y < y)
  -            return new SplitResults(t0, t1);
  -        return new SplitResults(t1, t0);
  +            return new Segment.SplitResults(t0, t1);
  +        return new Segment.SplitResults(t1, t0);
       }
   
       public Segment getSegment(double t0, double t1) {
  
  
  
  1.4       +4 -4      xml-batik/sources/org/apache/batik/ext/awt/geom/SegmentList.java
  
  Index: SegmentList.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/ext/awt/geom/SegmentList.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SegmentList.java	27 Mar 2005 08:58:32 -0000	1.3
  +++ SegmentList.java	2 Apr 2005 14:26:09 -0000	1.4
  @@ -103,7 +103,7 @@
   
       public int size() { return segments.size(); }
   
  -    public SplitResults split(double y) {
  +    public SegmentList.SplitResults split(double y) {
           Iterator iter = segments.iterator();
           SegmentList above = null;
           SegmentList below = null;
  @@ -139,10 +139,10 @@
                   below.add(resBelow[i]);
               }
           }
  -        return new SplitResults(above, below);
  +        return new SegmentList.SplitResults(above, below);
       }
   
  -    public class SplitResults {
  +    public static class SplitResults {
           SegmentList above, below;
           public SplitResults(SegmentList above, SegmentList below) {
               this.above = above;