public class WebGlassPane extends WebPanel
GlassPaneManager,
Serialized Formjavax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Component |
highlightBase
Highlight painting base.
|
protected java.util.List<java.awt.Component> |
highlightedComponents
Highlighted components.
|
protected int |
highlightSpacing
Highlight spacing between the component bounds and highlight gray area.
|
protected java.awt.Shape |
hitShape
WebGlassPane mouse hit shape.
|
protected java.lang.String |
id
WebGlassPane ID.
|
protected static java.lang.String |
ID_PREFIX
ID prefix.
|
protected java.awt.Point |
imageLocation
Custom painted image location.
|
protected int |
imageOpacity
Custom painted image opacity.
|
protected java.awt.image.BufferedImage |
paintedImage
Custom painted image.
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTEMPTYEMPTYUNDEFINED| Constructor and Description |
|---|
WebGlassPane()
Constructs WebGlassPane for the specified JRootPane.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHighlightedComponents(java.awt.Component... components)
Highlights specified components.
|
void |
addHighlightedComponents(java.util.List<java.awt.Component> components)
Highlights specified components.
|
void |
addLayoutManager(java.awt.LayoutManager layoutManager)
Adds layout manager to this glass pane.
|
void |
clearHighlights()
Remove all highlights.
|
void |
clearPaintedImage()
Removes painted image.
|
boolean |
contains(int x,
int y)
Returns whether WebGlassPane should absorb mouse event from the specified point or not.
|
java.awt.Component |
getHighlightBase()
Returns highlight painting base.
|
int |
getHighlightSpacing()
Returns highlight spacing.
|
java.awt.Shape |
getHitShape()
Returns custom hit shape that is used to allow mouse events passthrough where it is required.
|
java.lang.String |
getId()
Returns WebGlassPane ID.
|
java.awt.Point |
getImageLocation()
Returns painted image location.
|
int |
getImageOpacity()
Returns painted image opacity.
|
MultiLayout |
getMultiLayout()
Returns glass pane actual layout.
|
java.awt.image.BufferedImage |
getPaintedImage()
Returns painted image.
|
java.awt.Rectangle |
getPaintedImageBounds()
Returns painted image bounds.
|
javax.swing.JRootPane |
getRootPane()
Returns JRootPane to which this WebGlassPane is attached.
|
void |
hideComponent(javax.swing.JComponent component)
Hides single component from glass pane.
|
protected void |
paintComponent(java.awt.Graphics g)
Paints WebGlassPane content.
|
void |
removeHighlightedComponents(java.awt.Component... components)
Removes highlight from the specified components.
|
void |
removeHighlightedComponents(java.util.List<java.awt.Component> components)
Removes highlight from the specified components.
|
void |
removeLayoutManager(java.awt.LayoutManager layoutManager)
Removes layout manager to this glass pane.
|
void |
setHighlightBase(java.awt.Component highlightBase)
Sets highlight painting base.
|
void |
setHighlightSpacing(int spacing)
Sets highlight spacing.
|
void |
setHitShape(java.awt.Shape hitShape)
Sets custom hit shape that is used to allow mouse events passthrough where it is required.
|
void |
setPaintedImage(java.awt.image.BufferedImage image,
java.awt.Point location)
Sets painted image at the specified location.
|
void |
setPaintedImage(java.awt.image.BufferedImage image,
java.awt.Point location,
int opacity)
Sets painted image at the specified location with the specified opacity.
|
void |
showComponent(javax.swing.JComponent component)
Displays single component on glass pane.
|
add, add, add, add, add, add, addStyleListener, addToolTip, addToolTip, addToolTip, addToolTip, addToolTip, addToolTip, addToolTip, addToolTip, addToolTip, addToolTip, contains, equalizeComponentsHeight, equalizeComponentsSize, equalizeComponentsWidth, getCustomPainter, getCustomPainter, getCustomPainters, getFirstComponent, getLanguageContainerKey, getLastComponent, getMargin, getMaximumHeight, getMaximumWidth, getMinimumHeight, getMinimumWidth, getPadding, getPreferredHeight, getPreferredSize, getPreferredWidth, getSkin, getStyleId, onDoubleClick, onFocusGain, onFocusLoss, onKeyPress, onKeyPress, onKeyRelease, onKeyRelease, onKeyType, onKeyType, onMenuTrigger, onMouseClick, onMouseClick, onMouseDrag, onMouseDrag, onMouseEnter, onMouseExit, onMousePress, onMousePress, provideShape, remove, remove, removeAll, removeLanguageContainerKey, removeStyleListener, removeToolTip, removeToolTips, removeToolTips, removeToolTips, restoreDefaultPainters, restoreSkin, setCustomPainter, setCustomPainter, setLanguageContainerKey, setMargin, setMargin, setMargin, setMaximumHeight, setMaximumWidth, setMinimumHeight, setMinimumWidth, setPadding, setPadding, setPadding, setPreferredHeight, setPreferredSize, setPreferredWidth, setSkin, setSkin, setStyleId, setToolTip, setToolTip, setToolTip, setToolTip, setToolTip, setToolTip, setToolTip, setToolTip, setToolTip, setToolTip, updateUIgetAccessibleContext, getUI, getUIClassID, paramString, setUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, 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, getRegisteredKeyStrokes, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, 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, updateadd, 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, validateTreeaction, 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, 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, getPeer, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected static final java.lang.String ID_PREFIX
protected java.lang.String id
protected java.awt.Shape hitShape
protected java.awt.image.BufferedImage paintedImage
protected java.awt.Point imageLocation
protected int imageOpacity
protected java.util.List<java.awt.Component> highlightedComponents
protected java.awt.Component highlightBase
protected int highlightSpacing
public WebGlassPane()
public MultiLayout getMultiLayout()
public void addLayoutManager(java.awt.LayoutManager layoutManager)
layoutManager - layout manager to addpublic void removeLayoutManager(java.awt.LayoutManager layoutManager)
layoutManager - layout manager to removepublic java.lang.String getId()
public javax.swing.JRootPane getRootPane()
getRootPane in class javax.swing.JComponentpublic void showComponent(javax.swing.JComponent component)
component - component to displaypublic void hideComponent(javax.swing.JComponent component)
component - component to hidepublic boolean contains(int x,
int y)
contains in class javax.swing.JComponentx - mouse X coordinatey - mouse Y coordinatepublic java.awt.Shape getHitShape()
public void setHitShape(java.awt.Shape hitShape)
hitShape - custom hit shape that is used to allow mouse events passthrough where it is requiredpublic int getImageOpacity()
public java.awt.Point getImageLocation()
public java.awt.image.BufferedImage getPaintedImage()
public void setPaintedImage(java.awt.image.BufferedImage image,
java.awt.Point location)
image - image to paintlocation - image locationpublic void setPaintedImage(java.awt.image.BufferedImage image,
java.awt.Point location,
int opacity)
image - image to paintlocation - image locationopacity - image opacitypublic void clearPaintedImage()
public java.awt.Rectangle getPaintedImageBounds()
public void addHighlightedComponents(java.awt.Component... components)
components - components to highlightpublic void addHighlightedComponents(java.util.List<java.awt.Component> components)
components - components to highlightpublic void removeHighlightedComponents(java.awt.Component... components)
components - components to remove highlight frompublic void removeHighlightedComponents(java.util.List<java.awt.Component> components)
components - components to remove highlight frompublic void clearHighlights()
public java.awt.Component getHighlightBase()
public void setHighlightBase(java.awt.Component highlightBase)
highlightBase - highlight painting basepublic int getHighlightSpacing()
public void setHighlightSpacing(int spacing)
spacing - highlight spacingprotected void paintComponent(java.awt.Graphics g)
paintComponent in class javax.swing.JComponentg - graphics context.