当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
ChicletWrapper (Tab Control) - NetBeans API Javadoc (Current Development Version)
org.netbeans.swing.tabcontrol.plaf
Class ChicletWrapper
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChicletWrapper
public ChicletWrapper()
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