public class VMDPinWidget extends Widget
Widget.Dependency
Constructor and Description |
---|
VMDPinWidget(Scene scene)
Creates a pin widget.
|
VMDPinWidget(Scene scene,
VMDColorScheme scheme)
Creates a pin widget with a specific color scheme.
|
Modifier and Type | Method and Description |
---|---|
Anchor |
createAnchor()
Creates a horizontally oriented anchor similar to VMDNodeWidget.createAnchorPin
|
String |
getPinName()
Returns a pin name.
|
Widget |
getPinNameWidget()
Returns a pin name widget.
|
protected void |
notifyStateChanged(ObjectState previousState,
ObjectState state)
Called to notify about the change of the widget state.
|
void |
setGlyphs(List<Image> glyphs)
Sets pin glyphs.
|
void |
setPinName(String name)
Sets a pin name.
|
void |
setProperties(String name,
List<Image> glyphs)
Sets all pin properties at once.
|
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
public VMDPinWidget(Scene scene)
scene
- the scenepublic VMDPinWidget(Scene scene, VMDColorScheme scheme)
scene
- the scenescheme
- the color schemeprotected void notifyStateChanged(ObjectState previousState, ObjectState state)
notifyStateChanged
in class Widget
previousState
- the previous statestate
- the new statepublic Widget getPinNameWidget()
public void setPinName(String name)
name
- the pin namepublic String getPinName()
public void setGlyphs(List<Image> glyphs)
glyphs
- the list of imagespublic void setProperties(String name, List<Image> glyphs)
name
- the pin nameglyphs
- the pin glyphspublic Anchor createAnchor()