[brailleblaster] [brailleblaster.newdesign] push by RandomCh...@xxxxxxxxx - Removed on 2013-07-25 19:19 GMT

  • From: brailleblaster@xxxxxxxxxxxxxx
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Thu, 25 Jul 2013 19:19:44 +0000

Revision: ff7a944e77a0
Branch:   default
Author:   cmyers@xxxxxxxxxxxxxxxxx
Date:     Thu Jul 25 13:25:36 2013
Log:      Removed
http://code.google.com/p/brailleblaster/source/detail?r=ff7a944e77a0&repo=newdesign

Deleted:
 /src/main/org/brailleblaster/imagedescriptor/ImageDescriptor.java
Modified:
 /src/main/org/brailleblaster/imagedescriber/ImageDescriber.java

=======================================
--- /src/main/org/brailleblaster/imagedescriptor/ImageDescriptor.java Thu Jul 25 07:52:19 2013
+++ /dev/null
@@ -1,71 +0,0 @@
-/* BrailleBlaster Braille Transcription Application
-  *
-  * Copyright (C) 2010, 2012
-  * ViewPlus Technologies, Inc. www.viewplus.com
-  * and
-  * Abilitiessoft, Inc. www.abilitiessoft.com
-  * All rights reserved
-  *
-  * This file may contain code borrowed from files produced by various
-  * Java development teams. These are gratefully acknoledged.
-  *
-  * This file is free software; you can redistribute it and/or modify it
-  * under the terms of the Apache 2.0 License, as given at
-  * http://www.apache.org/licenses/
-  *
-  * This file is distributed in the hope that it will be useful, but
-  * WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
-  * See the Apache 2.0 License for more details.
-  *
-  * You should have received a copy of the Apache 2.0 License along with
-  * this program; see the file LICENSE.txt
-  * If not, see
-  * http://www.apache.org/licenses/
-  *
-  * Maintained by John J. Boyer john.boyer@xxxxxxxxxxxxxxxxx
-*/
-
-package org.brailleblaster.imagedescriptor;
-
-import nu.xom.Element;
-
-import org.brailleblaster.document.BBDocument;
-
-public class ImageDescriptor {
-
-       // The document with images we want to add descriptions to.
-       private BBDocument doc;
-       // Current image element.
-       private Element curImgElement;
-       // Root element.
-       private Element rootElement;
-
- ///////////////////////////////////////////////////////////////////////////
-       // Call Image Descriptor with this Constructor to initialize everything.
-       public ImageDescriptor(BBDocument document){
-
-               // Init variables.
-               doc = document;
-               rootElement = doc.getRootElement();
-               curImgElement = rootElement;
-
-       } // ImageDescriptor(BBDocument document)
-
- ///////////////////////////////////////////////////////////////////////////
-       // Searches forward in the xml tree for an element named <img>
-       public Element NextImageElement()
-       {
-               return null;
-
-       } // NextImageElement()
-
- ///////////////////////////////////////////////////////////////////////////
-       // Searches backward in the xml tree for an element named <img>
-       public Element PrevImageElement()
-       {
-               return null;
-
-       } // PrevImageElement()
-
-} // public class ImageDescriptor {
=======================================
--- /src/main/org/brailleblaster/imagedescriber/ImageDescriber.java Thu Jul 25 13:17:21 2013 +++ /src/main/org/brailleblaster/imagedescriber/ImageDescriber.java Thu Jul 25 13:25:36 2013
@@ -84,8 +84,14 @@
        public void FillImgList(Element e)
        {
                // Is this element an <img>?
+               if( e.getLocalName().compareTo("img") == 0 ) {
+                       imgList.add(e);
+                       System.out.println( e.getLocalName() );
+               }

-               String elementName = e.getLocalName();
+               // Get children, too.
+               if( e.getChildCount() > 0 )
+                       FillImgList(e);

        } // FillImgList(Element e)


Other related posts:

  • » [brailleblaster] [brailleblaster.newdesign] push by RandomCh...@xxxxxxxxx - Removed on 2013-07-25 19:19 GMT - brailleblaster