public class RMImageShape extends RMRectShape
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
Constructor and Description |
---|
RMImageShape()
Creates an RMImageShape.
|
RMImageShape(java.lang.Object aSource)
Creates an RMImageShape from the image source provided.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
fromXML(XMLArchiver anArchiver,
XMLElement anElement)
XML unarchival.
|
RMTypes.AlignX |
getAlignmentX()
Returns the horizontal alignment.
|
RMTypes.AlignY |
getAlignmentY()
Returns the vertical alignment.
|
java.awt.geom.Rectangle2D |
getImageBounds()
Returns the image bounds.
|
RMImageData |
getImageData()
Returns the image data.
|
java.lang.String |
getKey()
Returns the report key used to load an image if none is provided.
|
int |
getPadding()
Returns the padding.
|
int |
getPageIndex()
Returns the page index.
|
boolean |
getPreserveRatio()
Returns whether to preserve the natural width to height ratio of image.
|
boolean |
isGrowToFit()
Returns whether to grow image to fit available area if shape larger than image.
|
void |
paintShape(RMShapePainter aPntr)
Override to paint shape.
|
RMShape |
rpgShape(ReportOwner aRptOwner,
RMShape aParent)
Report generation method.
|
void |
setAlignmentX(RMTypes.AlignX anAlignX)
Sets the horizontal alignment.
|
void |
setAlignmentY(RMTypes.AlignY anAlignY)
Sets the vertical alignment.
|
void |
setGrowToFit(boolean aValue)
Sets whether to grow image to fit available area if shape larger than image.
|
void |
setImageData(java.lang.Object aSource)
Sets the image data from given source.
|
void |
setImageData(RMImageData anImageData)
Sets the image data.
|
void |
setKey(java.lang.String aString)
Sets the report key used to load an image if none is provided.
|
void |
setPadding(int aPadding)
Sets the padding.
|
void |
setPageIndex(int anIndex)
Sets the page index.
|
void |
setPreserveRatio(boolean aValue)
Sets whether to preserve the natural width to height ratio of image.
|
XMLElement |
toXML(XMLArchiver anArchiver)
XML archival.
|
getPath, getRadius, setRadius
acceptsChildren, acceptsMouse, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, childrenSuperSelectImmediately, clone, cloneDeep, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, deepChange, divideShapeFromEdge, divideShapeFromTop, get, get, getAlignment, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getAutosizingDefault, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getChild, getChildAnimator, getChildAnimator, getChildCount, getChildren, getClipShape, getColor, getDatasetEntity, getDatasetKey, getDocument, getEffect, getEventAdapter, getFill, getFont, getFormat, getFrame, getFrameHeight, getFrameMaxX, getFrameMaxY, getFrameWidth, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getLayoutInfo, getMaskPath, getMaxX, getMaxY, getMinHeight, getMinHeight, getMinWidth, getMinWidth, getName, getOpacity, getOpacityDeep, getOutline, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParent, getPathInBounds, getPrefHeight, getPrefHeight, getPrefWidth, getPrefWidth, getPropertyNameMapped, getPropertyNames, getRoll, getRootShape, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeOnTop, getStrokeWidth, getTextColor, getTimeline, getTimeline, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getURL, getWidth, getX, getXY, getXYP, getY, height, indexOf, intersects, isAncestor, isAnimProperty, isDescendant, isEditing, isEnabled, isFontSet, isHittable, isLocked, isMinHeightSet, isMinWidthSet, isPrefHeightSet, isPrefWidthSet, isRoot, isRSS, isUnderlined, isViewing, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, offsetXY, page, pageMax, paint, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, rpgAll, rpgBindings, setAlignment, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, setEffect, setEnabled, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, setHover, setLayoutInfo, setLocked, setMinHeight, setMinSize, setMinWidth, setName, setOpacity, setOutline, setParent, setPrefHeight, setPrefWidth, setRoll, setScaleX, setScaleXY, setScaleY, setSize, setSize, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeWidth, setTextColor, setTime, setUnderlined, setURL, setVisible, setWidth, setX, setXY, setXY, setXYP, setY, superSelectable, toString, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, y
public RMImageShape()
public RMImageShape(java.lang.Object aSource)
public java.lang.String getKey()
public void setKey(java.lang.String aString)
public RMImageData getImageData()
public void setImageData(RMImageData anImageData)
public void setImageData(java.lang.Object aSource)
public int getPageIndex()
public void setPageIndex(int anIndex)
public int getPadding()
public void setPadding(int aPadding)
public RMTypes.AlignX getAlignmentX()
getAlignmentX
in class RMShape
public void setAlignmentX(RMTypes.AlignX anAlignX)
setAlignmentX
in class RMShape
public RMTypes.AlignY getAlignmentY()
getAlignmentY
in class RMShape
public void setAlignmentY(RMTypes.AlignY anAlignY)
setAlignmentY
in class RMShape
public boolean isGrowToFit()
public void setGrowToFit(boolean aValue)
public boolean getPreserveRatio()
public void setPreserveRatio(boolean aValue)
public RMShape rpgShape(ReportOwner aRptOwner, RMShape aParent)
public void paintShape(RMShapePainter aPntr)
paintShape
in class RMShape
public java.awt.geom.Rectangle2D getImageBounds()
public XMLElement toXML(XMLArchiver anArchiver)
toXML
in class RMRectShape
public java.lang.Object fromXML(XMLArchiver anArchiver, XMLElement anElement)
fromXML
in class RMRectShape