public class GlassPaneWidget extends NamedObjectWidget
| Red (ahuseyno) |
| Red (ahuseyno) |
| Modifier and Type | Field and Description |
|---|---|
protected org.netbeans.api.visual.widget.ComponentWidget |
_componentWidget
The component widget that wraps the layerer pane.
|
protected javax.swing.JPanel |
_containerPanel
The container panel holding the underlying component.
|
protected javax.swing.JPanel |
_glassPane
The glass pane covering the container panel.
|
protected javax.swing.JLayeredPane |
_layeredPane
The layered pane holding both the glasspane and the container panel.
|
| Constructor and Description |
|---|
GlassPaneWidget(org.netbeans.api.visual.widget.Scene scene,
PositionableElement element)
Create new instance of the glasspane for the given positionable element.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
place(java.awt.Component component)
Place the component under the glasspane.
|
void |
setGlassPaneSize(java.awt.Dimension dimension)
Set the dimension of the glass pane and components its covering.
|
getPositionableElementaddChild, addChild, addChild, addChild, addChildren, addDependency, bringToBack, bringToFront, calculateClientArea, convertLocalToScene, convertLocalToScene, convertSceneToLocal, convertSceneToLocal, createActions, equals, getAccessibleContext, getActions, getActions, getBackground, getBorder, getBounds, getChildConstraint, getChildren, getClientArea, getCursor, getCursorAt, getDependencies, getFont, getForeground, getGraphics, getLayout, getLocation, getLookup, getMaximumSize, getMinimumSize, getParentWidget, getPreferredBounds, getPreferredLocation, getPreferredSize, getResourceTable, getScene, getState, getToolTipText, hashCode, isCheckClipping, isEnabled, isHitAt, isOpaque, isPreferredBoundsSet, isRepaintRequiredForRevalidating, isValidated, isVisible, notifyAdded, notifyBackgroundChanged, notifyFontChanged, notifyForegroundChanged, notifyRemoved, notifyStateChanged, paint, paintBackground, paintBorder, paintChildren, paintWidget, removeChild, removeChildren, removeChildren, removeDependency, removeFromParent, repaint, resolveBounds, revalidate, revalidate, setAccessibleContext, setBackground, setBackgroundFromResource, setBorder, setBorder, setCheckClipping, setChildConstraint, setCursor, setEnabled, setFont, setFontFromResource, setForeground, setForegroundFromResource, setLayout, setMaximumSize, setMinimumSize, setOpaque, setPreferredBounds, setPreferredLocation, setPreferredSize, setResourceTable, setState, setToolTipText, setVisible, updateResourcesprotected javax.swing.JPanel _containerPanel
protected javax.swing.JLayeredPane _layeredPane
protected org.netbeans.api.visual.widget.ComponentWidget _componentWidget
protected javax.swing.JPanel _glassPane
public GlassPaneWidget(org.netbeans.api.visual.widget.Scene scene,
PositionableElement element)
scene - The scene containing the widget.element - The element to visualize.public void setGlassPaneSize(java.awt.Dimension dimension)
dimension - the dimension of the glasspane.protected void place(java.awt.Component component)
component - The component to placed underneath the glasspane.