Mercurial > hg > digilib-old
annotate common/src/main/java/digilib/io/SVGFile.java @ 1111:0a01d5cc66fe
center zoom area (not yet working for text search + highlight)
| author | hertzhaft |
|---|---|
| date | Mon, 29 Oct 2012 21:25:07 +0100 |
| parents | 7779b37d1d05 |
| children |
| rev | line source |
|---|---|
| 188 | 1 /* SVGFile -- Class for SVG files |
| 2 | |
| 3 Digital Image Library servlet components | |
| 4 | |
| 5 Copyright (C) 2003 Robert Casties (robcast@mail.berlios.de) | |
| 6 | |
| 7 This program is free software; you can redistribute it and/or modify it | |
| 8 under the terms of the GNU General Public License as published by the | |
| 9 Free Software Foundation; either version 2 of the License, or (at your | |
| 10 option) any later version. | |
| 11 | |
| 12 Please read license.txt for the full details. A copy of the GPL | |
| 13 may be found at http://www.gnu.org/copyleft/lgpl.html | |
| 14 | |
| 15 You should have received a copy of the GNU General Public License | |
| 16 along with this program; if not, write to the Free Software | |
| 17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 18 | |
| 19 * Created on 25.11.2003 by casties | |
| 20 * | |
| 21 */ | |
| 22 package digilib.io; | |
| 23 | |
| 24 import java.io.File; | |
| 25 | |
| 563 | 26 import digilib.io.FileOps.FileClass; |
| 27 | |
| 188 | 28 /** Class for SVG files. |
| 29 * | |
| 30 * @author casties | |
| 31 * | |
| 32 */ | |
|
576
dad720e9b12b
try: DocuDirent as interface, ImageFile inherits from ImageInput and implements DocuDirent
robcast
parents:
574
diff
changeset
|
33 public class SVGFile extends DocuDirentImpl { |
| 188 | 34 /** this is a text file */ |
| 563 | 35 protected static FileClass fileClass = FileClass.SVG; |
| 188 | 36 /** our File instance */ |
| 37 protected File file = null; | |
| 38 | |
| 39 /** Constructor taking a file. | |
| 40 * | |
| 41 * @param f | |
| 42 */ | |
| 43 public SVGFile(File f) { | |
| 44 this.file = f; | |
| 45 } | |
| 46 | |
| 47 /* (non-Javadoc) | |
| 48 * @see digilib.io.DocuDirent#checkMeta() | |
| 49 */ | |
| 50 public void checkMeta() { | |
| 51 // Auto-generated method stub | |
| 52 | |
| 53 } | |
| 54 | |
| 55 /* (non-Javadoc) | |
| 56 * @see digilib.io.DocuDirent#getFile() | |
| 57 */ | |
| 582 | 58 public File getFile() { |
| 188 | 59 return file; |
| 60 } | |
| 61 | |
| 62 } |
