|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.util.AbstractHotSpot
gov.nasa.worldwind.util.AbstractResizeHotSpot
gov.nasa.worldwind.util.tree.FrameResizeControl
public class FrameResizeControl
A screen control for resizing a frame. This class handles the resize input events, but does does not actually draw the resize control.
| Field Summary | |
|---|---|
protected ScrollFrame |
frame
|
| Fields inherited from class gov.nasa.worldwind.util.AbstractResizeHotSpot |
|---|
adjustLocationX, adjustLocationY, allowHorizontalResize, allowVerticalResize, cursor, dragging, dragRefPoint, EAST, NORTH, NORTHEAST, NORTHWEST, refLocation, refSize, SOUTH, SOUTHEAST, SOUTHWEST, WEST, xSign, ySign |
| Fields inherited from class gov.nasa.worldwind.util.AbstractHotSpot |
|---|
active |
| Constructor Summary | |
|---|---|
FrameResizeControl(ScrollFrame frame)
Create a resize control. |
|
| Method Summary | |
|---|---|
protected void |
beginDrag(Point point)
|
protected void |
endDrag()
Called when a drag action ends. |
protected Dimension |
getMinimumSize()
Get the minimum size of the frame. |
protected Point |
getScreenPoint()
Get the screen point of the upper left corner of the frame. |
protected Dimension |
getSize()
Get the size of the frame. |
void |
mouseWheelMoved(MouseWheelEvent event)
Forwards mouse wheel events to the frame, so that the contents can be scrolled when the mouse is over the resize area. |
protected void |
setScreenPoint(Point newPoint)
Set the screen point of the upper left corner of the frame. |
protected void |
setSize(Dimension newSize)
Set the size of the frame. |
| Methods inherited from class gov.nasa.worldwind.util.AbstractResizeHotSpot |
|---|
drag, getCursor, isDragging, isValidSize, mouseMoved, selected, setActive, setDirection, setDirection, setDirectionFromPoint |
| Methods inherited from class gov.nasa.worldwind.util.AbstractHotSpot |
|---|
isActive, isConsumed, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mousePressed, mouseReleased |
| Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
|---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ScrollFrame frame
| Constructor Detail |
|---|
public FrameResizeControl(ScrollFrame frame)
frame - Frame to resize.| Method Detail |
|---|
protected void beginDrag(Point point)
beginDrag in class AbstractResizeHotSpotprotected void endDrag()
AbstractResizeHotSpot.dragRefPoint to null.
endDrag in class AbstractResizeHotSpotprotected Dimension getMinimumSize()
getMinimumSize in class AbstractResizeHotSpotAbstractResizeHotSpot.isValidSize(int, int)protected Point getScreenPoint()
getScreenPoint in class AbstractResizeHotSpotprotected Dimension getSize()
getSize in class AbstractResizeHotSpotpublic void mouseWheelMoved(MouseWheelEvent event)
mouseWheelMoved in interface HotSpotmouseWheelMoved in interface MouseWheelListenermouseWheelMoved in class AbstractHotSpotevent - The event to handle.protected void setScreenPoint(Point newPoint)
setScreenPoint in class AbstractResizeHotSpotnewPoint - New screen point measured from upper left corner of the screen (AWT coordinates).protected void setSize(Dimension newSize)
setSize in class AbstractResizeHotSpotnewSize - New frame size in pixels.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||