Class SeparatorWidget
java.lang.Object
org.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.widget.SeparatorWidget
- All Implemented Interfaces:
Accessible
,org.openide.util.Lookup.Provider
This is a separator widget. Renders a rectangle that is usually expand across the width or height of the parent widget
based on an orientation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The separator orientationNested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget
Widget.Dependency
-
Constructor Summary
ConstructorsConstructorDescriptionSeparatorWidget
(Scene scene, SeparatorWidget.Orientation orientation) Creates a separator widget. -
Method Summary
Modifier and TypeMethodDescriptionprotected Rectangle
Calculates a client area of the separator widget.Returns a separator orientationint
Returns a thickness of the separator.protected void
Paints the separator widget.void
setOrientation
(SeparatorWidget.Orientation orientation) Sets a separator orientationvoid
setThickness
(int thickness) Sets a thickness of the seperator.Methods inherited from class org.netbeans.api.visual.widget.Widget
addChild, addChild, addChild, addChild, addChildren, addDependency, bringToBack, bringToFront, 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, 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
-
SeparatorWidget
Creates a separator widget.- Parameters:
scene
- the sceneorientation
- the separator orientation
-
-
Method Details
-
getOrientation
Returns a separator orientation- Returns:
- the separator orientation
-
setOrientation
Sets a separator orientation- Parameters:
orientation
- the separator orientation
-
getThickness
public int getThickness()Returns a thickness of the separator.- Returns:
- the thickness
-
setThickness
public void setThickness(int thickness) Sets a thickness of the seperator.- Parameters:
thickness
- the thickness
-
calculateClientArea
Calculates a client area of the separator widget.- Overrides:
calculateClientArea
in classWidget
- Returns:
- the calculated client area
-
paintWidget
-