public class RJPanelTool extends RBTool
Modifier and Type | Class and Description |
---|---|
static class |
RJPanelTool.BorderListCellRenderer
This class draws the buttons in the border chooser, plus holds utility methods for choosing borders
|
Tool.RMShapeHandle
Modifier and Type | Field and Description |
---|---|
protected static javax.swing.border.Border[] |
_borders |
HandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
Constructor and Description |
---|
RJPanelTool()
Creates a new panel shape tool.
|
Modifier and Type | Method and Description |
---|---|
void |
buildShapesFromComponents(javax.swing.JComponent aComponent,
RJShape aShape,
RMShape aParentShape)
Creates the appropriate RJShape for given RJComponent and adds it to given shape.
|
java.lang.Class |
getShapeClass()
Returns the class this tool is responsible for.
|
RJPanel |
getUI()
Returns the Swing UI panel.
|
void |
resetUI()
Updates the Swing UI from the currently selected panel shape.
|
void |
respondUI(java.lang.Object anObj)
Updates the currently selected panel shape from the Swing UI controls.
|
BuildShapesFromComponents, getComponentPacked, getHandleCount, getToolRB, SyncComponentsFromShapes, syncComponentsFromShapes
activateTool, deactivateTool, didBecomeSuperSelectedShapeInEditor, editor, flushChanges, getCoreTool, getCoreToolIndex, getHandleAtPoint, getHandlePoint, getHandleRect, getImageIcon, getImageIcon, getSelectedShape, getSelectedShapes, getSelectTool, getShapeHandleAtPoint, getTool, getTool, getWindowTitle, isInstance, isSelected, isSuperSelected, mouseDragged, mouseDragged, mouseMoved, mouseMoved, mousePressed, mousePressed, mousePressedSelection, mouseReleased, mouseReleased, moveShapeHandle, newInstance, paintSelectedShape, paintSuperSelectedShape, paintTool, processKeyEvent, reactivateTool, willLoseSuperSelectionInEditor
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
public java.lang.Class getShapeClass()
getShapeClass
in class Tool
public void resetUI()
public void respondUI(java.lang.Object anObj)
public void buildShapesFromComponents(javax.swing.JComponent aComponent, RJShape aShape, RMShape aParentShape)
buildShapesFromComponents
in class RBTool