|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jgoodies.clearlook.DefaultClearLookPolicy
com.jgoodies.clearlook.NetBeansClearLookPolicy
An implementation of ClearLookPolicy for use in NetBeans based
environments. In addition to its superclass, it detects special contexts
that appear in NetBeand, and it replaces some NetBeans borders:
JLabel used as status bar cell
JPanel with obsolete border
JTabbedPane with obsolete border
ClearLookManager,
DefaultClearLookPolicy| Field Summary | |
static String |
NB_MULTITABBED_CONT
|
static String |
NB_PERIMETER_PANE
|
protected static Border |
ORANGE1_BORDER
|
protected static Border |
ORANGE2_BORDER
|
| Fields inherited from class com.jgoodies.clearlook.DefaultClearLookPolicy |
EMPTY_BORDER, MARKER_BORDER, PINK1_BORDER, PINK2_BORDER, RED1_BORDER, RED2_BORDER |
| Constructor Summary | |
NetBeansClearLookPolicy()
Constructs a NetBeansClearLookPolicy. |
|
| Method Summary | |
Border |
analyse(JComponent component)
Detects borders situations that are considered to be visual clutter. |
Border |
analyse(JLabel label)
Detects NetBeans status cells. |
Border |
analyse(JPanel panel)
Detects special NetBeans panels. and conditionally replaces the Border
of the specified JPanel. |
Border |
analyse(JScrollPane scrollPane)
Detects and conditionally replaces the Border
of the specified JScrollPane. |
String |
getName()
Returns the policy's name. |
protected boolean |
isDecoratedChild(Component c)
Returns if the specified compoent is decorated. |
protected boolean |
isDecoratingParent(Component c)
Returns if the specified JComponent is decorated.
|
protected boolean |
isInstanceOf(Object object,
String className)
Checks and answers if the given object is an instance of the specified class name. |
protected boolean |
isKindOfSplitPane(Component component)
Answers if the specified is kind-of SplitPane.
|
Border |
replaceBorder(JComponent component)
Detects and conditionally replaces the Border
of the specified JComponent. |
| Methods inherited from class com.jgoodies.clearlook.DefaultClearLookPolicy |
analyse, analyse, assignBorder, getDoubleDecorationBorder, getScrollPaneReplacementBorder, getSplitPaneReplacementBorder, getThinBevelBorder, getThinLoweredBevelBorder, getThinRaisedBevelBorder, hasEmptyBorder, isChildDecoration, isDebug, isDecoratedSplitPane, isDecoration, isDoubleDecorated, isEmptyBorder, isInternalFrameContent, isParentDecoration, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final Border ORANGE1_BORDER
protected static final Border ORANGE2_BORDER
public static final String NB_PERIMETER_PANE
public static final String NB_MULTITABBED_CONT
| Constructor Detail |
public NetBeansClearLookPolicy()
NetBeansClearLookPolicy.
| Method Detail |
public String getName()
ClearLookPolicy
getName in interface ClearLookPolicygetName in class DefaultClearLookPolicypublic Border replaceBorder(JComponent component)
DefaultClearLookPolicyBorder
of the specified JComponent. Returns the original
Border, or null if we did not replace it.
replaceBorder in interface ClearLookPolicyreplaceBorder in class DefaultClearLookPolicycomponent - the component to be inspected
null otherwisepublic Border analyse(JComponent component)
analyse in class DefaultClearLookPolicycomponent - the component to analyze
public Border analyse(JLabel label)
public Border analyse(JPanel panel)
Border
of the specified JPanel. Answers the original
Border, or null if we did not replace it.
public Border analyse(JScrollPane scrollPane)
Border
of the specified JScrollPane. Answers the original
Border, or null if we did not replace it.
analyse in class DefaultClearLookPolicyscrollPane - the component to analyze
protected boolean isDecoratedChild(Component c)
isDecoratedChild in class DefaultClearLookPolicyc - the component to analyse
protected boolean isDecoratingParent(Component c)
DefaultClearLookPolicyJComponent is decorated.
This default implementation checks, if the component's border
is decorated.
Subclasses may check for special decorators.
isDecoratingParent in class DefaultClearLookPolicyc - the parent component to analyse
protected boolean isKindOfSplitPane(Component component)
SplitPane.
Subclasses may override to widen the set of panels, that
is considered as candidates to remove child borders.
isKindOfSplitPane in class DefaultClearLookPolicycomponent - the component to be analysed
protected final boolean isInstanceOf(Object object,
String className)
object - the instance to checkclassName - the name of the class
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||