Class LookFeel

java.lang.Object
org.netbeans.api.visual.laf.LookFeel

public abstract class LookFeel extends Object
This class is defining a reusable LookAndFeel fragments e.g. colors.
  • Constructor Details

    • LookFeel

      public LookFeel()
  • Method Details

    • createDefaultLookFeel

      public static LookFeel createDefaultLookFeel()
      Creates a default look and feel. The instance can be shared by multiple scenes.
      Returns:
      the default look and feel
    • getBackground

      public abstract Paint getBackground()
      Returns a default scene background
      Returns:
      the default background
    • getForeground

      public abstract Color getForeground()
      Returns a default scene foreground
      Returns:
      the default foreground
    • getBorder

      public abstract Border getBorder(ObjectState state)
      Returns a border for a specific state.
      Parameters:
      state - the state
      Returns:
      the border
    • getMiniBorder

      public abstract Border getMiniBorder(ObjectState state)
      Returns a minimalistic version of border for a specific state.
      Parameters:
      state - the state
      Returns:
      the mini-border
    • getOpaque

      public abstract boolean getOpaque(ObjectState state)
      Returns a opacity value for a specific state.
      Parameters:
      state - the state
      Returns:
      the opacity value
    • getLineColor

      public abstract Color getLineColor(ObjectState state)
      Returns a line color for a specific state.
      Parameters:
      state - the state
      Returns:
      the line color
    • getBackground

      public abstract Paint getBackground(ObjectState state)
      Returns a background for a specific state.
      Parameters:
      state - the state
      Returns:
      the background
    • getForeground

      public abstract Color getForeground(ObjectState state)
      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