com.crystaldecisions.sdk.occa.report.definition
Class ParagraphElement

java.lang.Object
  extended by com.crystaldecisions.sdk.occa.report.definition.ParagraphElement
All Implemented Interfaces:
IParagraphElement, IClone
Direct Known Subclasses:
ParagraphFieldElement, ParagraphTextElement

public class ParagraphElement
extends java.lang.Object
implements IParagraphElement, IClone

This object is used to specify the paragraph elements. This object provides a base class for different kinds of elements in a paragraph, which can be ParagraphTextElement objects or ParagraphFieldElement objects. When possible, use the IParagraphElement interface.

Font color persists at the ParagraphElement level.


Constructor Summary
ParagraphElement()
           
 
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 doControllerModification(java.lang.Object newObject)
           
 void endElement(java.lang.String eleName, java.util.Map objState)
           For internal use only.
 void enumerateMembers(IMemberVisitor visitor)
           
 int getCharacterSpacing()
           Returns the amount of space that is set between characters.
 ControllableMixin getControllableMixin()
           
 IFontColor getFontColor()
           Returns the font and color properties for the paragraph element.
 ParagraphElementKind getKind()
           Returns the paragraph element kind.
 boolean hasContent(java.lang.Object srcParagraphElement)
           
 boolean isDirectlyControllable()
           
 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 setCharacterSpacing(int characterSpacing)
           Sets the amount of space that is set between characters.
 void setFontColor(IFontColor fontColor)
           Sets the font and color properties for the paragraph element.
 void setKind(ParagraphElementKind kind)
           Sets the paragraph element kind.
 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

ParagraphElement

public ParagraphElement()
Method Detail

clone

public java.lang.Object clone(boolean deepClone)

copyTo

public void copyTo(java.lang.Object destObject,
                   boolean deepCopy)

createMember

public 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.


endElement

public void endElement(java.lang.String eleName,
                       java.util.Map objState)

For internal use only.


getFontColor

public IFontColor getFontColor()
Description copied from interface: IParagraphElement

Returns the font and color properties for the paragraph element.

Specified by:
getFontColor in interface IParagraphElement
Returns:
An IFontColor object that specifies the font and color properties for the paragraph element.

getKind

public ParagraphElementKind getKind()
Description copied from interface: IParagraphElement

Returns the paragraph element kind.

Specified by:
getKind in interface IParagraphElement
Returns:
A ParagraphElementKind object that specifies the paragraph element kind.

hasContent

public boolean hasContent(java.lang.Object srcParagraphElement)

readElement

public void readElement(java.lang.String eleName,
                        java.lang.String sVal,
                        org.xml.sax.Attributes attrs,
                        java.util.Map objState)

For internal use only.


save

public void save(XMLWriter writer,
                 XMLSerializationContext ctxt)
          throws java.io.IOException

For internal use only.

Throws:
java.io.IOException

save

public void save(XMLWriter writer,
                 java.lang.String sTag,
                 XMLSerializationContext ctxt)
          throws java.io.IOException

For internal use only.

Throws:
java.io.IOException

saveContents

public void saveContents(XMLWriter writer,
                         XMLSerializationContext ctxt)
                  throws java.io.IOException

For internal use only.

Throws:
java.io.IOException

setFontColor

public void setFontColor(IFontColor fontColor)
Description copied from interface: IParagraphElement

Sets the font and color properties for the paragraph element.

Specified by:
setFontColor in interface IParagraphElement
Parameters:
fontColor - An IFontColor object that specifies the font and color properties for the paragraph element.

setKind

public void setKind(ParagraphElementKind kind)
Description copied from interface: IParagraphElement

Sets the paragraph element kind.

Specified by:
setKind in interface IParagraphElement
Parameters:
kind - A ParagraphElementKind object that specifies the paragraph element kind.

startElement

public void startElement(java.lang.String eleName,
                         java.util.Map objState,
                         org.xml.sax.Attributes attrs)

For internal use only.


getControllableMixin

public ControllableMixin getControllableMixin()

doControllerModification

public void doControllerModification(java.lang.Object newObject)

isDirectlyControllable

public boolean isDirectlyControllable()

enumerateMembers

public void enumerateMembers(IMemberVisitor visitor)

getCharacterSpacing

public int getCharacterSpacing()
Description copied from interface: IParagraphElement

Returns the amount of space that is set between characters.

Specified by:
getCharacterSpacing in interface IParagraphElement
Returns:
An int that specifies the amount of space that is set between characters.

setCharacterSpacing

public void setCharacterSpacing(int characterSpacing)
Description copied from interface: IParagraphElement

Sets the amount of space that is set between characters.

Specified by:
setCharacterSpacing in interface IParagraphElement
Parameters:
characterSpacing - An int that specifies the amount of space that is set between characters.