Package com.reportmill.editor
Class RMEditorShapes
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.editor.RMEditorShapes
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- java.lang.Cloneable
 
 public class RMEditorShapes extends RMObject Handles editor methods specific to clipboard operations (cut, copy paste).
- 
- 
Constructor SummaryConstructors Constructor Description RMEditorShapes()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddCrossTab(RMEditor anEditor)Adds a crosstab to the given editor.static voidaddGraph(RMEditor anEditor)Adds a graph to the given editor.static voidaddImagePlaceholder(RMEditor anEditor)Adds an image placeholder to the given editor.static voidaddLabels(RMEditor anEditor)Adds a labels template to the given editor.static voidaddTable(RMEditor anEditor)Adds 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 intgetAlign(RMEditor anEditor)Returns 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 RMFontgetFont(RMEditor anEditor)Returns the font of editor's selected shape.static RMFormatgetFormat(RMEditor anEditor)Returns 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, java.util.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 voidmakeBold(RMEditor anEditor)Swaps 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, java.lang.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 voidsetAlign(RMEditor anEditor, int anAlign)Sets 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 voidsetFont(RMEditor anEditor, RMFont aFont)Sets the font of editor's selected shape(s).static voidsetFormat(RMEditor anEditor, RMFormat aFormat)Sets 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
 
- 
 
- 
- 
- 
Method Detail- 
groupShapespublic static void groupShapes(RMEditor editor) Creates 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.
 - 
groupShapespublic static void groupShapes(RMEditor anEditor, java.util.List shapes, RMShape groupShape) Groups the given shape list to the given group shape.
 - 
ungroupShapespublic static void ungroupShapes(RMEditor anEditor) Ungroups any currently selected group shapes.
 - 
bringToFrontpublic static void bringToFront(RMEditor anEditor) Orders all currently selected shapes to the front.
 - 
sendToBackpublic static void sendToBack(RMEditor anEditor) Orders all currently selected shapes to the back.
 - 
makeRowToppublic static void makeRowTop(RMEditor anEditor) Arranges currently selected shapes in a row relative to their top.
 - 
makeRowCenterpublic static void makeRowCenter(RMEditor anEditor) Arranges currently selected shapes in a row relative to their center.
 - 
makeRowBottompublic static void makeRowBottom(RMEditor anEditor) Arranges currently selected shapes in a row relative to their bottom.
 - 
makeColumnLeftpublic static void makeColumnLeft(RMEditor anEditor) Arranges currently selected shapes in a column relative to their left border.
 - 
makeColumnCenterpublic static void makeColumnCenter(RMEditor anEditor) Arranges currently selected shapes in a column relative to their center.
 - 
makeColumnRightpublic static void makeColumnRight(RMEditor anEditor) Arranges currently selected shapes in a column relative to their right border.
 - 
makeSameSizepublic static void makeSameSize(RMEditor anEditor) Makes currently selected shapes all have the same width and height as the first selected shape.
 - 
makeSameWidthpublic static void makeSameWidth(RMEditor anEditor) Makes currently selected shapes all have the same width as the first selected shape.
 - 
makeSameHeightpublic static void makeSameHeight(RMEditor anEditor) Makes currently selected shapes all have the same height as the first selected shape.
 - 
setSizeToFitpublic static void setSizeToFit(RMEditor anEditor) Makes currently selected shapes size to fit content.
 - 
equallySpaceRowpublic static void equallySpaceRow(RMEditor anEditor) Arranges currently selected shapes such that they have the same horizontal distance between them.
 - 
equallySpaceColumnpublic static void equallySpaceColumn(RMEditor anEditor) Arranges currently selected shapes such that they have the same vertical distance between them.
 - 
groupInSwitchShapepublic static void groupInSwitchShape(RMEditor anEditor) Adds the selected shapes to a Switch Shape.
 - 
groupInScene3Dpublic static void groupInScene3D(RMEditor anEditor) Adds the selected shapes to a Scene3D Shape.
 - 
combinePathspublic static void combinePaths(RMEditor anEditor) Create new shape by coalescing the outer perimeters of the currently selected shapes.
 - 
subtractPathspublic static void subtractPaths(RMEditor anEditor) Create new shape by coalescing the outer perimeters of the currently selected shapes.
 - 
convertToImagepublic static void convertToImage(RMEditor anEditor) Converts currently selected shape to image.
 - 
moveRightOnePointpublic static void moveRightOnePoint(RMEditor anEditor) Moves all the currently selected shapes one point to the right.
 - 
moveLeftOnePointpublic static void moveLeftOnePoint(RMEditor anEditor) Moves all the currently selected shapes one point to the left.
 - 
moveUpOnePointpublic static void moveUpOnePoint(RMEditor anEditor) Moves all the currently selected shapes one point up.
 - 
moveDownOnePointpublic static void moveDownOnePoint(RMEditor anEditor) Moves all the currently selected shapes one point down.
 - 
