1 7 package com.sun.java.swing.plaf.nimbus; 8 9 import java.awt.*; 10 import java.awt.geom.*; 11 import java.awt.image.*; 12 import javax.swing.*; 13 import com.sun.java.swing.Painter; 14 15 17 public final class InternalFrameTitlePanePainter extends AbstractRegionPainter { 18 23 24 private int state; private PaintContext ctx; 26 27 private Path2D path = new Path2D.Float(); 29 private Rectangle2D rect = new Rectangle2D.Float(0, 0, 0, 0); 30 private RoundRectangle2D roundRect = new RoundRectangle2D.Float(0, 0, 0, 0, 0, 0); 31 private Ellipse2D ellipse = new Ellipse2D.Float(0, 0, 0, 0); 32 33 37 38 private Object [] componentColors; 40 41 public InternalFrameTitlePanePainter(PaintContext ctx, int state) { 42 super(); 43 this.state = state; 44 this.ctx = ctx; 45 } 46 47 @Override 48 protected void doPaint(Graphics2D g, JComponent c, int width, int height, Object [] extendedCacheKeys) { 49 componentColors = extendedCacheKeys; 51 switch(state) { 54 55 } 56 } 57 58 59 60 @Override 61 protected final PaintContext getPaintContext() { 62 return ctx; 63 } 64 65 66 67 68 69 70 } 71 | Popular Tags |