Package editor.util
Class ContainerMoverSizer
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- editor.util.ContainerMoverSizer
-
- All Implemented Interfaces:
java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable
public class ContainerMoverSizer extends javax.swing.JComponent- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classContainerMoverSizer.DragController-
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
-
-
Field Summary
Fields Modifier and Type Field Description static intPART_BORDERstatic intPART_BOTTOMstatic intPART_BOTTOMLEFTstatic intPART_BOTTOMRIGHTstatic intPART_CAPTIONstatic intPART_CLIENTstatic intPART_CLOSEBTNstatic intPART_HSCROLLstatic intPART_LEFTstatic intPART_MAXBTNstatic intPART_MENUstatic intPART_MINBTNstatic intPART_NONEstatic intPART_NOWHEREstatic intPART_REDUCEstatic intPART_RIGHTstatic intPART_SYSMENUstatic intPART_TOPstatic intPART_TOPLEFTstatic intPART_TOPRIGHTstatic intPART_TRANSPARENTstatic intPART_VSCROLLstatic intPART_ZOOM-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Constructor Description ContainerMoverSizer(javax.swing.border.Border border)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidconfigUi()java.awt.InsetsgetBorderInsets()java.awt.RectanglegetClientRect()inthitTest(java.awt.Point pt)protected voidpaintComponent(java.awt.Graphics g)private voidupdateCursor(int iDragPart)-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
PART_NONE
public static final int PART_NONE
- See Also:
- Constant Field Values
-
PART_BORDER
public static final int PART_BORDER
- See Also:
- Constant Field Values
-
PART_BOTTOM
public static final int PART_BOTTOM
- See Also:
- Constant Field Values
-
PART_BOTTOMLEFT
public static final int PART_BOTTOMLEFT
- See Also:
- Constant Field Values
-
PART_BOTTOMRIGHT
public static final int PART_BOTTOMRIGHT
- See Also:
- Constant Field Values
-
PART_CAPTION
public static final int PART_CAPTION
- See Also:
- Constant Field Values
-
PART_CLIENT
public static final int PART_CLIENT
- See Also:
- Constant Field Values
-
PART_HSCROLL
public static final int PART_HSCROLL
- See Also:
- Constant Field Values
-
PART_LEFT
public static final int PART_LEFT
- See Also:
- Constant Field Values
-
PART_MENU
public static final int PART_MENU
- See Also:
- Constant Field Values
-
PART_NOWHERE
public static final int PART_NOWHERE
- See Also:
- Constant Field Values
-
PART_REDUCE
public static final int PART_REDUCE
- See Also:
- Constant Field Values
-
PART_RIGHT
public static final int PART_RIGHT
- See Also:
- Constant Field Values
-
PART_SYSMENU
public static final int PART_SYSMENU
- See Also:
- Constant Field Values
-
PART_TOP
public static final int PART_TOP
- See Also:
- Constant Field Values
-
PART_TOPLEFT
public static final int PART_TOPLEFT
- See Also:
- Constant Field Values
-
PART_TOPRIGHT
public static final int PART_TOPRIGHT
- See Also:
- Constant Field Values
-
PART_TRANSPARENT
public static final int PART_TRANSPARENT
- See Also:
- Constant Field Values
-
PART_VSCROLL
public static final int PART_VSCROLL
- See Also:
- Constant Field Values
-
PART_ZOOM
public static final int PART_ZOOM
- See Also:
- Constant Field Values
-
PART_CLOSEBTN
public static final int PART_CLOSEBTN
- See Also:
- Constant Field Values
-
PART_MINBTN
public static final int PART_MINBTN
- See Also:
- Constant Field Values
-
PART_MAXBTN
public static final int PART_MAXBTN
- See Also:
- Constant Field Values
-
-
Method Detail
-
getClientRect
public java.awt.Rectangle getClientRect()
-
getBorderInsets
public java.awt.Insets getBorderInsets()
-
paintComponent
protected void paintComponent(java.awt.Graphics g)
- Overrides:
paintComponentin classjavax.swing.JComponent
-
configUi
private void configUi()
-
hitTest
public int hitTest(java.awt.Point pt)
-
updateCursor
private void updateCursor(int iDragPart)
-
-