|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.text.rtf.RTFReader.AttributeTrackingDestination javax.swing.text.rtf.RTFReader.StylesheetDestination.StyleDefiningDestination
This subclass handles an individual style
Field Summary | |
(package private) boolean |
additive
|
(package private) int |
basedOn
|
(package private) MutableAttributeSet |
characterAttributes
This is the "chr" element of parserState, cached for more efficient use |
(package private) boolean |
characterStyle
|
(package private) boolean |
hidden
|
(package private) int |
nextStyle
|
int |
number
|
(package private) MutableAttributeSet |
paragraphAttributes
This is the "pgf" element of parserState, cached for more efficient use |
(package private) Style |
realizedStyle
|
(package private) MutableAttributeSet |
sectionAttributes
This is the "sec" element of parserState, cached for more efficient use |
(package private) boolean |
sectionStyle
|
String |
styleName
|
(package private) int |
STYLENUMBER_NONE
|
Constructor Summary | |
RTFReader.StylesheetDestination.StyleDefiningDestination()
|
Method Summary | |
void |
begingroup()
|
void |
close()
|
(package private) MutableAttributeSet |
currentParagraphAttributes()
Calculates the current paragraph attributes (with keys as given in StyleConstants) from the current parser state. |
AttributeSet |
currentSectionAttributes()
Calculates the current section attributes from the current parser state. |
(package private) MutableAttributeSet |
currentTextAttributes()
Calculates the current text (character) attributes in a form suitable for SwingText from the current parser state. |
void |
endgroup(Dictionary oldState)
|
void |
handleBinaryBlob(byte[] data)
|
boolean |
handleKeyword(String keyword)
|
boolean |
handleKeyword(String keyword,
int parameter)
|
void |
handleText(String text)
|
Style |
realize()
|
protected void |
resetCharacterAttributes()
Resets the filter's internal notion of the current character attributes to their default values. |
protected void |
resetParagraphAttributes()
Resets the filter's internal notion of the current paragraph's attributes to their default values. |
protected void |
resetSectionAttributes()
Resets the filter's internal notion of the current section's attributes to their default values. |
protected MutableAttributeSet |
rootCharacterAttributes()
Returns a new MutableAttributeSet containing the default character attributes |
protected MutableAttributeSet |
rootParagraphAttributes()
Returns a new MutableAttributeSet containing the default paragraph attributes |
protected MutableAttributeSet |
rootSectionAttributes()
Returns a new MutableAttributeSet containing the default section attributes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
final int STYLENUMBER_NONE
boolean additive
boolean characterStyle
boolean sectionStyle
public String styleName
public int number
int basedOn
int nextStyle
boolean hidden
Style realizedStyle
MutableAttributeSet characterAttributes
MutableAttributeSet paragraphAttributes
MutableAttributeSet sectionAttributes
Constructor Detail |
public RTFReader.StylesheetDestination.StyleDefiningDestination()
Method Detail |
public void handleText(String text)
handleText
in interface RTFReader.Destination
handleText
in class RTFReader.AttributeTrackingDestination
public void close()
close
in interface RTFReader.Destination
close
in class RTFReader.AttributeTrackingDestination
public boolean handleKeyword(String keyword)
handleKeyword
in interface RTFReader.Destination
handleKeyword
in class RTFReader.AttributeTrackingDestination
public boolean handleKeyword(String keyword, int parameter)
handleKeyword
in interface RTFReader.Destination
handleKeyword
in class RTFReader.AttributeTrackingDestination
public Style realize()
public void handleBinaryBlob(byte[] data)
public void begingroup()
public void endgroup(Dictionary oldState)
protected MutableAttributeSet rootCharacterAttributes()
protected MutableAttributeSet rootParagraphAttributes()
protected MutableAttributeSet rootSectionAttributes()
MutableAttributeSet currentTextAttributes()
MutableAttributeSet currentParagraphAttributes()
StyleConstants
public AttributeSet currentSectionAttributes()
protected void resetCharacterAttributes()
protected void resetParagraphAttributes()
protected void resetSectionAttributes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |