javapoint.components
Class GraphicObject.ResizeHandle
java.lang.Object
javapoint.components.GraphicObject.ResizeHandle
- Direct Known Subclasses:
- LineGraphicObject.LineResizeHandle
- Enclosing class:
- GraphicObject
public class GraphicObject.ResizeHandle
- extends java.lang.Object
This class defines the location and mouse behavior of the resize handles.
The resize handles are little green boxes around a selected component
that the user can drag to resize the component.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphicObject.ResizeHandle
public GraphicObject.ResizeHandle(float proportionalLocationX,
float proportionalLocationY,
java.awt.Cursor cursor)
- Parameters:
proportionalLocationX -
Range: {RESIZE_HANDLE_LEFT, RESIZE_HANDLE_MIDDLE, RESIZE_HANDLE_RIGHT}proportionalLocationY -
Range: {RESIZE_HANDLE_TOP, RESIZE_HANDLE_MIDDLE, RESIZE_HANDLE_BOTTOM}cursor - used when the mouse is over the handle
Can be null
getCursor
public java.awt.Cursor getCursor()
- Returns:
A possibly null value
A reference
getProportionalLocationX
public float getProportionalLocationX()
- Returns:
Range: {RESIZE_HANDLE_LEFT, RESIZE_HANDLE_MIDDLE, RESIZE_HANDLE_RIGHT}
getProportionalLocationY
public float getProportionalLocationY()
- Returns:
Range: {RESIZE_HANDLE_TOP, RESIZE_HANDLE_MIDDLE, RESIZE_HANDLE_BOTTOM}
getComponent
public final GraphicObject getComponent()
- Returns:
A non-null value
A reference
getBounds
public java.awt.Rectangle getBounds()
- Returns:
A non-null value
setBounds
public void setBounds(java.awt.Rectangle bounds)
resizeComponentUsingPoint
public void resizeComponentUsingPoint(java.awt.Point point)
- Parameters:
point - in slide coordinates
Should not be null