|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.vmd.VMDPinWidget
public class VMDPinWidget
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 | |
---|---|
VMDPinWidget(Scene scene)
Creates a pin widget. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VMDPinWidget(Scene scene)
scene
- the sceneMethod Detail |
---|
protected 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()
|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |