Package com.inductiveautomation.rm.shape
Class RMTextShape
- java.lang.Object
-
- com.inductiveautomation.rm.base.RMListenerList
-
- com.inductiveautomation.rm.base.RMObject
-
- com.inductiveautomation.rm.shape.RMShape
-
- com.inductiveautomation.rm.shape.RMRectShape
-
- com.inductiveautomation.rm.shape.RMTextShape
-
- All Implemented Interfaces:
Archivable,DeepChangeListener,RMPropertyChanger,RMTypes,java.beans.PropertyChangeListener,java.lang.Cloneable,java.util.EventListener
- Direct Known Subclasses:
RMCrossTabCell,RMGraphPartLabelAxis,RMGraphPartValueAxis,RMLinkedText,RMText
public class RMTextShape extends RMRectShape
This class is an RMShape subclass for handling rich text. Text is probably the most common and useful element in a ReportMill template. You might use this class to programmatically build or modify a template, like this:RMXString xstring = new RMXString("Hello world!", RMFont.getFont("Arial", 12), RMColor.red); RMText text = new RMText(xstring); template.getPage(0).addChild(text); text.setXY(36, 36); text.setSizeToFit();
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypes
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
-
-
Field Summary
Fields Modifier and Type Field Description static byteWRAP_BASICstatic byteWRAP_NONEstatic byteWRAP_SCALE-
Fields inherited from class com.inductiveautomation.rm.shape.RMShape
BINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
-
-
Constructor Summary
Constructors Constructor Description RMTextShape()Creates an empty text instance.RMTextShape(RMXString string)Creates a text instance initialized with the given RMXString.RMTextShape(java.lang.String plainText)Creates a text instance initialized with the given plain text String.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RMTextShapeclone()Standard clone implementation.protected doublecomputePrefHeight(double aWidth)Override to compute from RMTextLayout.protected doublecomputePrefWidth(double aHeight)Override to compute from RMTextLayout.voidcopyText(RMTextShape aText)Copies attributes from given object.protected RMShapecreateDivideShapeRemainder(byte anEdge)Creates a shape suitable for the "remainder" portion of a divideShape call (just a clone by default).RMTextLayoutcreateTextLayout()Creates a new layout.protected RMXStringcreateXString()Creates the xstring for this text.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.voidfromXMLFinish(RXArchiver anArchiver, RXElement anElement)XML reference unarchival - to unarchive linked text.RMTypes.AlignXgetAlignmentX()Returns the alignment for char 0.RMTypes.AlignYgetAlignmentY()Returns the vertical alignment.java.lang.StringgetAlignString()Returns the alignment as a string, one of: "left", "center" or "right".java.lang.StringgetAutosizingDefault()Returns the autosizing default.floatgetCharSpacing()Returns the char spacing at char 0.booleangetCoalesceNewlines()Returns whether text should coalesce consecutive newlines in rpgClone.java.lang.StringgetDateFormat()booleangetDrawsSelectionRect()Returns whether text should always draw at least a light gray border (useful when editing).RMFontgetFont()Returns the font for char 0.floatgetLineGap()Returns the line gap at char 0.floatgetLineHeightMax()Returns the maximum line height at char 0.floatgetLineHeightMin()Returns the minimum line height at char 0.floatgetLineSpacing()Returns the line spacing at char 0.RMLinkedTextgetLinkedText()Returns the linked text for this text (if any).java.awt.InsetsgetMargin()Returns margin.intgetMarginBottom()Returns the bottom margin of the text (defaults to 0).java.awt.InsetsgetMarginDefault()Returns the default margin of the text (top=1, left=2, right=2, bottom=0).intgetMarginLeft()Returns the left margin of the text (default to 2).intgetMarginRight()Returns the right margin of the text (defaults to 2).java.lang.StringgetMarginString()Returns the margin as a string.intgetMarginTop()Returns the top margin of the text (defaults to 1).RMPathgetMaskPath()Overridden from RMShape to provide the outlines of all the glyphsbooleangetNegativeInRed()java.lang.StringgetNullFormat()java.lang.StringgetNumberFormat()RMXString.OutlinegetOutline()Returns the outline for char 0.RMPathgetPath()Returns the path for this shape (might be PathShape).RMPathgetPathInBounds()Overrides shape implementation to pass through getPathInBounds(inset).RMPathgetPathInBounds(int anInset)Returns the shape's path scaled to the shape's current bounds.RMShapegetPathShape()Returns the shape that provides the path for this text to wrap text to.booleangetPerformsWrap()Returns whether text should wrap around other shapes that cause wrap.protected voidgetPropertyNames(java.util.List<java.lang.String> aList)Returns the property names for RMShape.java.lang.StringgetText()Returns the text associated with this RMText as a plain String.RMColorgetTextColor()Returns the color of the first character of the xstring associated with this RMText.RMTextLayoutgetTextLayout()Returns a text layout.intgetVisibleEnd()Returns the last character index visible in this text.intgetVisibleStart()Returns the first character index visible in this text.bytegetWraps()Returns the wrapping behavior for over-filled rpgCloned text (NONE, WRAP, SHRINK).RMXStringgetXString()Returns the XString associated with this RMText.booleanisAllTextVisible()Returns whether all characters can be visibly rendered in text bounds.booleanisDeletable()Override this for shapes (like a table row) that don't don't make sense to delete by themselves.booleanisStructured()Editor method.booleanisUnderlined()Returns if char 0 is underlined.intlength()Returns the length, in characters, of the XString associated with this RMText.protected java.util.List<RMTextShape>paginate()Paginates this text by creating linked texts to show all text and returns a list of this text and the linked texts.voidpaintShape(RMShapePainter aPntr)Paints a text shape.voidpaintShapeBack(RMShapePainter aPntr)Paints the text shape background.voidpaintShapeText(RMShapePainter aPntr)Paints the text shape text.protected voidpaintTextRun(RMShapePainter aPntr, RMTextRun aRun)Paints the layout in a given graphics.voidpeerDidChange(RMShape aShape)This notification method is called when any peer is changed.voidpropertyChange(java.beans.PropertyChangeEvent anEvent)Override to catch XString changes.protected voidresolvePageReferences(ReportOwner aRptOwner, java.lang.Object userInfo)Re-does the RPG clone to resolve any @Page@ keys (assumed to be present in userInfo).voidrevalidate()Override to do home-brew layout.protected RMShaperpgShape(ReportOwner anRptOwner, RMShape aParent)Generate report.voidscaleFonts(double aFactor)Resizes all the fonts in text string by given factor.voidsetAlignmentX(RMTypes.AlignX anAlignmentX)Sets the align for all chars.voidsetAlignmentY(RMTypes.AlignY anAlignment)Sets the vertical alignment.voidsetCharSpacing(float aValue)Sets the char spacing for the text string.voidsetCoalesceNewlines(boolean aFlag)Sets whether text should coalesce consecutive newlines in rpgClone.voidsetDateFormat(java.lang.String dateFormatStr)Applies the given date format.voidsetDrawsSelectionRect(boolean aValue)Sets whether text should always draw at least a light-gray border (useful when editing).voidsetFont(RMFont aFont)Sets the font for all characters.voidsetFormat(RMFormat aFormat)Deprecated.voidsetHeight(double aValue)Override to revalidate.voidsetLineGap(float aHeight)Sets the line gap for all chars.voidsetLineHeightMax(float aHeight)Sets the maximum line height for all chars.voidsetLineHeightMin(float aHeight)Sets the minimum line height for all chars.voidsetLineSpacing(float aHeight)Sets the line spacing for all chars.voidsetLinkedText(RMLinkedText aLinkedText)Sets the linked text for this text (if any).voidsetMargin(java.awt.Insets aMargin)Sets margin.voidsetMarginString(java.lang.String aString)Sets the margin as a string.voidsetNegativeInRed(boolean negativeInRed)voidsetNullFormat(java.lang.String nullFormat)voidsetNumberFormat(java.lang.String numberFormatStr)Applies the given number format.voidsetOutline(RMXString.Outline anOutline)Sets the Outline for all characters.voidsetPathShape(RMShape aShape)Sets the shape that provides the path for this text to wrap text to.voidsetPerformsWrap(boolean aFlag)Sets whether text should wrap around other shapes that cause wrap.voidsetRadius(float aValue)Overrides rectangle implementation to potentially clear path shape.voidsetText(java.lang.String aString)Replaces the current text associated with this RMText with the given String.voidsetTextColor(RMColor aColor)Sets the color of the characters in the XString associated with this RMText.voidsetUnderlined(boolean aFlag)Sets all chars to be underlined.voidsetWidth(double aValue)Override to revalidate.voidsetWraps(byte aValue)Sets the wrapping behavior for over-filled rpgCloned text (NONE, WRAP, SHRINK).voidsetXString(RMXString xString)Sets the XString associated with this RMText.booleansuperSelectable()Editor method - indicates that this shape can be super selected.java.lang.StringtoString()Standard toString implementation.RXElementtoXML(RXArchiver anArchiver)XML archival.-
Methods inherited from class com.inductiveautomation.rm.shape.RMRectShape
getRadius
-
Methods inherited from class com.inductiveautomation.rm.shape.RMShape
acceptsChildren, acceptsMouse, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, childrenSuperSelectImmediately, cloneDeep, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, deepChange, divideShapeFromEdge, divideShapeFromTop, get, get, getAlignment, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBindings, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getChild, getChildAnimator, getChildAnimator, getChildClipShape, getChildCount, getChildren, getClipShape, getColor, getDashArrayString, getDashPhase, getDatasetEntity, getDatasetKey, getDisplayedFill, getDisplayedStroke, getDocument, getEffect, getEventAdapter, getFill, getFormat, getFrame, getFrameHeight, getFrameMaxX, getFrameMaxY, getFrameWidth, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getLayoutInfo, getMaxX, getMaxY, getMinHeight, getMinHeight, getMinWidth, getMinWidth, getName, getOpacity, getOpacityDeep, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParent, getPrefHeight, getPrefHeight, getPrefWidth, getPrefWidth, getPropertyNameMapped, getPropertyNames, getRoll, getRootShape, getRSS, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeOnTop, getStrokeStyle, getStrokeWidth, getTimeline, getTimeline, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getURL, getVisbileBounds, getVisibleBounds, getVisibleBounds, getVisibleBounds, getWidth, getX, getXY, getXYP, getY, height, indexOf, intersects, isAncestor, isAnimProperty, isDescendant, isEditing, isEnabled, isFontSet, isHittable, isLocked, isMinHeightSet, isMinWidthSet, isPrefHeightSet, isPrefWidthSet, isRoot, isRSS, isShowing, isUseFill, isUseStroke, isViewing, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, offsetXY, page, pageMax, paint, paintShapeAll, paintShapeChildren, paintShapeOver, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, repaint, rpgAll, rpgBindings, setAlignment, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, setDashArrayString, setDashPhase, setEffect, setEnabled, setFill, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHover, setLayoutInfo, setLocked, setMinHeight, setMinSize, setMinWidth, setName, setOpacity, setParent, setPrefHeight, setPrefWidth, setRoll, setScaleX, setScaleXY, setScaleY, setShowing, setSize, setSize, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeStyle, setStrokeWidth, setTime, setTimeline, setURL, setUseFill, setUseStroke, setVisible, setX, setXY, setXY, setXYP, setY, shapeHidden, shapeShown, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, y
-
Methods inherited from class com.inductiveautomation.rm.base.RMObject
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
-
Methods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
-
-
-
Field Detail
-
WRAP_NONE
public static final byte WRAP_NONE
- See Also:
- Constant Field Values
-
WRAP_BASIC
public static final byte WRAP_BASIC
- See Also:
- Constant Field Values
-
WRAP_SCALE
public static final byte WRAP_SCALE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RMTextShape
public RMTextShape()
Creates an empty text instance.
-
RMTextShape
public RMTextShape(RMXString string)
Creates a text instance initialized with the given RMXString.
-
RMTextShape
public RMTextShape(java.lang.String plainText)
Creates a text instance initialized with the given plain text String.
-
-
Method Detail
-
getXString
@Nonnull public RMXString getXString()
Returns the XString associated with this RMText.
-
setXString
public void setXString(RMXString xString)
Sets the XString associated with this RMText.
-
createXString
@Nonnull protected RMXString createXString()
Creates the xstring for this text.
-
length
public int length()
Returns the length, in characters, of the XString associated with this RMText.
-
getText
public java.lang.String getText()
Returns the text associated with this RMText as a plain String.
-
setText
public void setText(java.lang.String aString)
Replaces the current text associated with this RMText with the given String.
-
getVisibleStart
public int getVisibleStart()
Returns the first character index visible in this text.
-
getVisibleEnd
public int getVisibleEnd()
Returns the last character index visible in this text.
-
isAllTextVisible
public boolean isAllTextVisible()
Returns whether all characters can be visibly rendered in text bounds.
-
setFont
public void setFont(RMFont aFont)
Sets the font for all characters.
-
setFormat
@Deprecated public void setFormat(RMFormat aFormat)
Deprecated.Sets the format for all characters.
-
getNegativeInRed
public boolean getNegativeInRed()
-
setNegativeInRed
public void setNegativeInRed(boolean negativeInRed)
-
getNumberFormat
@Nonnull public java.lang.String getNumberFormat()
-
setNumberFormat
public void setNumberFormat(java.lang.String numberFormatStr)
Applies the given number format. If we get null in, the existing format won't change.
-
getDateFormat
@Nonnull public java.lang.String getDateFormat()
-
setDateFormat
public void setDateFormat(@Nullable java.lang.String dateFormatStr)Applies the given date format. If we get null in, the existing format won't change.
-
getNullFormat
@Nonnull public java.lang.String getNullFormat()
-
setNullFormat
public void setNullFormat(java.lang.String nullFormat)
-
getTextColor
public RMColor getTextColor()
Returns the color of the first character of the xstring associated with this RMText.- Overrides:
getTextColorin classRMShape
-
setTextColor
public void setTextColor(RMColor aColor)
Sets the color of the characters in the XString associated with this RMText.- Overrides:
setTextColorin classRMShape
-
isUnderlined
public boolean isUnderlined()
Returns if char 0 is underlined.- Overrides:
isUnderlinedin classRMShape
-
setUnderlined
public void setUnderlined(boolean aFlag)
Sets all chars to be underlined.- Overrides:
setUnderlinedin classRMShape
-
getOutline
public RMXString.Outline getOutline()
Returns the outline for char 0.- Overrides:
getOutlinein classRMShape
-
setOutline
public void setOutline(RMXString.Outline anOutline)
Sets the Outline for all characters.- Overrides:
setOutlinein classRMShape
-
getAlignmentX
public RMTypes.AlignX getAlignmentX()
Returns the alignment for char 0.- Overrides:
getAlignmentXin classRMShape
-
setAlignmentX
public void setAlignmentX(RMTypes.AlignX anAlignmentX)
Sets the align for all chars. Because this takes an enum, we won't allow bindings to it.- Overrides:
setAlignmentXin classRMShape
-
getAlignString
public java.lang.String getAlignString()
Returns the alignment as a string, one of: "left", "center" or "right".
-
getAlignmentY
public RMTypes.AlignY getAlignmentY()
Returns the vertical alignment.- Overrides:
getAlignmentYin classRMShape
-
setAlignmentY
public void setAlignmentY(RMTypes.AlignY anAlignment)
Sets the vertical alignment. Because this takes an enum, we won't allow bindings to it.- Overrides:
setAlignmentYin classRMShape
-
getWraps
public byte getWraps()
Returns the wrapping behavior for over-filled rpgCloned text (NONE, WRAP, SHRINK).
-
setWraps
public void setWraps(byte aValue)
Sets the wrapping behavior for over-filled rpgCloned text (NONE, WRAP, SHRINK). No bindings because this takes a byte and no expression function returns a byte.
-
getPerformsWrap
public boolean getPerformsWrap()
Returns whether text should wrap around other shapes that cause wrap.
-
setPerformsWrap
public void setPerformsWrap(boolean aFlag)
Sets whether text should wrap around other shapes that cause wrap.
-
getCoalesceNewlines
public boolean getCoalesceNewlines()
Returns whether text should coalesce consecutive newlines in rpgClone.
-
setCoalesceNewlines
public void setCoalesceNewlines(boolean aFlag)
Sets whether text should coalesce consecutive newlines in rpgClone.
-
getDrawsSelectionRect
public boolean getDrawsSelectionRect()
Returns whether text should always draw at least a light gray border (useful when editing).
-
setDrawsSelectionRect
public void setDrawsSelectionRect(boolean aValue)
Sets whether text should always draw at least a light-gray border (useful when editing).
-
getCharSpacing
public float getCharSpacing()
Returns the char spacing at char 0.
-
setCharSpacing
public void setCharSpacing(float aValue)
Sets the char spacing for the text string.
-
getLineSpacing
public float getLineSpacing()
Returns the line spacing at char 0.
-
setLineSpacing
public void setLineSpacing(float aHeight)
Sets the line spacing for all chars.
-
getLineGap
public float getLineGap()
Returns the line gap at char 0.
-
setLineGap
public void setLineGap(float aHeight)
Sets the line gap for all chars.
-
getLineHeightMin
public float getLineHeightMin()
Returns the minimum line height at char 0.
-
setLineHeightMin
public void setLineHeightMin(float aHeight)
Sets the minimum line height for all chars.
-
getLineHeightMax
public float getLineHeightMax()
Returns the maximum line height at char 0.
-
setLineHeightMax
public void setLineHeightMax(float aHeight)
Sets the maximum line height for all chars.
-
getMargin
public java.awt.Insets getMargin()
Returns margin.
-
setMargin
public void setMargin(java.awt.Insets aMargin)
Sets margin. Not bindable because it takes Insets.
-
getMarginDefault
public java.awt.Insets getMarginDefault()
Returns the default margin of the text (top=1, left=2, right=2, bottom=0).
-
getMarginString
public java.lang.String getMarginString()
Returns the margin as a string.
-
setMarginString
public void setMarginString(java.lang.String aString)
Sets the margin as a string.
-
getMarginLeft
public int getMarginLeft()
Returns the left margin of the text (default to 2).
-
getMarginRight
public int getMarginRight()
Returns the right margin of the text (defaults to 2).
-
getMarginTop
public int getMarginTop()
Returns the top margin of the text (defaults to 1).
-
getMarginBottom
public int getMarginBottom()
Returns the bottom margin of the text (defaults to 0).
-
setWidth
public void setWidth(double aValue)
Override to revalidate.
-
setHeight
public void setHeight(double aValue)
Override to revalidate.
-
getPath
public RMPath getPath()
Returns the path for this shape (might be PathShape).- Overrides:
getPathin classRMRectShape
-
getPathInBounds
public RMPath getPathInBounds()
Overrides shape implementation to pass through getPathInBounds(inset).- Overrides:
getPathInBoundsin classRMShape
-
getPathInBounds
public RMPath getPathInBounds(int anInset)
Returns the shape's path scaled to the shape's current bounds.
-
peerDidChange
public void peerDidChange(RMShape aShape)
This notification method is called when any peer is changed.
-
getPathShape
public RMShape getPathShape()
Returns the shape that provides the path for this text to wrap text to.
-
setPathShape
public void setPathShape(RMShape aShape)
Sets the shape that provides the path for this text to wrap text to.
-
setRadius
public void setRadius(float aValue)
Overrides rectangle implementation to potentially clear path shape.- Overrides:
setRadiusin classRMRectShape
-
getLinkedText
public RMLinkedText getLinkedText()
Returns the linked text for this text (if any).
-
setLinkedText
public void setLinkedText(RMLinkedText aLinkedText)
Sets the linked text for this text (if any).
-
getTextLayout
public RMTextLayout getTextLayout()
Returns a text layout.
-
createTextLayout
public RMTextLayout createTextLayout()
Creates a new layout.
-
computePrefWidth
protected double computePrefWidth(double aHeight)
Override to compute from RMTextLayout.- Overrides:
computePrefWidthin classRMShape
-
computePrefHeight
protected double computePrefHeight(double aWidth)
Override to compute from RMTextLayout.- Overrides:
computePrefHeightin classRMShape
-
scaleFonts
public void scaleFonts(double aFactor)
Resizes all the fonts in text string by given factor.
-
rpgShape
@Nullable protected RMShape rpgShape(ReportOwner anRptOwner, RMShape aParent)
Generate report.
-
paginate
protected java.util.List<RMTextShape> paginate()
Paginates this text by creating linked texts to show all text and returns a list of this text and the linked texts.
-
resolvePageReferences
protected void resolvePageReferences(ReportOwner aRptOwner, java.lang.Object userInfo)
Re-does the RPG clone to resolve any @Page@ keys (assumed to be present in userInfo).- Overrides:
resolvePageReferencesin classRMShape
-
createDivideShapeRemainder
@Nullable protected RMShape createDivideShapeRemainder(byte anEdge)
Creates a shape suitable for the "remainder" portion of a divideShape call (just a clone by default).- Overrides:
createDivideShapeRemainderin classRMShape
-
getMaskPath
public RMPath getMaskPath()
Overridden from RMShape to provide the outlines of all the glyphs- Overrides:
getMaskPathin classRMShape
-
superSelectable
public boolean superSelectable()
Editor method - indicates that this shape can be super selected.- Overrides:
superSelectablein classRMShape
-
isStructured
public boolean isStructured()
Editor method.
-
paintShape
public void paintShape(RMShapePainter aPntr)
Paints a text shape.- Overrides:
paintShapein classRMShape
-
paintShapeBack
public void paintShapeBack(RMShapePainter aPntr)
Paints the text shape background.
-
paintShapeText
public void paintShapeText(RMShapePainter aPntr)
Paints the text shape text.
-
paintTextRun
protected void paintTextRun(RMShapePainter aPntr, RMTextRun aRun)
Paints the layout in a given graphics.
-
copyText
public void copyText(RMTextShape aText)
Copies attributes from given object.
-
getPropertyNames
protected void getPropertyNames(java.util.List<java.lang.String> aList)
Returns the property names for RMShape.- Overrides:
getPropertyNamesin classRMShape
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent anEvent)
Override to catch XString changes.- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener- Overrides:
propertyChangein classRMShape
-
revalidate
public void revalidate()
Override to do home-brew layout.
-
clone
@Nullable public RMTextShape clone()
Standard clone implementation.
-
toXML
public RXElement toXML(RXArchiver anArchiver)
XML archival.- Specified by:
toXMLin interfaceArchivable- Overrides:
toXMLin classRMRectShape
-
fromXML
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)
XML unarchival.- Specified by:
fromXMLin interfaceArchivable- Overrides:
fromXMLin classRMRectShape
-
fromXMLFinish
public void fromXMLFinish(RXArchiver anArchiver, RXElement anElement)
XML reference unarchival - to unarchive linked text.
-
toString
public java.lang.String toString()
Standard toString implementation.
-
isDeletable
public boolean isDeletable()
Description copied from class:RMShapeOverride this for shapes (like a table row) that don't don't make sense to delete by themselves.- Overrides:
isDeletablein classRMShape
-
getAutosizingDefault
public java.lang.String getAutosizingDefault()
Description copied from class:RMShapeReturns the autosizing default.- Overrides:
getAutosizingDefaultin classRMShape
-
-