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

java.lang.Object
  extended by com.crystaldecisions.sdk.occa.report.definition.ReportObject
      extended by com.crystaldecisions.sdk.occa.report.definition.GraphicObject
All Implemented Interfaces:
IGraphicObject, IReportObject, IClone
Direct Known Subclasses:
BlobFieldObject, PictureObject

public abstract class GraphicObject
extends ReportObject
implements IGraphicObject, IClone

This object is used to set the properties of the graphic for your report object. You cannot add an IGraphicObject to the report. RAS currently only supports adding IBlobFieldObject object(s) to a report. Note that you can only copy an IPictureObject object from one report to another; you cannot add an IPictureObject object from a file. When possible, use the IGraphicObject interface.


Constructor Summary
GraphicObject()
           
 
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.
 void enumerateMembers(IMemberVisitor visitor)
           
 int getOriginalHeight()
           Returns the original height of the graphic.
 int getOriginalWidth()
           Returns the original width of the graphic.
 IPictureFormat getPictureFormat()
           Returns the format of the graphic.
 double getXscaling()
           Returns the horizontal scaling of the graphic.
 double getYscaling()
           Returns the vertical scaling of the graphic.
 boolean hasContent(java.lang.Object srcObject)
           
 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 setOriginalHeight(int height)
           Sets the original height of the graphic.
 void setOriginalWidth(int width)
           Sets the original width of the graphic.
 void setPictureFormat(IPictureFormat pictureFormat)
           Sets the format of the graphic.
 void startElement(java.lang.String eleName, java.util.Map objState, org.xml.sax.Attributes attrs)
          For internal use only.
 
Methods inherited from class com.crystaldecisions.sdk.occa.report.definition.ReportObject
doControllerModification, getBorder, getBorderMargins, getControllableMixin, getFormat, getHeight, getKind, getLeft, getLinkedURI, getName, getReplacementConditionFormulas, getReportPartBookmark, getSectionCode, getSectionName, getTop, getVersion, getWidth, isDirectlyControllable, setBorder, setFormat, setHeight, setKind, setLeft, setLinkedURI, setName, setReplacementConditionFormulas, setReportPartBookmark, setSectionCode, setSectionName, setTop, setVersion, setWidth
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.crystaldecisions.sdk.occa.report.definition.IReportObject
getBorder, getBorderMargins, getFormat, getHeight, getKind, getLeft, getLinkedURI, getName, getReplacementConditionFormulas, getReportPartBookmark, getSectionCode, getSectionName, getTop, getWidth, setBorder, setFormat, setHeight, setLeft, setLinkedURI, setName, setReplacementConditionFormulas, setReportPartBookmark, setSectionCode, setSectionName, setTop, setWidth
 

Constructor Detail

GraphicObject

public GraphicObject()
Method Detail

clone

public java.lang.Object clone(boolean deepClone)
Overrides:
clone in class ReportObject

copyTo

public void copyTo(java.lang.Object destObject,
                   boolean deepCopy)
Overrides:
copyTo in class ReportObject

createMember

public java.lang.Object createMember(java.lang.String eleName,
                                     org.xml.sax.Attributes attrs,
                                     XMLSerializationContext ctxt,
                                     java.util.Map objState,
                                     boolean[] bLoaded)
Description copied from class: ReportObject

For internal use only.

Overrides:
createMember in class ReportObject

endElement

public void endElement(java.lang.String eleName,
                       java.util.Map objState)
Description copied from class: ReportObject

For internal use only.

Overrides:
endElement in class ReportObject

getPictureFormat

public IPictureFormat getPictureFormat()
Description copied from interface: IGraphicObject

Returns the format of the graphic.

Specified by:
getPictureFormat in interface IGraphicObject
Returns:
an IPictureFormat object that specifies the format of the graphic.

getOriginalWidth

public int getOriginalWidth()
Description copied from interface: IGraphicObject

Returns the original width of the graphic.

Specified by:
getOriginalWidth in interface IGraphicObject
Returns:
An int that specifies the original width of the graphic.

getOriginalHeight

public int getOriginalHeight()
Description copied from interface: IGraphicObject

Returns the original height of the graphic.

Specified by:
getOriginalHeight in interface IGraphicObject
Returns:
An int that specifies the original height of the graphic.

hasContent

public boolean hasContent(java.lang.Object srcObject)
Overrides:
hasContent in class ReportObject

readElement

public void readElement(java.lang.String eleName,
                        java.lang.String sVal,
                        org.xml.sax.Attributes attrs,
                        java.util.Map objState)
Description copied from class: ReportObject

For internal use only.

Overrides:
readElement in class ReportObject

save

public void save(XMLWriter writer,
                 XMLSerializationContext ctxt)
          throws java.io.IOException
Description copied from class: ReportObject

For internal use only.

Overrides:
save in class ReportObject
Throws:
java.io.IOException

save

public void save(XMLWriter writer,
                 java.lang.String sTag,
                 XMLSerializationContext ctxt)
          throws java.io.IOException
Description copied from class: ReportObject

For internal use only.

Overrides:
save in class ReportObject
Throws:
java.io.IOException

saveContents

public void saveContents(XMLWriter writer,
                         XMLSerializationContext ctxt)
                  throws java.io.IOException
Description copied from class: ReportObject

For internal use only.

Overrides:
saveContents in class ReportObject
Throws:
java.io.IOException

setPictureFormat

public void setPictureFormat(IPictureFormat pictureFormat)
Description copied from interface: IGraphicObject

Sets the format of the graphic.

Specified by:
setPictureFormat in interface IGraphicObject
Parameters:
pictureFormat - a IPictureFormat object that specifies the format of the graphic.

setOriginalWidth

public void setOriginalWidth(int width)
Description copied from interface: IGraphicObject

Sets the original width of the graphic.

Specified by:
setOriginalWidth in interface IGraphicObject
Parameters:
width - An int that specifies the original width of the graphic.

setOriginalHeight

public void setOriginalHeight(int height)
Description copied from interface: IGraphicObject

Sets the original height of the graphic.

Specified by:
setOriginalHeight in interface IGraphicObject
Parameters:
height - An int that specifies the original height of the graphic.

startElement

public void startElement(java.lang.String eleName,
                         java.util.Map objState,
                         org.xml.sax.Attributes attrs)
Description copied from class: ReportObject

For internal use only.

Overrides:
startElement in class ReportObject

getXscaling

public double getXscaling()
Description copied from interface: IGraphicObject

Returns the horizontal scaling of the graphic.

Specified by:
getXscaling in interface IGraphicObject
Returns:
A double that specifies the horizontal scaling of the graphic.

getYscaling

public double getYscaling()
Description copied from interface: IGraphicObject

Returns the vertical scaling of the graphic.

Specified by:
getYscaling in interface IGraphicObject
Returns:
A double that specifies the vertical scaling of the graphic.

enumerateMembers

public void enumerateMembers(IMemberVisitor visitor)
Overrides:
enumerateMembers in class ReportObject