Package com.ribsapp.shapes
Class RBTool
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.panels.Tool
com.ribsapp.shapes.RBTool
- All Implemented Interfaces:
- RMArchiver.Archiving,- Cloneable
- Direct Known Subclasses:
- JProgressBarTool,- JScrollPaneTool,- JSeparatorTool,- JSliderTool,- JSpinnerTool,- JSplitPaneTool,- JTabbedPaneTool,- JTableTool,- JTreeTool,- RBDocumentTool,- RBPageTool,- RJColorDockTool,- RJColorWellTool,- RJCustomViewTool,- RJMenuButtonTool,- RJPanelTool,- RJSwitchPaneTool,- RJTextTool,- RJThumbWheelTool
The base tool class for ribs tool.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.reportmill.panels.ToolTool.RMShapeHandle
- 
Field SummaryFields inherited from class com.reportmill.panels.ToolHandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidbuildShapesFromComponents(JComponent aComponent, RJShape aShape, RMShape aParentShape) Creates the appropriate RJShape for given RJComponent and adds it to given shape.static RJShapeBuildShapesFromComponents(JComponent aComponent, RMShape aParentShape) Creates the appropriate RJShape for given RJComponent and adds it to given shape.static JComponentgetComponentPacked(JComponent aComponent) Returns a copy of the given component appropriately layed out.intgetHandleCount(RMShape aShape) Returns the number of handles for this shape.static RBToolReturns the specific tool for a given shape.voidsyncComponentsFromShapes(RMShape aShape) Synchronizes component heirarchy from shape heirarchy (shapes may have been added, removed, reordered).static voidSyncComponentsFromShapes(RBDocument aDocument) Synchronizes shape/component heirarchy for given document.Methods inherited from class com.reportmill.panels.ToolactivateTool, deactivateTool, didBecomeSuperSelectedShapeInEditor, editor, flushChanges, getCoreTool, getCoreToolIndex, getHandleAtPoint, getHandlePoint, getHandleRect, getImageIcon, getImageIcon, getSelectedShape, getSelectedShapes, getSelectTool, getShapeClass, getShapeHandleAtPoint, getTool, getTool, getUI, getWindowTitle, isInstance, isSelected, isSuperSelected, mouseDragged, mouseDragged, mouseMoved, mouseMoved, mousePressed, mousePressed, mousePressedSelection, mouseReleased, mouseReleased, moveShapeHandle, newInstance, paintSelectedShape, paintSuperSelectedShape, paintTool, processKeyEvent, reactivateTool, resetUI, respondUI, willLoseSuperSelectionInEditorMethods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
- 
Constructor Details- 
RBToolpublic RBTool()
 
- 
- 
Method Details- 
getToolRBReturns the specific tool for a given shape.
- 
getHandleCountReturns the number of handles for this shape.- Overrides:
- getHandleCountin class- Tool
 
- 
BuildShapesFromComponentsCreates the appropriate RJShape for given RJComponent and adds it to given shape.
- 
buildShapesFromComponentsCreates the appropriate RJShape for given RJComponent and adds it to given shape.
- 
SyncComponentsFromShapesSynchronizes shape/component heirarchy for given document.
- 
syncComponentsFromShapesSynchronizes component heirarchy from shape heirarchy (shapes may have been added, removed, reordered).
- 
getComponentPackedReturns a copy of the given component appropriately layed out.
 
-