Class org.aswing.plaf.basic.frame.Resizer

Implemented Interfaces

Resizer UIResource

Description

Resizer is a resizer for Components to make it resizable when user mouse on component's edge.

Method Index

new Resizer()
createTo(), finishResize(), hideArrow(), isEnabled(), isResizeDirectly(), resizing(), setArrowRotation(), setEnabled(), setOwner(), setResizeDirectly(), showArrowToMousePos(), startDragArrow(), startResize(), stopDragArrow()

Constructor Detail

Resizer

public function Resizer()

Create a Resizer for specified component.

Method Detail

setOwner

public function setOwner(c:Component):Void

createTo

public function createTo(mc:MovieClip):Void

Attach the resizer's mc onto specified mc.

Specified By

createTo() in org.aswing.Resizer

setResizeDirectly

public function setResizeDirectly(r:Boolean):Void

Indicate whether need resize component directly when drag the resizer arrow.

if set to false, there will be a rectange to represent then size what will be resized to.

if set to true, the component will be resize directly when drag, but this is need more cpu counting.

Default is false.

Specified By

setResizeDirectly() in org.aswing.Resizer

See Also

isResizeDirectly

public function isResizeDirectly():Boolean

Returns whether need resize component directly when drag the resizer arrow.

Specified By

isResizeDirectly() in org.aswing.Resizer

See Also

setArrowRotation

public function setArrowRotation(r:Number):Void

hideArrow

public function hideArrow():Void

showArrowToMousePos

public function showArrowToMousePos():Void

startDragArrow

public function startDragArrow():Void

stopDragArrow

public function stopDragArrow():Void

startResize

public function startResize(strategy:ResizeStrategy):Void

resizing

public function resizing(strategy:ResizeStrategy):Void

finishResize

public function finishResize(strategy:ResizeStrategy):Void

setEnabled

public function setEnabled(e:Boolean):Void

isEnabled

public function isEnabled():Boolean