Exemple #1
0
 protected internal ColorPaintContext(int rgb)
 {
     rgbValue = rgb;
     if ((rgb & 0xFF000000) == 0xFF000000)
     {
         cm = new java.awt.image.DirectColorModel(24, 0xFF0000, 0xFF00, 0xFF);
     }
     else
     {
         cm = java.awt.image.ColorModel.getRGBdefault();
     }
 }
Exemple #2
0
 public PaintContext createContext(
     java.awt.image.ColorModel cm,
     Rectangle r,
     java.awt.geom.Rectangle2D r2d,
     java.awt.geom.AffineTransform xform,
     RenderingHints rhs
     )
 {
     if (currentPaintContext != null)
     {
         return(currentPaintContext);
     }
     currentPaintContext = new Color.ColorPaintContext(value);
     return(currentPaintContext);
 }
Exemple #3
0
 protected internal ColorPaintContext(int rgb)
 {
     rgbValue = rgb;
     if ((rgb & 0xFF000000) == 0xFF000000)
     {
         cm = new java.awt.image.DirectColorModel(24, 0xFF0000, 0xFF00, 0xFF);
     }
     else
     {
         cm = java.awt.image.ColorModel.getRGBdefault();
     }
 }