public class JSplitPaneTool extends RBTool
Tool.RMShapeHandleHandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth| Constructor and Description |
|---|
JSplitPaneTool()
Creates a tabbed pane 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.
|
static javax.swing.JSplitPane |
buildSplitpaneWithChildren(javax.swing.JComponent c1,
javax.swing.JComponent c2,
int splitways) |
java.lang.Class |
getShapeClass()
Returns the class that this tool is responsible for.
|
RJPanel |
getUI()
Returns the Swing UI panel for this inspector.
|
java.lang.String |
getWindowTitle()
Returns the name to be used for this tool in inspector window title.
|
static JSplitPaneShape |
groupInSplitpanes(java.util.List allShapes)
Group multiple shapes into splitpanes.
|
void |
mouseDragged(RMShape aShape,
java.awt.event.MouseEvent anEvent)
Event handling for shape editing.
|
void |
mousePressed(RMShape aShape,
java.awt.event.MouseEvent anEvent)
Event handling for shape editing.
|
void |
paintSuperSelectedShape(RMShape aShape,
java.awt.Graphics2D g)
Draw some sort of indicator for super-selected splitpanes.
|
void |
resetUI()
Updates the Swing UI panel controls from the currently selected button shape.
|
void |
respondUI(javax.swing.JComponent anObj)
Updates the currently selected button shape from the Swing UI panel controls.
|
void |
syncComponentsFromShapes(RMShape aShape)
Synchronizes component heirarchy from shape heirarchy (shapes may have been added, removed, reordered).
|
BuildShapesFromComponents, getComponentPacked, getHandleCount, getToolRB, SyncComponentsFromShapesactivateTool, deactivateTool, didBecomeSuperSelectedShapeInEditor, editor, flushChanges, getCoreTool, getCoreToolIndex, getHandleAtPoint, getHandlePoint, getHandleRect, getImageIcon, getImageIcon, getSelectedShape, getSelectedShapes, getSelectTool, getShapeHandleAtPoint, getTool, getTool, isInstance, isSelected, isSuperSelected, mouseDragged, mouseMoved, mouseMoved, mousePressed, mousePressedSelection, mouseReleased, mouseReleased, moveShapeHandle, newInstance, paintSelectedShape, paintTool, processKeyEvent, reactivateTool, respondUI, willLoseSuperSelectionInEditorclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEqualspublic java.lang.Class getShapeClass()
getShapeClass in class Toolpublic java.lang.String getWindowTitle()
getWindowTitle in class Toolpublic RJPanel getUI()
public void resetUI()
public void respondUI(javax.swing.JComponent anObj)
public void buildShapesFromComponents(javax.swing.JComponent aComponent,
RJShape aShape,
RMShape aParentShape)
buildShapesFromComponents in class RBToolpublic void syncComponentsFromShapes(RMShape aShape)
syncComponentsFromShapes in class RBToolpublic void mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent)
mousePressed in class Toolpublic void mouseDragged(RMShape aShape, java.awt.event.MouseEvent anEvent)
mouseDragged in class Toolpublic static JSplitPaneShape groupInSplitpanes(java.util.List allShapes)
public static javax.swing.JSplitPane buildSplitpaneWithChildren(javax.swing.JComponent c1,
javax.swing.JComponent c2,
int splitways)
public void paintSuperSelectedShape(RMShape aShape, java.awt.Graphics2D g)
paintSuperSelectedShape in class Tool