当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
LayerWidget (Visual Library API) - NetBeans API Javadoc (Current Development Version)
org.netbeans.api.visual.widget
Class LayerWidget
java.lang.Object
org.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.widget.LayerWidget
public class LayerWidget
- extends Widget
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.
Method Summary |
boolean |
isHitAt(Point localLocation)
Returns whether a specified local location is part of the layer widget. |
protected boolean |
isRepaintRequiredForRevalidating()
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, getFont, getForeground, getGraphics, getLayout, getLocation, getLookup, getMaximumSize, getMinimumSize, getParentWidget, getPreferredBounds, getPreferredLocation, getPreferredSize, getScene, getState, getToolTipText, hashCode, isCheckClipping, isEnabled, isOpaque, isPreferredBoundsSet, isValidated, isVisible, notifyAdded, notifyRemoved, notifyStateChanged, paint, paintBackground, paintBorder, paintChildren, paintWidget, removeChild, removeChildren, removeChildren, removeDependency, removeFromParent, repaint, resolveBounds, revalidate, revalidate, setAccessibleContext, setBackground, setBorder, setBorder, setCheckClipping, setChildConstraint, setCursor, setEnabled, setFont, setForeground, setLayout, setMaximumSize, setMinimumSize, setOpaque, setPreferredBounds, setPreferredLocation, setPreferredSize, setState, setToolTipText, setVisible |
LayerWidget
public LayerWidget(Scene scene)
- Creates a layer widget.
- Parameters:
scene
- the scene
isHitAt
public boolean isHitAt(Point localLocation)
- Returns whether a specified local location is part of the layer widget.
- Overrides:
isHitAt
in class Widget
- Parameters:
localLocation
- the local location
- Returns:
- always false
isRepaintRequiredForRevalidating
protected boolean isRepaintRequiredForRevalidating()
- Returns whether the layer widget requires to repainted after revalidation.
- Overrides:
isRepaintRequiredForRevalidating
in class Widget
- Returns:
- always false