|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.text.SimpleAttributeSet
com.lightdev.app.shtm.AttributeMapper
public class AttributeMapper
Maps HTML and CSS attributes to their equivalents to compensate discrepancies in HTML and CSS rendering of various different view environments.
Introduced in stage 5 this class only contains hard wired fixes to certain discrepancies. Should there come up an increased number of necessary fixes in future stages, a more generic way of mapping (such as through a Hashtable of from/to values), etc. will be done.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.swing.text.AttributeSet |
---|
javax.swing.text.AttributeSet.CharacterAttribute, javax.swing.text.AttributeSet.ColorAttribute, javax.swing.text.AttributeSet.FontAttribute, javax.swing.text.AttributeSet.ParagraphAttribute |
Field Summary | |
---|---|
static int |
toHTML
|
static int |
toJava
|
Fields inherited from class javax.swing.text.SimpleAttributeSet |
---|
EMPTY |
Fields inherited from interface javax.swing.text.AttributeSet |
---|
NameAttribute, ResolveAttribute |
Constructor Summary | |
---|---|
AttributeMapper()
|
|
AttributeMapper(javax.swing.text.AttributeSet a)
|
Method Summary | |
---|---|
javax.swing.text.AttributeSet |
getMappedAttributes(int direction)
|
Methods inherited from class javax.swing.text.SimpleAttributeSet |
---|
addAttribute, addAttributes, clone, containsAttribute, containsAttributes, copyAttributes, equals, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, hashCode, isDefined, isEmpty, isEqual, removeAttribute, removeAttributes, removeAttributes, setResolveParent, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int toHTML
public static final int toJava
Constructor Detail |
---|
public AttributeMapper()
public AttributeMapper(javax.swing.text.AttributeSet a)
Method Detail |
---|
public javax.swing.text.AttributeSet getMappedAttributes(int direction)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |