Package com.reportmill.editor
Class RMEditorShapes
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.editor.RMEditorShapes
- All Implemented Interfaces:
- RMArchiver.Archiving,- Cloneable
Handles editor methods specific to clipboard operations (cut, copy paste).
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddCrossTab(RMEditor anEditor) Adds a crosstab to the given editor.static voidAdds a graph to the given editor.static voidaddImagePlaceholder(RMEditor anEditor) Adds an image placeholder to the given editor.static voidAdds a labels template to the given editor.static voidAdds a table to the given editor.static voidbringToFront(RMEditor anEditor) Orders all currently selected shapes to the front.static voidcombinePaths(RMEditor anEditor) Create new shape by coalescing the outer perimeters of the currently selected shapes.static voidconvertToImage(RMEditor anEditor) Converts currently selected shape to image.static voidequallySpaceColumn(RMEditor anEditor) Arranges currently selected shapes such that they have the same vertical distance between them.static voidequallySpaceRow(RMEditor anEditor) Arranges currently selected shapes such that they have the same horizontal distance between them.static intReturns the horizontal alignment of the text of the currently selected shapes.static floatgetCharSpacing(RMEditor anEditor) Returns the characters spacing for the currently selected shape.static RMFontReturns the font of editor's selected shape.static RMFormatReturns the format of the editor's selected shape.static floatgetLineGap(RMEditor anEditor) Returns the line gap at char 0 (or selected char, if editing).static floatgetLineHeightMax(RMEditor anEditor) Returns the maximum line height at char 0 (or selected char, if editing).static floatgetLineHeightMin(RMEditor anEditor) Returns the minimum line height at char 0 (or selected char, if editing).static floatgetLineSpacing(RMEditor anEditor) Returns the line spacing at char 0 (or selected char, if editing).static RMXString.OutlinegetOutline(RMEditor anEditor) Returns the outline state of the currently selected shape (null if none).static RMColorgetSelectedColor(RMEditor anEditor) Returns the specified type of color (text, stroke or fill) of editor's selected shape.static voidgroupInScene3D(RMEditor anEditor) Adds the selected shapes to a Scene3D Shape.static voidgroupInSwitchShape(RMEditor anEditor) Adds the selected shapes to a Switch Shape.static voidgroupShapes(RMEditor editor) Creates a group shape, adds the group shape to the worldShape and adds the selected shapes to the group shape.static voidgroupShapes(RMEditor anEditor, List shapes, RMShape groupShape) Groups the given shape list to the given group shape.static booleanisUnderlined(RMEditor anEditor) Returns whether the currently selected shape is underlined.static voidSwaps the "boldness" of any text in the currently selected shapes.static voidmakeColumnCenter(RMEditor anEditor) Arranges currently selected shapes in a column relative to their center.static voidmakeColumnLeft(RMEditor anEditor) Arranges currently selected shapes in a column relative to their left border.static voidmakeColumnRight(RMEditor anEditor) Arranges currently selected shapes in a column relative to their right border.static voidmakeItalic(RMEditor anEditor) Swaps the "italicness" of any text in the currently selected shapes.static voidmakeRowBottom(RMEditor anEditor) Arranges currently selected shapes in a row relative to their bottom.static voidmakeRowCenter(RMEditor anEditor) Arranges currently selected shapes in a row relative to their center.static voidmakeRowTop(RMEditor anEditor) Arranges currently selected shapes in a row relative to their top.static voidmakeSameHeight(RMEditor anEditor) Makes currently selected shapes all have the same height as the first selected shape.static voidmakeSameSize(RMEditor anEditor) Makes currently selected shapes all have the same width and height as the first selected shape.static voidmakeSameWidth(RMEditor anEditor) Makes currently selected shapes all have the same width as the first selected shape.static voidmoveDownOnePoint(RMEditor anEditor) Moves all the currently selected shapes one point down.static voidmoveLeftOnePoint(RMEditor anEditor) Moves all the currently selected shapes one point to the left.static voidmoveRightOnePoint(RMEditor anEditor) Moves all the currently selected shapes one point to the right.static voidmoveToNewLayer(RMEditor anEditor) Moves all the currently selected shapes to a new page layer.static voidmoveUpOnePoint(RMEditor anEditor) Moves all the currently selected shapes one point up.static voidrunListKeyPanel(RMEditor anEditor, String aKeyPath) Runs the list key panel to add a table, graph, crosstab or labels to given editor.static voidsendToBack(RMEditor anEditor) Orders all currently selected shapes to the back.static voidSets the horizontal alignment of the text of the currently selected shapes.static voidsetCharSpacing(RMEditor anEditor, float aValue) Sets the character spacing for the currently selected shapes.static voidSets the font of editor's selected shape(s).static voidSets the format of editor's selected shape(s).static voidsetLineGap(RMEditor anEditor, float aHeight) Sets the line gap for all chars (or all selected chars, if editing).static voidsetLineHeightMax(RMEditor anEditor, float aHeight) Sets the maximum line height for all chars (or all selected chars, if eiditing).static voidsetLineHeightMin(RMEditor anEditor, float aHeight) Sets the minimum line height for all chars (or all selected chars, if editing).static voidsetLineSpacing(RMEditor anEditor, float aHeight) Sets the line spacing for all chars (or all selected chars, if editing).static voidsetOutline(RMEditor anEditor) Sets the currently selected shapes to be outlined.static voidsetOutline(RMEditor anEditor, RMXString.Outline anOutline) Sets the outline state of the currently selected shapes.static voidsetSelectedColor(RMEditor anEditor, RMColor aColor) Sets the specified type of color (text, stroke or fill) of editor's selected shape.static voidsetSizeToFit(RMEditor anEditor) Makes currently selected shapes size to fit content.static voidsetSubscript(RMEditor anEditor) Sets the currently selected shapes to show text as subscript.static voidsetSuperscript(RMEditor anEditor) Sets the currently selected shapes to show text as superscript.static voidsetUnderlined(RMEditor anEditor) Sets the currently selected shapes to be underlined.static voidsplitHorizontal(RMEditor editor) Splits the selected shape in half on the horizontal axis.static voidsubtractPaths(RMEditor anEditor) Create new shape by coalescing the outer perimeters of the currently selected shapes.static voidungroupShapes(RMEditor anEditor) Ungroups any currently selected group shapes.Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
- 
Constructor Details- 
RMEditorShapespublic RMEditorShapes()
 
