站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

LookFeel (Visual Library API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.visual 2.2

org.netbeans.api.visual.laf
Class LookFeel

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

public abstract class LookFeel
extends Object

This class is defining a reusable LookAndFeel fragments e.g. colors.


Constructor Summary
LookFeel()
           
 
Method Summary
static LookFeel createDefaultLookFeel()
          Creates a default look and feel.
abstract  Paint getBackground()
          Returns a default scene background
abstract  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 getForeground()
          Returns a default scene foreground
abstract  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 getMargin()
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookFeel

public LookFeel()
Method Detail

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

org.netbeans.api.visual 2.2

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.