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 Summary
Nested classes/interfaces inherited from class com.reportmill.panels.Tool
Tool.RMShapeHandle
-
Field Summary
Fields inherited from class com.reportmill.panels.Tool
HandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildShapesFromComponents
(JComponent aComponent, RJShape aShape, RMShape aParentShape) Creates the appropriate RJShape for given RJComponent and adds it to given shape.static RJShape
BuildShapesFromComponents
(JComponent aComponent, RMShape aParentShape) Creates the appropriate RJShape for given RJComponent and adds it to given shape.static JComponent
getComponentPacked
(JComponent aComponent) Returns a copy of the given component appropriately layed out.int
getHandleCount
(RMShape aShape) Returns the number of handles for this shape.static RBTool
Returns the specific tool for a given shape.void
syncComponentsFromShapes
(RMShape aShape) Synchronizes component heirarchy from shape heirarchy (shapes may have been added, removed, reordered).static void
SyncComponentsFromShapes
(RBDocument aDocument) Synchronizes shape/component heirarchy for given document.Methods inherited from class com.reportmill.panels.Tool
activateTool, 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.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
Constructor Details
-
RBTool
public RBTool()
-
-
Method Details
-
getToolRB
Returns the specific tool for a given shape. -
getHandleCount
Returns the number of handles for this shape.- Overrides:
getHandleCount
in classTool
-
BuildShapesFromComponents
Creates the appropriate RJShape for given RJComponent and adds it to given shape. -
buildShapesFromComponents
Creates the appropriate RJShape for given RJComponent and adds it to given shape. -
SyncComponentsFromShapes
Synchronizes shape/component heirarchy for given document. -
syncComponentsFromShapes
Synchronizes component heirarchy from shape heirarchy (shapes may have been added, removed, reordered). -
getComponentPacked
Returns a copy of the given component appropriately layed out.
-