Class LookFeel
java.lang.Object
org.netbeans.api.visual.laf.LookFeel
This class is defining a reusable LookAndFeel fragments e.g. colors.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LookFeel
Creates a default look and feel.abstract Paint
Returns a default scene backgroundabstract Paint
getBackground
(ObjectState state) Returns a background for a specific state.abstract Border
getBorder
(ObjectState state) Returns a border for a specific state.abstract Color
Returns a default scene foregroundabstract Color
getForeground
(ObjectState state) Returns a foreground for a specific state.abstract Color
getLineColor
(ObjectState state) Returns a line color for a specific state.abstract int
Returns a margin for a specific state.abstract Border
getMiniBorder
(ObjectState state) Returns a minimalistic version of border for a specific state.abstract boolean
getOpaque
(ObjectState state) Returns a opacity value for a specific state.
-
Constructor Details
-
LookFeel
public LookFeel()
-
-
Method Details
-
createDefaultLookFeel
Creates a default look and feel. The instance can be shared by multiple scenes.- Returns:
- the default look and feel
-
getBackground
Returns a default scene background- Returns:
- the default background
-
getForeground
Returns a default scene foreground- Returns:
- the default foreground
-
getBorder
Returns a border for a specific state.- Parameters:
state
- the state- Returns:
- the border
-
getMiniBorder
Returns a minimalistic version of border for a specific state.- Parameters:
state
- the state- Returns:
- the mini-border
-
getOpaque
Returns a opacity value for a specific state.- Parameters:
state
- the state- Returns:
- the opacity value
-
getLineColor
Returns a line color for a specific state.- Parameters:
state
- the state- Returns:
- the line color
-
getBackground
Returns a background for a specific state.- Parameters:
state
- the state- Returns:
- the background
-
getForeground
Returns a foreground for a specific state.- Parameters:
state
- the state- Returns:
- the foreground
-
getMargin
public abstract int getMargin()Returns a margin for a specific state. It is used with borders - usually the value is a inset value of a border.- Returns:
- the margin
-