moveToNewLayerpublic static void moveToNewLayer(RMEditor anEditor) Moves all the currently selected shapes to a new page layer.
 - 
getSelectedColorpublic static RMColor getSelectedColor(RMEditor anEditor) Returns the specified type of color (text, stroke or fill) of editor's selected shape.
 - 
setSelectedColorpublic static void setSelectedColor(RMEditor anEditor, RMColor aColor) Sets the specified type of color (text, stroke or fill) of editor's selected shape.
 - 
getFontpublic static RMFont getFont(RMEditor anEditor) Returns the font of editor's selected shape.
 - 
setFontpublic static void setFont(RMEditor anEditor, RMFont aFont) Sets the font of editor's selected shape(s).
 - 
makeBoldpublic static void makeBold(RMEditor anEditor) Swaps the "boldness" of any text in the currently selected shapes.
 - 
makeItalicpublic static void makeItalic(RMEditor anEditor) Swaps the "italicness" of any text in the currently selected shapes.
 - 
isUnderlinedpublic static boolean isUnderlined(RMEditor anEditor) Returns whether the currently selected shape is underlined.
 - 
setUnderlinedpublic static void setUnderlined(RMEditor anEditor) Sets the currently selected shapes to be underlined.
 - 
getOutlinepublic static RMXString.Outline getOutline(RMEditor anEditor) Returns the outline state of the currently selected shape (null if none).
 - 
setOutlinepublic static void setOutline(RMEditor anEditor) Sets the currently selected shapes to be outlined.
 - 
setOutlinepublic static void setOutline(RMEditor anEditor, RMXString.Outline anOutline) Sets the outline state of the currently selected shapes.
 - 
getAlignpublic static int getAlign(RMEditor anEditor) Returns the horizontal alignment of the text of the currently selected shapes.
 - 
setAlignpublic static void setAlign(RMEditor anEditor, int anAlign) Sets the horizontal alignment of the text of the currently selected shapes.
 - 
setSuperscriptpublic static void setSuperscript(RMEditor anEditor) Sets the currently selected shapes to show text as superscript.
 - 
setSubscriptpublic static void setSubscript(RMEditor anEditor) Sets the currently selected shapes to show text as subscript.
 - 
getCharSpacingpublic static float getCharSpacing(RMEditor anEditor) Returns the characters spacing for the currently selected shape.
 - 
setCharSpacingpublic static void setCharSpacing(RMEditor anEditor, float aValue) Sets the character spacing for the currently selected shapes.
 - 
getLineSpacingpublic static float getLineSpacing(RMEditor anEditor) Returns the line spacing at char 0 (or selected char, if editing).
 - 
setLineSpacingpublic static void setLineSpacing(RMEditor anEditor, float aHeight) Sets the line spacing for all chars (or all selected chars, if editing).
 - 
getLineGappublic static float getLineGap(RMEditor anEditor) Returns the line gap at char 0 (or selected char, if editing).
 - 
setLineGappublic static void setLineGap(RMEditor anEditor, float aHeight) Sets the line gap for all chars (or all selected chars, if editing).
 - 
getLineHeightMinpublic static float getLineHeightMin(RMEditor anEditor) Returns the minimum line height at char 0 (or selected char, if editing).
 - 
setLineHeightMinpublic static void setLineHeightMin(RMEditor anEditor, float aHeight) Sets the minimum line height for all chars (or all selected chars, if editing).
 - 
getLineHeightMaxpublic static float getLineHeightMax(RMEditor anEditor) Returns the maximum line height at char 0 (or selected char, if editing).
 - 
setLineHeightMaxpublic static void setLineHeightMax(RMEditor anEditor, float aHeight) Sets the maximum line height for all chars (or all selected chars, if eiditing).
 - 
getFormatpublic static RMFormat getFormat(RMEditor anEditor) Returns the format of the editor's selected shape.
 - 
setFormatpublic static void setFormat(RMEditor anEditor, RMFormat aFormat) Sets the format of editor's selected shape(s).
 - 
splitHorizontalpublic static void splitHorizontal(RMEditor editor) Splits the selected shape in half on the horizontal axis.
 - 
addTablepublic static void addTable(RMEditor anEditor) Adds a table to the given editor.
 - 
addCrossTabpublic static void addCrossTab(RMEditor anEditor) Adds a crosstab to the given editor.
 - 
addLabelspublic static void addLabels(RMEditor anEditor) Adds a labels template to the given editor.
 - 
addGraphpublic static void addGraph(RMEditor anEditor) Adds a graph to the given editor.
 - 
runListKeyPanelpublic static void runListKeyPanel(RMEditor anEditor, java.lang.String aKeyPath) Runs the list key panel to add a table, graph, crosstab or labels to given editor.
 - 
addImagePlaceholderpublic static void addImagePlaceholder(RMEditor anEditor) Adds an image placeholder to the given editor.
 
- 
 
-