ReportMill 11 API

com.reportmill.shape
Class RMImage

java.lang.Object
  extended by com.reportmill.base.RMObject
      extended by com.reportmill.shape.RMShape
          extended by com.reportmill.shape.RMRectangle
              extended by com.reportmill.shape.RMImage
All Implemented Interfaces:
com.reportmill.base.RMPropertyChanger, java.beans.PropertyChangeListener, java.lang.Cloneable, java.util.EventListener

public class RMImage
extends RMRectangle

This class is a shape representation of an image.


Field Summary
 
Fields inherited from class com.reportmill.shape.RMShape
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
 
Constructor Summary
RMImage()
          Creates a plain image shape (with no actual image).
RMImage(java.lang.Object aSource)
          Creates an image shape from the image source provided.
 
Method Summary
 boolean equals(java.lang.Object anObj)
          Standard equals implementation.
 java.lang.Object fromXMLShape(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
          XML unarchival.
 int getFillStyle()
          Returns the fill style for the image's image fill.
 float getHeightToFit()
          Returns the height to fit the image.
 com.reportmill.graphics.RMImageData getImageData()
          Returns the imageData for this shape (or null if fill isn't an RMImageFill).
 java.lang.String getKey()
          Returns the report key used to load an image if none is provided.
 boolean getSizeBorders()
          Returns whether the image shape should resize it's borders to fit dynamically provided images.
 java.lang.Object getSource()
          Returns the source for this image (actually from it's image fill's image data).
 float getWidthToFit()
          Returns the width to fit the image.
 void setFill(RMFill aFill)
          Overrides standard shape setFill method to ensure fill is an RMImageFill.
 void setKey(java.lang.String aString)
          Sets the report key used to load an image if none is provided.
 void setReportMill(com.reportmill.base.ReportMill aReportMill)
          Report generation method.
 void setSizeBorders(boolean aFlag)
          Sets whether the image shape should resize it's borders to fit dynamically provided images.
 void setSource(java.lang.Object aSource)
          Sets the given source (actually a new image fill for source).
 com.reportmill.archiver.RXElement toXMLShape(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)
          XML archival.
 
Methods inherited from class com.reportmill.shape.RMRectangle
getPath, getRadius, setRadius
 
Methods inherited from class com.reportmill.shape.RMShape
acceptsChildren, acceptsMouse, addBinding, addChild, addChild, animUpdate, bounds, boundsChanged, boundsChanged, bringShapesToFront, checkBindings, childrenSuperSelectImmediately, clone, cloneDeep, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedSizeFromShape, convertedSizeToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertSizeFromShape, convertSizeToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, createDivideShapeRemainder, createLayout, createPartClone, divideShapeFromEdge, divideShapeFromTop, doLayout, firePropertyChange, fromXML, fromXMLShapeChildren, get, getAction, getAncestor, getAncestorCount, getAncestorInCommon, getAnim, getAnim, getAnimator, getAnimator, getAspectMapped, getAspects, getAutosizeHeight, getAutosizing, getBinder, getBinding, getBinding, getBindingCount, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getBoundsOfChildren, getCausesWrap, getCausesWrapType, getChild, getChildAnimator, getChildAnimator, getChildArray, getChildClipShape, getChildContaining, getChildCount, getChildCountHitable, getChildCountLayout, getChildCountVisible, getChildHitable, getChildLast, getChildLayout, getChildren, getChildrenIntersecting, getChildrenWhoCauseWrap, getChildrenWithClass, getChildrenWithClass, getChildVisible, getChildWithClass, getChildWithName, getClipShape, getColor, getDatasetEntity, getDatasetKey, getDocument, getEffect, getFill, getFill, getFillCount, getFont, getFormat, getFrame, getFrame, getFrameMaxX, getFrameMaxY, getFrameX, getFrameXY, getFrameY, getHeight, getImageFill, getLayout, getLineWidth, getMaskPath, getMaxX, getMaxY, getName, getOpacity, getOpacityDeep, getOriginal, getOutline, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParentWithClass, getPart, getPartCount, getPartDeep, getPartDeepCount, getPathInBounds, getReportMill, getRoll, getRootShape, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSizeP, getSkewX, getSkewY, getStroke, getStrokeColor, getTextColor, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getUrl, getVisbileBounds, getVisibleBounds, getVisibleBounds, getVisibleBounds, getWidth, getX, getXY, getXYP, getY, height, indexOf, indexOfChild, intersects, isAncestor, isAnimProperty, isDescendant, isEditing, isLocked, isMouseDown, isMouseOver, isRoot, isShowing, isUnderlined, isValid, isViewing, isVisible, layoutReset, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, notRSS, offsetChildrenXY, offsetXY, page, pageMax, paint, paintShape, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeChild, removeChild, removeChildren, removeFromParent, repaint, repaint, resolvePageReferences, revalidate, sendShapesToBack, setAction, setAnim, setAutosizeHeight, setAutosizing, setBounds, setBounds, setCausesWrap, setCausesWrapType, setColor, setEffect, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, setHeightToFit, setLayout, setLayoutEnabled, setLineWidth, setLocked, setName, setOpacity, setOutline, setParent, setReportMillBindings, setReportMillDeep, setRoll, setScaleX, setScaleXY, setScaleY, setSize, setSize, setSizeP, setSizeToFit, setSizeToFit, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setTextColor, setTime, setUnderlined, setUrl, setVisible, setWidth, setWidthToFit, setX, setXY, setXY, setXYP, setY, shapeHidden, shapeShown, sizesToFitChildren, superSelectable, toString, toXML, toXMLShapeChildren, undoerDisable, undoerEnable, undoerSetUndoTitle, validate, width, x, y
 
Methods inherited from class com.reportmill.base.RMObject
addListener, addPropertyChangeListener, firePropertyChange, getListener, getListenerCount, getListeners, isFirePropertyChangeEnabled, isUndoing, removeListener, removePropertyChangeListener, setFirePropertyChangeEnabled, setUndoing
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RMImage

public RMImage()
Creates a plain image shape (with no actual image).


RMImage

public RMImage(java.lang.Object aSource)
Creates an image shape from the image source provided.

Method Detail

getKey

public java.lang.String getKey()
Returns the report key used to load an image if none is provided.


setKey

public void setKey(java.lang.String aString)
Sets the report key used to load an image if none is provided.


getSource

public java.lang.Object getSource()
Returns the source for this image (actually from it's image fill's image data).


setSource

public void setSource(java.lang.Object aSource)
Sets the given source (actually a new image fill for source).


getSizeBorders

public boolean getSizeBorders()
Returns whether the image shape should resize it's borders to fit dynamically provided images.


setSizeBorders

public void setSizeBorders(boolean aFlag)
Sets whether the image shape should resize it's borders to fit dynamically provided images.


getImageData

public com.reportmill.graphics.RMImageData getImageData()
Returns the imageData for this shape (or null if fill isn't an RMImageFill).


getFillStyle

public int getFillStyle()
Returns the fill style for the image's image fill.


setFill

public void setFill(RMFill aFill)
Overrides standard shape setFill method to ensure fill is an RMImageFill.

Overrides:
setFill in class RMShape

getWidthToFit

public float getWidthToFit()
Returns the width to fit the image.

Overrides:
getWidthToFit in class RMShape

getHeightToFit

public float getHeightToFit()
Returns the height to fit the image.

Overrides:
getHeightToFit in class RMShape

setReportMill

public void setReportMill(com.reportmill.base.ReportMill aReportMill)
Report generation method.

Overrides:
setReportMill in class RMShape

equals

public boolean equals(java.lang.Object anObj)
Standard equals implementation.

Overrides:
equals in class RMRectangle

toXMLShape

public com.reportmill.archiver.RXElement toXMLShape(com.reportmill.archiver.RXArchiver anArchiver,
                                                    java.lang.Object anOwner)
XML archival.

Overrides:
toXMLShape in class RMRectangle

fromXMLShape

public java.lang.Object fromXMLShape(com.reportmill.archiver.RXArchiver anArchiver,
                                     com.reportmill.archiver.RXElement anElement,
                                     java.lang.Object anOwner)
XML unarchival.

Overrides:
fromXMLShape in class RMRectangle

ReportMill 11 API