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.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 Constructor Description RBTool()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildShapesFromComponents(javax.swing.JComponent aComponent, RJShape aShape, RMShape aParentShape)
Creates the appropriate RJShape for given RJComponent and adds it to given shape.static RJShape
BuildShapesFromComponents(javax.swing.JComponent aComponent, RMShape aParentShape)
Creates the appropriate RJShape for given RJComponent and adds it to given shape.static javax.swing.JComponent
getComponentPacked(javax.swing.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
getToolRB(RMShape aShape)
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
-
-
-
-
Method Detail
-
getToolRB
public static RBTool getToolRB(RMShape aShape)
Returns the specific tool for a given shape.
-
getHandleCount
public int getHandleCount(RMShape aShape)
Returns the number of handles for this shape.- Overrides:
getHandleCount
in classTool
-
BuildShapesFromComponents
public static RJShape BuildShapesFromComponents(javax.swing.JComponent aComponent, RMShape aParentShape)
Creates the appropriate RJShape for given RJComponent and adds it to given shape.
-
buildShapesFromComponents
public void buildShapesFromComponents(javax.swing.JComponent aComponent, RJShape aShape, RMShape aParentShape)
Creates the appropriate RJShape for given RJComponent and adds it to given shape.
-
SyncComponentsFromShapes
public static void SyncComponentsFromShapes(RBDocument aDocument)
Synchronizes shape/component heirarchy for given document.
-
syncComponentsFromShapes
public void syncComponentsFromShapes(RMShape aShape)
Synchronizes component heirarchy from shape heirarchy (shapes may have been added, removed, reordered).
-
getComponentPacked
public static javax.swing.JComponent getComponentPacked(javax.swing.JComponent aComponent)
Returns a copy of the given component appropriately layed out.
-
-