public class RMViewerShape extends RMParentShape
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
BINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
Constructor and Description |
---|
RMViewerShape(RMViewer aViewer)
Creates a new ViewerShape.
|
Modifier and Type | Method and Description |
---|---|
protected double |
computePrefHeight(double aWidth)
Override to return content preferred height.
|
protected double |
computePrefWidth(double aHeight)
Override to return content preferred width.
|
RMAnimator |
getChildAnimator()
Return child animator.
|
RMParentShape |
getContent()
Returns the root shape that is being viewed in viewer.
|
<T extends RMParentShape> |
getContent(java.lang.Class<T> aClass)
Returns the root shape that is being viewed in viewer as a specific class.
|
byte[] |
getContentBytes()
Returns the content bytes.
|
RXElement |
getContentXML()
Returns RXElement for content shape.
|
RMDocument |
getDocument()
Returns the root shape as RMDocument, if available.
|
RMParentShape |
getPage(int anIndex)
Returns the page at index.
|
int |
getPageCount()
Returns the page count.
|
RMParentShape |
getSelectedPage()
Returns the currently selected page shape.
|
int |
getSelectedPageIndex()
Returns the index of the current visible document page.
|
WebURL |
getSourceURL()
Returns the SourceURL.
|
RMViewer |
getViewer()
Returns the viewer.
|
boolean |
isEditing()
Returns whether this shape is being edited in an editor.
|
boolean |
isViewing()
Returns whether this shape is being viewed in a viewer.
|
protected void |
layoutChildren()
This is bogus, but we want to make sure that ViewerShape is always the same size as the content.
|
void |
paint(RMShapePainter aPntr)
Override to set Painting flag.
|
protected void |
repaint(RMShape aShape)
This is a notification call for impending visual shape attribute changes.
|
void |
setContent(RMParentShape aShape)
Sets the root shape that is being viewed in viewer.
|
void |
setSelectedPageIndex(int anIndex)
Sets the page of viewer's document that is visible (by index).
|
void |
setSourceURL(WebURL aURL)
Sets the SourceURL.
|
addChild, addChild, addChild, addChild, addLayoutChild, bringShapesToFront, clone, cloneDeep, divideShapeFromTop, fromXML, fromXMLChildren, fromXMLShape, getBoundsOfChildren, getChild, getChildArray, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWithClass, getChildrenWithClass, getChildWithClass, getChildWithName, getLayout, getNeedsLayout, indexOfChild, isHittable, isShowing, isSourceURLSet, layout, relayout, removeChild, removeChild, removeChildren, removeLayoutChild, rpgAll, rpgChildren, sendShapesToBack, setHeight, setLayout, setNeedsLayout, setWidth, toXML, toXMLChildren, toXMLShape
acceptsChildren, acceptsMouse, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, childrenSuperSelectImmediately, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, createDivideShapeRemainder, deepChange, divideShapeFromEdge, get, get, getAlignment, getAlignmentX, getAlignmentY, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getAutosizingDefault, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBindings, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getChildAnimator, getChildClipShape, getClipShape, getColor, getDashArrayString, getDashPhase, getDatasetEntity, getDatasetKey, getDisplayedFill, getDisplayedStroke, 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, getPath, getPathInBounds, getPrefHeight, getPrefHeight, getPrefWidth, getPrefWidth, getPropertyNameMapped, getPropertyNames, getPropertyNames, getRoll, getRootShape, getRSS, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeOnTop, getStrokeStyle, getStrokeWidth, getTextColor, getTimeline, getTimeline, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getURL, getVisbileBounds, getVisibleBounds, getVisibleBounds, getVisibleBounds, getWidth, getX, getXY, getXYP, getY, height, indexOf, intersects, isAncestor, isAnimProperty, isDeletable, isDescendant, isEnabled, isFontSet, isHittable, isLocked, isMinHeightSet, isMinWidthSet, isPrefHeightSet, isPrefWidthSet, isRoot, isRSS, isShowing, isUnderlined, isUseFill, isUseStroke, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, offsetXY, page, pageMax, paintShape, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, resolvePageReferences, rpgBindings, rpgShape, setAlignment, setAlignmentX, setAlignmentY, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, setDashArrayString, setDashPhase, setEffect, setEnabled, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHover, setLayoutInfo, setLocked, setMinHeight, setMinSize, setMinWidth, setName, setOpacity, setOutline, setParent, setPrefHeight, setPrefWidth, setRoll, setScaleX, setScaleXY, setScaleY, setShowing, setSize, setSize, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeStyle, setStrokeWidth, setTextColor, setTime, setTimeline, setUnderlined, setURL, setUseFill, setUseStroke, setVisible, setX, setXY, setXY, setXYP, setY, shapeHidden, shapeShown, superSelectable, toString, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, y
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
public RMViewerShape(RMViewer aViewer)
public RMViewer getViewer()
public RMParentShape getContent()
public void setContent(RMParentShape aShape)
@Nullable public <T extends RMParentShape> T getContent(java.lang.Class<T> aClass)
@Nullable public RMDocument getDocument()
getDocument
in class RMShape
public int getPageCount()
public RMParentShape getPage(int anIndex)
public RMParentShape getSelectedPage()
public int getSelectedPageIndex()
public void setSelectedPageIndex(int anIndex)
@Nullable public RMAnimator getChildAnimator()
getChildAnimator
in class RMShape
protected void layoutChildren()
layoutChildren
in class RMParentShape
protected double computePrefWidth(double aHeight)
computePrefWidth
in class RMParentShape
protected double computePrefHeight(double aWidth)
computePrefHeight
in class RMParentShape
protected void repaint(RMShape aShape)
public void paint(RMShapePainter aPntr)
public boolean isViewing()
public boolean isEditing()
public WebURL getSourceURL()
getSourceURL
in class RMParentShape
public void setSourceURL(WebURL aURL)
setSourceURL
in class RMParentShape
public RXElement getContentXML()
public byte[] getContentBytes()