public class ObjectState extends Object
Initial (normal) value of object state is used for Widget.state and in ObjectScene class.
Modifier and Type | Method and Description |
---|---|
static ObjectState |
createNormal()
Creates a normal (initial/default) state.
|
ObjectState |
deriveHighlighted(boolean highlighted)
Creates a state derived from this one where the highlighted flag will be set according to the parameter.
|
ObjectState |
deriveObjectFocused(boolean focused)
Creates a state derived from this one where the object-focused flag will be set according to the parameter.
|
ObjectState |
deriveObjectHovered(boolean hovered)
Creates a state derived from this one where the object-hovered flag will be set according to the parameter.
|
ObjectState |
deriveSelected(boolean selected)
Creates a state derived from this one where the selected flag will be set according to the parameter.
|
ObjectState |
deriveWidgetAimed(boolean aimed)
Creates a state derived from this one where the aimed flag will be set according to the parameter.
|
ObjectState |
deriveWidgetFocused(boolean focused)
Creates a state derived from this one where the widget-focused flag will be set according to the parameter.
|
ObjectState |
deriveWidgetHovered(boolean hovered)
Creates a state derived from this one where the widget-hovered flag will be set according to the parameter.
|
boolean |
isFocused()
Returns a value of focused-flag.
|
boolean |
isHighlighted()
Returns a value of highlighted-flag.
|
boolean |
isHovered()
Returns a value of hovered-flag.
|
boolean |
isObjectFocused()
Returns a value of object-focused flag.
|
boolean |
isObjectHovered()
Returns a value of object-hovered-flag.
|
boolean |
isSelected()
Returns a value of selected-flag.
|
boolean |
isWidgetAimed()
Returns a value of widget-aimed-flag.
|
boolean |
isWidgetFocused()
Returns a value of widget-focused-flag.
|
boolean |
isWidgetHovered()
Returns a value of widget-hovered-flag.
|
public boolean isSelected()
public ObjectState deriveSelected(boolean selected)
selected
- the new selected-flag of the new state.public boolean isHighlighted()
public ObjectState deriveHighlighted(boolean highlighted)
highlighted
- the new highlighted-flag of the new state.public boolean isHovered()
public boolean isObjectHovered()
public ObjectState deriveObjectHovered(boolean hovered)
hovered
- the new object-hovered-flag of the new state.public boolean isWidgetHovered()
public ObjectState deriveWidgetHovered(boolean hovered)
hovered
- the new widget-hovered-flag of the new state.public boolean isFocused()
public boolean isObjectFocused()
public ObjectState deriveObjectFocused(boolean focused)
focused
- the new object-focused-flag of the new state.public boolean isWidgetFocused()
public ObjectState deriveWidgetFocused(boolean focused)
focused
- the new widget-focused-flag of the new state.public boolean isWidgetAimed()
public ObjectState deriveWidgetAimed(boolean aimed)
aimed
- the new aimed-flag of the new state.public static ObjectState createNormal()