public class NamedObjectIconWidget extends ResizableImageWidget implements NamedObjectWidgetInterface
Red (ahuseyno) |
Red (ahuseyno) |
_observer
Constructor and Description |
---|
NamedObjectIconWidget(org.netbeans.api.visual.widget.Scene scene,
PositionableElement element)
Create new instance of the widget by finding the element's EditorIcon attribute
and rendering it as an image.
|
Modifier and Type | Method and Description |
---|---|
PositionableElement |
getPositionableElement()
Return positionable element that the instance is wrapping.
|
calculateClientArea, getImage, isPaintAsDisabled, paintWidget, setImage, setPaintAsDisabled
addChild, addChild, addChild, addChild, addChildren, addDependency, bringToBack, bringToFront, 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, notifyStateChanged, paint, paintBackground, paintBorder, paintChildren, 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 NamedObjectIconWidget(org.netbeans.api.visual.widget.Scene scene, PositionableElement element) throws NameDuplicationException, IllegalActionException
scene
- The scene containing the widget.element
- The element to visualize.IllegalActionException
- If there is problem with creating an icon.NameDuplicationException
- If there is a problem hiding the icon's name.public PositionableElement getPositionableElement()
NamedObjectWidgetInterface
getPositionableElement
in interface NamedObjectWidgetInterface