Package | Description |
---|---|
org.netbeans.api.visual.laf |
This package contains
LookFeel class with style definition for colors and borders. |
org.netbeans.api.visual.model |
This package contains
ObjectScene class which is a scene with ability to register model-objects with widgets on the scene. |
org.netbeans.api.visual.vmd |
This package contains a VMD visualization style.
|
org.netbeans.api.visual.widget |
This package contains
Widget class. |
org.netbeans.api.visual.widget.general |
This package contains general high-level widgets.
|
Modifier and Type | Method and Description |
---|---|
abstract Paint |
LookFeel.getBackground(ObjectState state)
Returns a background for a specific state.
|
abstract Border |
LookFeel.getBorder(ObjectState state)
Returns a border for a specific state.
|
abstract Color |
LookFeel.getForeground(ObjectState state)
Returns a foreground for a specific state.
|
abstract Color |
LookFeel.getLineColor(ObjectState state)
Returns a line color for a specific state.
|
abstract Border |
LookFeel.getMiniBorder(ObjectState state)
Returns a minimalistic version of border for a specific state.
|
abstract boolean |
LookFeel.getOpaque(ObjectState state)
Returns a opacity value for a specific state.
|
Modifier and Type | Method and Description |
---|---|
static ObjectState |
ObjectState.createNormal()
Creates a normal (initial/default) state.
|
ObjectState |
ObjectState.deriveHighlighted(boolean highlighted)
Creates a state derived from this one where the highlighted flag will be set according to the parameter.
|
ObjectState |
ObjectState.deriveObjectFocused(boolean focused)
Creates a state derived from this one where the object-focused flag will be set according to the parameter.
|
ObjectState |
ObjectState.deriveObjectHovered(boolean hovered)
Creates a state derived from this one where the object-hovered flag will be set according to the parameter.
|
ObjectState |
ObjectState.deriveSelected(boolean selected)
Creates a state derived from this one where the selected flag will be set according to the parameter.
|
ObjectState |
ObjectState.deriveWidgetAimed(boolean aimed)
Creates a state derived from this one where the aimed flag will be set according to the parameter.
|
ObjectState |
ObjectState.deriveWidgetFocused(boolean focused)
Creates a state derived from this one where the widget-focused flag will be set according to the parameter.
|
ObjectState |
ObjectState.deriveWidgetHovered(boolean hovered)
Creates a state derived from this one where the widget-hovered flag will be set according to the parameter.
|
protected ObjectState |
ObjectScene.findObjectState(Object o)
Finds the state for the given object.
|
ObjectState |
ObjectScene.getObjectState(Object object)
Returns an object-state of a specified object.
|
Modifier and Type | Method and Description |
---|---|
void |
ObjectSceneListener.objectStateChanged(ObjectSceneEvent event,
Object changedObject,
ObjectState previousState,
ObjectState newState)
Called to notify that the object state of an object is changed.
|
Modifier and Type | Method and Description |
---|---|
protected void |
VMDNodeWidget.notifyStateChanged(ObjectState previousState,
ObjectState state)
Called to notify about the change of the widget state.
|
void |
VMDConnectionWidget.notifyStateChanged(ObjectState previousState,
ObjectState state)
Implements the widget-state specific look of the widget.
|
protected void |
VMDPinWidget.notifyStateChanged(ObjectState previousState,
ObjectState state)
Called to notify about the change of the widget state.
|
abstract void |
VMDColorScheme.updateUI(VMDConnectionWidget widget,
ObjectState previousState,
ObjectState state)
Called to update UI of a connection widget.
|
abstract void |
VMDColorScheme.updateUI(VMDNodeWidget widget,
ObjectState previousState,
ObjectState state)
Called to update UI of a node widget.
|
abstract void |
VMDColorScheme.updateUI(VMDPinWidget widget,
ObjectState previousState,
ObjectState state)
Called to update UI of a pin widget.
|
Modifier and Type | Method and Description |
---|---|
ObjectState |
Widget.getState()
Returns a state of the widget.
|
Modifier and Type | Method and Description |
---|---|
void |
ConnectionWidget.notifyStateChanged(ObjectState previousState,
ObjectState state)
Implements the widget-state specific look of the widget.
|
protected void |
Widget.notifyStateChanged(ObjectState previousState,
ObjectState state)
Called to notify about the change of the widget state.
|
void |
Widget.setState(ObjectState state)
Sets a state of the widget.
|
Modifier and Type | Method and Description |
---|---|
void |
ListWidget.notifyStateChanged(ObjectState previousState,
ObjectState state)
Deprecated.
Implements the widget-state specific look of the widget.
|
void |
IconNodeWidget.notifyStateChanged(ObjectState previousState,
ObjectState state)
Implements the widget-state specific look of the widget.
|
void |
ListItemWidget.notifyStateChanged(ObjectState previousState,
ObjectState state)
Deprecated.
Implements the widget-state specific look of the widget.
|