|
JHotDraw 7.5.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.samples.odg.io.ODGStylesReader
public class ODGStylesReader
ODGStylesReader reads an ODG <document-styles> element, and creates a map of AttributeKey's and values.
Constructor Summary | |
---|---|
ODGStylesReader()
Creates a new instance. |
Method Summary | |
---|---|
java.util.Map<AttributeKey,java.lang.Object> |
getAttributes(java.lang.String styleName,
java.lang.String familyName)
|
void |
read(java.io.File file)
Reads a <document-styles> element from the specified XML file. |
void |
read(java.io.InputStream in)
Reads a <document-styles> element from the specified input stream. |
void |
read(IXMLElement root)
Reads a <document-styles> element from the specified XML element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ODGStylesReader()
Method Detail |
---|
public java.util.Map<AttributeKey,java.lang.Object> getAttributes(java.lang.String styleName, java.lang.String familyName)
public void read(java.io.File file) throws java.io.IOException
file
- A XML file with a <document> root element
or with a <document-styles> root element.
java.io.IOException
public void read(java.io.InputStream in) throws java.io.IOException
in
- A input stream with a <document> root element
or with a <document-styles> root element.
java.io.IOException
public void read(IXMLElement root) throws java.io.IOException
root
- A <document> element or a
<document-styles> element.
java.io.IOException
|
Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |