public class GradientTool extends AbstractDesignTool
IDesignTool.ToolbarInitializer
actionMap, changeSupport, designable, HANDLES_PROPERTY, inputMap, interactionLayer, panel, workspace
Constructor and Description |
---|
GradientTool() |
Modifier and Type | Method and Description |
---|---|
boolean |
isRelevantFor(javax.swing.JComponent component) |
ISelectionControl |
newSelectionControl()
Gives the tool a chance to create a new selection control object to install handles on the selection.
|
void |
onClick(java.awt.Point p,
int modifiers)
Called when the user clicks in the design space.
|
addAction, addKeyBinding, addKeyBinding, addPropertyChangeListener, createCursor, findDropContainer, getAction, getCursor, getDragHighlight, getOffsettingBounds, getOriginalBounds, getStatusBarText, getToolbarInitializer, install, isInstalled, itemMovable, movable, newToolbarSpinner, newToolbarSpinner, newToolbarSpinner, onClickAlterSelection, onDoubleClick, onDrag, onDragEnd, onDragStart, onKeyEvent, onMove, onPopupTrigger, onPress, onRelease, onRightClickSwitchToSelectionTool, removePropertyChangeListener, uninstall
public ISelectionControl newSelectionControl()
IDesignTool
newSelectionControl
in interface IDesignTool
newSelectionControl
in class AbstractDesignTool
public boolean isRelevantFor(javax.swing.JComponent component)
isRelevantFor
in class AbstractDesignTool
public void onClick(java.awt.Point p, int modifiers)
IDesignTool
onClick
in interface IDesignTool
onClick
in class AbstractDesignTool
p
- The point at which they clicked. Relative to the designable container.modifiers
- A bitmask of modifiers. Comes from InputEvent.getModifiersEx()