public class HomerWidgetElement extends PositionableElement
Constructor and Description |
---|
HomerWidgetElement(NamedObj element,
org.netbeans.api.visual.widget.Scene scene)
Create a new definition of an element.
|
Modifier and Type | Method and Description |
---|---|
void |
addToContainer(PortableContainer container)
It's normally used to add the visual representation of the element to the
provided container.
|
org.netbeans.api.visual.widget.Widget |
getWidget()
Return the Netbeans widget representing the element.
|
getElement, getLocation, getTab, setLocation, setTab
public HomerWidgetElement(NamedObj element, org.netbeans.api.visual.widget.Scene scene)
element
- The Ptolemy named object to wrap.scene
- The graphical area where the widget representing the
element will be added to.public void addToContainer(PortableContainer container) throws IllegalActionException
addToContainer
in class PositionableElement
container
- The container to place the representation in. Not used.IllegalActionException
- The method will always return the exception.
Use getWidget() instead.public org.netbeans.api.visual.widget.Widget getWidget()