| java.lang.Object org.netbeans.modules.visualweb.designer.Interaction org.netbeans.modules.visualweb.designer.Resizer
Resizer | public class Resizer extends Interaction implements KeyListener(Code) | | Handle drawing (and "undrawing"!) a resize outline, as well as
communicating a resize event to the GridHandler on completion
author: Tor Norbye |
Constructor Summary | |
public | Resizer(WebForm webform, Element componentRootElement, CssBox box, int direction, Shape alloc, boolean preserveAspect) Create a resizer which tracks resize mouse operations.
Parameters: element - The element to be resized. Parameters: direction - The direction to resize the view. Parameters: alloc - The original shape of the view/component being resized Parameters: preserveAspect - Whether to preserve aspect on two-dimension resizing(e.g. |
previousCursor | protected transient Cursor previousCursor(Code) | | |
Resizer | public Resizer(WebForm webform, Element componentRootElement, CssBox box, int direction, Shape alloc, boolean preserveAspect)(Code) | | Create a resizer which tracks resize mouse operations.
Parameters: element - The element to be resized. Parameters: direction - The direction to resize the view. Parameters: alloc - The original shape of the view/component being resized Parameters: preserveAspect - Whether to preserve aspect on two-dimension resizing(e.g. dragging the corners - NE, NW, SE, SW) |
getResizeConstraints | public static ResizeConstraint[] getResizeConstraints(WebForm webForm, Element componentRootElement)(Code) | | Look up the resize constraints for the given component
|
hasBottomResizeConstraint | public static boolean hasBottomResizeConstraint(ResizeConstraint[] resizeConstraints)(Code) | | |
hasLeftResizeConstraint | public static boolean hasLeftResizeConstraint(ResizeConstraint[] resizeConstraints)(Code) | | |
hasMaintainAspectRatioResizeConstraint | public static boolean hasMaintainAspectRatioResizeConstraint(ResizeConstraint[] resizeConstraints)(Code) | | |
hasRightResizeConstraint | public static boolean hasRightResizeConstraint(ResizeConstraint[] resizeConstraints)(Code) | | |
hasTopResizeConstraint | public static boolean hasTopResizeConstraint(ResizeConstraint[] resizeConstraints)(Code) | | |
mouseDragged | public void mouseDragged(MouseEvent e)(Code) | | Moves the dragging rectangles
|
mousePressed | public void mousePressed(MouseEvent e)(Code) | | Start the resizer by setting the dragging cursor and
drawing dragging rectangles.
|
mouseReleased | public void mouseReleased(MouseEvent e)(Code) | | When the mouse press is released, get rid of the drawn resizer,
and ask the selection manager to select all the components contained
within the resizer bounds.
|
|
|