|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--ru.novosoft.dc.rtf.dom.ShadingContext
The basic class for cell, paragraph, and character formatting contexts. It contains common properties for all mensioned contexts, namely the Shading object.
| Constructor Summary | |
protected |
ShadingContext()
Protected constructor is used in enherited classes. |
| Method Summary | |
java.lang.Object |
clone()
Create a clone of this context. |
void |
defineShadingBackground(ColorTable table,
RTFColor color)
Define a background color for shading. |
void |
defineShadingFill(ColorTable table,
RTFColor color)
Define a fill color for shading. |
void |
defineShadingStyle(ColorTable table,
int style)
Define a new pattern/shading style. |
boolean |
equals(java.lang.Object obj)
Compare this context with another context and return true if contexts coinside in their shadings. |
void |
exportTo(org.w3c.dom.Element elem,
java.lang.String tagName)
Export the contents of this object to the specified DOM element. |
void |
reset()
Reset the context to its default state (remove shading). |
Shading |
shading()
Return a current shading or null if shading does not specified. |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
protected ShadingContext()
| Method Detail |
public final void defineShadingStyle(ColorTable table,
int style)
table - a color tablestyle - a pattern/shading style (see Shading)
public final void defineShadingBackground(ColorTable table,
RTFColor color)
table - a color tablecolor - a background color
public final void defineShadingFill(ColorTable table,
RTFColor color)
table - a color tablecolor - a fill colorpublic final Shading shading()
public void reset()
public java.lang.Object clone()
public boolean equals(java.lang.Object obj)
public void exportTo(org.w3c.dom.Element elem,
java.lang.String tagName)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||