Class LayerWidget
java.lang.Object
org.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.widget.LayerWidget
- All Implemented Interfaces:
Accessible
,org.openide.util.Lookup.Provider
The layer widget represents a transparent widget which functionality is similar to JGlassPane.
The layer widget is used for speed optimalization too since it is not repainted when the widget is re-layout.
It can be used widgets organization. A scene usually has layer widgets directly underneath. E.g. each layer widget is used different purpose: background for widgets on background, main layer for node widgets, connection layer for edge widgets, interraction layer for temporary widgets created/used by actions.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget
Widget.Dependency
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether a specified local location is part of the layer widget.protected boolean
Returns whether the layer widget requires to repainted after revalidation.Methods inherited from class org.netbeans.api.visual.widget.Widget
addChild, 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, isOpaque, isPreferredBoundsSet, 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, updateResources
-
Constructor Details
-
LayerWidget
-
-
Method Details
-
isHitAt
-
isRepaintRequiredForRevalidating
protected boolean isRepaintRequiredForRevalidating()Returns whether the layer widget requires to repainted after revalidation.- Overrides:
isRepaintRequiredForRevalidating
in classWidget
- Returns:
- always false
-