Revision: 643298d63615 Branch: default Author: cmyers@xxxxxxxxxxxxxxxxx Date: Wed Jul 24 14:37:46 2013 Log: Img Desc Design http://code.google.com/p/brailleblaster/source/detail?r=643298d63615&repo=newdesign Added: /src/main/org/brailleblaster/imagedescriptor/ImageDescriptor.java ======================================= --- /dev/null+++ /src/main/org/brailleblaster/imagedescriptor/ImageDescriptor.java Wed Jul 24 14:37:46 2013
@@ -0,0 +1,71 @@ +/* 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.wordprocessor.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 {