- 
- 
Method Details- 
groupShapesCreates a group shape, adds the group shape to the worldShape and adds the selected shapes to the group shape. The group shape is then made the only object in the selectedShapes array.
- 
groupShapesGroups the given shape list to the given group shape.
- 
ungroupShapesUngroups any currently selected group shapes.
- 
bringToFrontOrders all currently selected shapes to the front.
- 
sendToBackOrders all currently selected shapes to the back.
- 
makeRowTopArranges currently selected shapes in a row relative to their top.
- 
makeRowCenterArranges currently selected shapes in a row relative to their center.
- 
makeRowBottomArranges currently selected shapes in a row relative to their bottom.
- 
makeColumnLeftArranges currently selected shapes in a column relative to their left border.
- 
makeColumnCenterArranges currently selected shapes in a column relative to their center.
- 
makeColumnRightArranges currently selected shapes in a column relative to their right border.
- 
makeSameSizeMakes currently selected shapes all have the same width and height as the first selected shape.
- 
makeSameWidthMakes currently selected shapes all have the same width as the first selected shape.
- 
makeSameHeightMakes currently selected shapes all have the same height as the first selected shape.
- 
setSizeToFitMakes currently selected shapes size to fit content.
- 
equallySpaceRowArranges currently selected shapes such that they have the same horizontal distance between them.
- 
equallySpaceColumnArranges currently selected shapes such that they have the same vertical distance between them.
- 
groupInSwitchShapeAdds the selected shapes to a Switch Shape.
- 
groupInScene3DAdds the selected shapes to a Scene3D Shape.
- 
combinePathsCreate new shape by coalescing the outer perimeters of the currently selected shapes.
- 
subtractPathsCreate new shape by coalescing the outer perimeters of the currently selected shapes.
- 
convertToImageConverts currently selected shape to image.
- 
moveRightOnePointMoves all the currently selected shapes one point to the right.
- 
moveLeftOnePointMoves all the currently selected shapes one point to the left.
- 
moveUpOnePointMoves all the currently selected shapes one point up.
- 
moveDownOnePointMoves all the currently selected shapes one point down.
- 
moveToNewLayerMoves all the currently selected shapes to a new page layer.
- 
getSelectedColorReturns the specified type of color (text, stroke or fill) of editor's selected shape.
- 
setSelectedColorSets the specified type of color (text, stroke or fill) of editor's selected shape.
- 
getFontReturns the font of editor's selected shape.
- 
setFontSets the font of editor's selected shape(s).
- 
makeBoldSwaps the "boldness" of any text in the currently selected shapes.
- 
makeItalicSwaps the "italicness" of any text in the currently selected shapes.
- 
isUnderlinedReturns whether the currently selected shape is underlined.
- 
setUnderlinedSets the currently selected shapes to be underlined.
- 
getOutlineReturns the outline state of the currently selected shape (null if none).
- 
setOutlineSets the currently selected shapes to be outlined.
- 
setOutlineSets the outline state of the currently selected shapes.
- 
getAlignReturns the horizontal alignment of the text of the currently selected shapes.
- 
setAlignSets the horizontal alignment of the text of the currently selected shapes.
- 
setSuperscriptSets the currently selected shapes to show text as superscript.
- 
setSubscriptSets the currently selected shapes to show text as subscript.
- 
getCharSpacingReturns the characters spacing for the currently selected shape.
- 
setCharSpacingSets the character spacing for the currently selected shapes.
- 
getLineSpacingReturns the line spacing at char 0 (or selected char, if editing).
- 
setLineSpacingSets the line spacing for all chars (or all selected chars, if editing).
- 
getLineGapReturns the line gap at char 0 (or selected char, if editing).
- 
setLineGapSets the line gap for all chars (or all selected chars, if editing).
- 
getLineHeightMinReturns the minimum line height at char 0 (or selected char, if editing).
- 
setLineHeightMinSets the minimum line height for all chars (or all selected chars, if editing).
- 
getLineHeightMaxReturns the maximum line height at char 0 (or selected char, if editing).
- 
setLineHeightMaxSets the maximum line height for all chars (or all selected chars, if eiditing).
- 
getFormatReturns the format of the editor's selected shape.
- 
setFormatSets the format of editor's selected shape(s).
- 
splitHorizontalSplits the selected shape in half on the horizontal axis.
- 
addTableAdds a table to the given editor.
- 
addCrossTabAdds a crosstab to the given editor.
- 
addLabelsAdds a labels template to the given editor.
- 
addGraphAdds a graph to the given editor.
- 
runListKeyPanelRuns the list key panel to add a table, graph, crosstab or labels to given editor.
- 
addImagePlaceholderAdds an image placeholder to the given editor.
 
-