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,- java.lang.Cloneable
 - Direct Known Subclasses:
- JProgressBarTool,- JScrollPaneTool,- JSeparatorTool,- JSliderTool,- JSpinnerTool,- JSplitPaneTool,- JTabbedPaneTool,- JTableTool,- JTreeTool,- RBDocumentTool,- RBPageTool,- RJColorDockTool,- RJColorWellTool,- RJCustomViewTool,- RJMenuButtonTool,- RJPanelTool,- RJSwitchPaneTool,- RJTextTool,- RJThumbWheelTool
 
 public class RBTool extends Tool The base tool class for ribs tool.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.reportmill.panels.ToolTool.RMShapeHandle
 
- 
 - 
Field Summary- 
Fields inherited from class com.reportmill.panels.ToolHandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
 
- 
 - 
Constructor SummaryConstructors Constructor Description RBTool()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildShapesFromComponents(javax.swing.JComponent aComponent, RJShape aShape, RMShape aParentShape)Creates the appropriate RJShape for given RJComponent and adds it to given shape.static RJShapeBuildShapesFromComponents(javax.swing.JComponent aComponent, RMShape aParentShape)Creates the appropriate RJShape for given RJComponent and adds it to given shape.static javax.swing.JComponentgetComponentPacked(javax.swing.JComponent aComponent)Returns a copy of the given component appropriately layed out.intgetHandleCount(RMShape aShape)Returns the number of handles for this shape.static RBToolgetToolRB(RMShape aShape)Returns 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, willLoseSuperSelectionInEditor
 - 
Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
 
- 
 
- 
- 
- 
Method Detail- 
getToolRBpublic static RBTool getToolRB(RMShape aShape) Returns the specific tool for a given shape.
 - 
getHandleCountpublic int getHandleCount(RMShape aShape) Returns the number of handles for this shape.- Overrides:
- getHandleCountin class- Tool
 
 - 
BuildShapesFromComponentspublic static RJShape BuildShapesFromComponents(javax.swing.JComponent aComponent, RMShape aParentShape) Creates the appropriate RJShape for given RJComponent and adds it to given shape.
 - 
buildShapesFromComponentspublic void buildShapesFromComponents(javax.swing.JComponent aComponent, RJShape aShape, RMShape aParentShape)Creates the appropriate RJShape for given RJComponent and adds it to given shape.
 - 
SyncComponentsFromShapespublic static void SyncComponentsFromShapes(RBDocument aDocument) Synchronizes shape/component heirarchy for given document.
 - 
syncComponentsFromShapespublic void syncComponentsFromShapes(RMShape aShape) Synchronizes component heirarchy from shape heirarchy (shapes may have been added, removed, reordered).
 - 
getComponentPackedpublic static javax.swing.JComponent getComponentPacked(javax.swing.JComponent aComponent) Returns a copy of the given component appropriately layed out.
 
- 
 
-