Package editor.util
Class ContainerMoverSizer
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- editor.util.ContainerMoverSizer
-
- All Implemented Interfaces:
ImageObserver
,MenuContainer
,Serializable
public class ContainerMoverSizer extends JComponent
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
-
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
-
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
-
Field Summary
Fields Modifier and Type Field Description static int
PART_BORDER
static int
PART_BOTTOM
static int
PART_BOTTOMLEFT
static int
PART_BOTTOMRIGHT
static int
PART_CAPTION
static int
PART_CLIENT
static int
PART_CLOSEBTN
static int
PART_HSCROLL
static int
PART_LEFT
static int
PART_MAXBTN
static int
PART_MENU
static int
PART_MINBTN
static int
PART_NONE
static int
PART_NOWHERE
static int
PART_REDUCE
static int
PART_RIGHT
static int
PART_SYSMENU
static int
PART_TOP
static int
PART_TOPLEFT
static int
PART_TOPRIGHT
static int
PART_TRANSPARENT
static int
PART_VSCROLL
static int
PART_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
-
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
-
Constructor Summary
Constructors Constructor Description ContainerMoverSizer(Border border)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Insets
getBorderInsets()
Rectangle
getClientRect()
int
hitTest(Point pt)
protected void
paintComponent(Graphics g)
-
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
-
-
Constructor Detail
-
ContainerMoverSizer
public ContainerMoverSizer(Border border)
-
-
Method Detail
-
getClientRect
public Rectangle getClientRect()
-
getBorderInsets
public Insets getBorderInsets()
-
paintComponent
protected void paintComponent(Graphics g)
- Overrides:
paintComponent
in classJComponent
-
hitTest
public int hitTest(Point pt)
-
-