|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.crystaldecisions.sdk.occa.report.definition.IndentAndSpacingFormat
public class IndentAndSpacingFormat
This object is used to set the indent and spacing for your report object.
Use this object to format ReportObjects objects that contain text; that is,
it formats how text lines and paragraphs are indented and spaced. This object is used by
the TextObject's Paragraph objects as well as the StringFieldFormat, which
provides formatting for a FieldObject when it displays textual information. When possible,
use the IIndentAndSpacingFormat interface.
| Constructor Summary | |
|---|---|
IndentAndSpacingFormat()
|
|
IndentAndSpacingFormat(IIndentAndSpacingFormat src)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone(boolean deepClone)
|
void |
copyTo(java.lang.Object destObject,
boolean deepCopy)
|
java.lang.Object |
createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
XMLSerializationContext ctxt,
java.util.Map objState,
boolean[] bLoaded)
For internal use only. |
void |
endElement(java.lang.String eleName,
java.util.Map objState)
For internal use only. |
int |
getFirstLineIndent()
Returns the distance between the left margin and the first indented line. |
int |
getLeftIndent()
Returns the size of the paragraph indentation. |
double |
getLineSpacing()
Returns the measure of the line spacing (this measure depends on the type). |
LineSpacingType |
getLineSpacingType()
Returns the type of line spacing. |
int |
getRightIndent()
Returns the distance of the line that is indented from the right. |
boolean |
hasContent(java.lang.Object srcIndentAndSpacingFormat)
|
void |
readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
For internal use only. |
void |
save(XMLWriter writer,
java.lang.String sTag,
XMLSerializationContext ctxt)
For internal use only. |
void |
save(XMLWriter writer,
XMLSerializationContext ctxt)
For internal use only. |
void |
saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
For internal use only. |
void |
setFirstLineIndent(int firstLineIndent)
Sets the distance of the first line that is indented from the left margin. |
void |
setLeftIndent(int leftIndent)
Sets the size of the paragraph indentation. |
void |
setLineSpacing(double lineSpacing)
Sets the measure of the line spacing (this measure depends on the type). |
void |
setLineSpacingType(LineSpacingType lineSpacingType)
Sets the type of line spacing. |
void |
setRightIndent(int rightIndent)
Sets the distance of the line that is indented from the right. |
boolean |
skipWritingIdenticalObject()
For internal use only. |
void |
startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
For internal use only. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndentAndSpacingFormat(IIndentAndSpacingFormat src)
public IndentAndSpacingFormat()
| Method Detail |
|---|
public java.lang.Object clone(boolean deepClone)
public void copyTo(java.lang.Object destObject,
boolean deepCopy)
public java.lang.Object createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
XMLSerializationContext ctxt,
java.util.Map objState,
boolean[] bLoaded)
public void endElement(java.lang.String eleName,
java.util.Map objState)
public int getFirstLineIndent()
IIndentAndSpacingFormatReturns the distance between the left margin and the first indented line.
getFirstLineIndent in interface IIndentAndSpacingFormatint that specifies the distance between the left
margin and the first indented line.public int getLeftIndent()
IIndentAndSpacingFormat
Returns the size of the paragraph indentation. Note that this value is different
from the value returned by IIndentAndSpacingFormat.getFirstLineIndent().
getLeftIndent in interface IIndentAndSpacingFormatint that specifies the size of the paragraph's indent.public double getLineSpacing()
IIndentAndSpacingFormatReturns the measure of the line spacing (this measure depends on the type). The spacing type can either be double or in twips.
getLineSpacing in interface IIndentAndSpacingFormatdouble that specifies the measure of the line spacing.public LineSpacingType getLineSpacingType()
IIndentAndSpacingFormatReturns the type of line spacing.
getLineSpacingType in interface IIndentAndSpacingFormatLineSpacingType object that specifies the type of line spacing.public int getRightIndent()
IIndentAndSpacingFormatReturns the distance of the line that is indented from the right.
getRightIndent in interface IIndentAndSpacingFormatint that specifies the distance of the line that is indented
from the right.public boolean hasContent(java.lang.Object srcIndentAndSpacingFormat)
public void readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
public void save(XMLWriter writer,
XMLSerializationContext ctxt)
throws java.io.IOException
java.io.IOException
public void save(XMLWriter writer,
java.lang.String sTag,
XMLSerializationContext ctxt)
throws java.io.IOException
java.io.IOException
public void saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
throws java.io.IOException
java.io.IOExceptionpublic void setFirstLineIndent(int firstLineIndent)
IIndentAndSpacingFormatSets the distance of the first line that is indented from the left margin.
setFirstLineIndent in interface IIndentAndSpacingFormatfirstLineIndent - An int that specifies the distance of the first line that is indented
from the left margin.public void setLeftIndent(int leftIndent)
IIndentAndSpacingFormat
Sets the size of the paragraph indentation. Note that this value is different
from the value returned by IIndentAndSpacingFormat.getFirstLineIndent().
setLeftIndent in interface IIndentAndSpacingFormatleftIndent - An int that specifies the size of the paragraph's indent.public void setLineSpacing(double lineSpacing)
IIndentAndSpacingFormatSets the measure of the line spacing (this measure depends on the type). The spacing type can either be double or in twips.
setLineSpacing in interface IIndentAndSpacingFormatlineSpacing - A double that specifies the measure of the line spacing.public void setLineSpacingType(LineSpacingType lineSpacingType)
IIndentAndSpacingFormatSets the type of line spacing.
setLineSpacingType in interface IIndentAndSpacingFormatlineSpacingType - A LineSpacingType object that specifies the type of line spacing.public void setRightIndent(int rightIndent)
IIndentAndSpacingFormatSets the distance of the line that is indented from the right.
setRightIndent in interface IIndentAndSpacingFormatrightIndent - An int that specifies the distance of the line that is indented
from the right.public boolean skipWritingIdenticalObject()
public void startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||