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

ChicletWrapper (Tab Control) - NetBeans API Javadoc (Current Development Version)

org.netbeans.swing.tabcontrol 1.8

org.netbeans.swing.tabcontrol.plaf
Class ChicletWrapper

java.lang.Object
  extended by org.netbeans.swing.tabcontrol.plaf.ChicletWrapper
All Implemented Interfaces:
Runnable

public class ChicletWrapper
extends Object
implements Runnable

GenericGlowingChiclet works nicely to draw Aqua-style decorations, but is a bit slow. In particular, Area.pruneEdges() is not cheap, but is heavily used to divide the geometry. This wrapper class provides a cache of bitmaps painted by GenericGlowingChiclet, timestamped against the last time they were used, and occasionally prunes not recently used bitmaps.


Constructor Summary
ChicletWrapper()
           
 
Method Summary
 void draw(Graphics g)
           
 Long hash()
           
 void run()
           
 void setAllowVertical(boolean b)
           
 void setArcs(float a, float b, float c, float d)
           
 void setBounds(int x, int y, int w, int h)
           
 void setNotch(boolean right, boolean left)
           
 void setState(int state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChicletWrapper

public ChicletWrapper()
Method Detail

setState

public void setState(int state)

setBounds

public void setBounds(int x,
                      int y,
                      int w,
                      int h)

draw

public void draw(Graphics g)

setArcs

public void setArcs(float a,
                    float b,
                    float c,
                    float d)

setAllowVertical

public void setAllowVertical(boolean b)

setNotch

public void setNotch(boolean right,
                     boolean left)

hash

public Long hash()

run

public void run()
Specified by:
run in interface Runnable

org.netbeans.swing.tabcontrol 1.8

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