|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.dom.DOMImage
public class DOMImage
DOMImage represents an image within the source window document object model
Field Summary | |
---|---|
static String |
CCPATH_ATTR
CCPATH for the image |
static boolean |
DEBUG
|
DOMFrysk |
dom
|
DOMImage |
image
|
static String |
IMAGE_NODE
|
static String |
NAME_ATTR
|
static String |
PATH_ATTR
|
Constructor Summary | |
---|---|
DOMImage(Element data)
Creates a new DOMImage from the given Element. |
|
DOMImage(String name,
String path,
String ccpath,
Element rootElement)
Creates a new DOMImage |
Method Summary | |
---|---|
void |
addSource(DOMSource source)
Adds the given DOMSource as a source in this image |
DOMSource |
addSource(Proc proc,
SourceLocation line,
DOMFrysk dom)
adds a source element under this DOMImage |
void |
addSource(String source_name,
String path,
String[] incpaths)
adds a source element under this image |
void |
clearSourceMap()
Clears this DOMImage's HashMap cache after DOM work has been completed after a particular segment of operation. |
String |
getCCPath()
returns the name of the image |
String |
getName()
gets the name of the image |
DOMSource |
getSource(String name)
Attempts to fetch an image of the given name from the DOM. |
Iterator |
getSources()
gets an iterator pointing to all of the sources belonging to this image |
void |
setCCPath(String image_name)
Sets the CCPATH of the current image |
void |
setName(String name)
sets the name of the image |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CCPATH_ATTR
public static final String IMAGE_NODE
public static final String NAME_ATTR
public static final String PATH_ATTR
public static final boolean DEBUG
public DOMFrysk dom
public DOMImage image
Constructor Detail |
---|
public DOMImage(Element data)
data
- A JDOM Element of name "image"public DOMImage(String name, String path, String ccpath, Element rootElement)
name
- The name of the imagepath
- the path to the imageccpath
- The CCPATH for the imageMethod Detail |
---|
public void addSource(String source_name, String path, String[] incpaths)
source_name
- path
- public DOMSource addSource(Proc proc, SourceLocation line, DOMFrysk dom) throws IOException
proc
- - the proc image for this sourceframe
- - the frame for this source
IOException
public void addSource(DOMSource source)
source
- The source to addpublic String getName()
public void setCCPath(String image_name)
image_name
- is the image for which this CCPATH is intendedpublic void setName(String name)
name
- what the name of the image will bepublic String getCCPath()
public Iterator getSources()
public DOMSource getSource(String name)
name
- is the name of the image to look for
public void clearSourceMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |