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

public class VMDPinWidget extends Widget
This class represents a pin widget in the VMD visualization style. The pin widget consists of a name and a glyph set.
  • Constructor Details

    • VMDPinWidget

      public VMDPinWidget(Scene scene)
      Creates a pin widget.
      Parameters:
      scene - the scene
    • VMDPinWidget

      public VMDPinWidget(Scene scene, VMDColorScheme scheme)
      Creates a pin widget with a specific color scheme.
      Parameters:
      scene - the scene
      scheme - the color scheme
  • Method Details

    • notifyStateChanged

      protected void notifyStateChanged(ObjectState previousState, ObjectState state)
      Called to notify about the change of the widget state.
      Overrides:
      notifyStateChanged in class Widget
      Parameters:
      previousState - the previous state
      state - the new state
    • getPinNameWidget

      public Widget getPinNameWidget()
      Returns a pin name widget.
      Returns:
      the pin name widget
    • setPinName

      public void setPinName(String name)
      Sets a pin name.
      Parameters:
      name - the pin name
    • getPinName

      public String getPinName()
      Returns a pin name.
      Returns:
      the pin name
    • setGlyphs

      public void setGlyphs(List<Image> glyphs)
      Sets pin glyphs.
      Parameters:
      glyphs - the list of images
    • setProperties

      public void setProperties(String name, List<Image> glyphs)
      Sets all pin properties at once.
      Parameters:
      name - the pin name
      glyphs - the pin glyphs
    • createAnchor

      public Anchor createAnchor()
      Creates a horizontally oriented anchor similar to VMDNodeWidget.createAnchorPin
      Returns:
      the anchor