Class VMDPinWidget
java.lang.Object
org.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.vmd.VMDPinWidget
- All Implemented Interfaces:
Accessible
,org.openide.util.Lookup.Provider
This class represents a pin widget in the VMD visualization style.
The pin widget consists of a name and a glyph set.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget
Widget.Dependency
-
Constructor Summary
ConstructorsConstructorDescriptionVMDPinWidget
(Scene scene) Creates a pin widget.VMDPinWidget
(Scene scene, VMDColorScheme scheme) Creates a pin widget with a specific color scheme. -
Method Summary
Modifier and TypeMethodDescriptionCreates a horizontally oriented anchor similar to VMDNodeWidget.createAnchorPinReturns a pin name.Returns a pin name widget.protected void
notifyStateChanged
(ObjectState previousState, ObjectState state) Called to notify about the change of the widget state.void
Sets pin glyphs.void
setPinName
(String name) Sets a pin name.void
setProperties
(String name, List<Image> glyphs) Sets all pin properties at once.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, isHitAt, isOpaque, isPreferredBoundsSet, isRepaintRequiredForRevalidating, isValidated, isVisible, notifyAdded, notifyBackgroundChanged, notifyFontChanged, notifyForegroundChanged, notifyRemoved, 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
-
VMDPinWidget
-
VMDPinWidget
Creates a pin widget with a specific color scheme.- Parameters:
scene
- the scenescheme
- the color scheme
-
-
Method Details
-
notifyStateChanged
Called to notify about the change of the widget state.- Overrides:
notifyStateChanged
in classWidget
- Parameters:
previousState
- the previous statestate
- the new state
-
getPinNameWidget
-
setPinName
-
getPinName
-
setGlyphs
-
setProperties
-
createAnchor
Creates a horizontally oriented anchor similar to VMDNodeWidget.createAnchorPin- Returns:
- the anchor
-