Compiere Looks 1.2.1

org.compiere.plaf
Class CompiereColor.ColorBackground

java.lang.Object
  |
  +--org.compiere.plaf.CompiereColor.ColorBackground
Enclosing class:
CompiereColor

public class CompiereColor.ColorBackground
extends Object

Background contains a Buffered Image with the background. The initial size is determined by the constructor. It is resized if required when painting.
The Buffered image is a 8-bit RGBA color components packed into integer pixels. The image has a DirectColorModel with alpha. The color data in this image is considered to be premultiplied with alpha


Constructor Summary
CompiereColor.ColorBackground(Rectangle bounds)
          Create Color Background
 
Method Summary
 void fillColorBackground()
          Fill Background with Color
 void paint(Graphics g, JComponent c)
          Paint/copy background to component
 void paintRect(Graphics g, JComponent c, int x, int y, int w, int h)
          Paint/copy background to component rectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompiereColor.ColorBackground

public CompiereColor.ColorBackground(Rectangle bounds)
Create Color Background

Parameters:
bounds - Rectangle to fit in
Method Detail

fillColorBackground

public void fillColorBackground()
Fill Background with Color


paint

public void paint(Graphics g,
                  JComponent c)
Paint/copy background to component

Parameters:
g - graphics
c - component

paintRect

public void paintRect(Graphics g,
                      JComponent c,
                      int x,
                      int y,
                      int w,
                      int h)
Paint/copy background to component rectangle

Parameters:
g - graphics
c - compnent
x - x pos
y - y pos
w - width
h - height

Compiere Looks 1.2.1

Copyright (c) 1999-2003 ComPiere, Inc. - Author: Jorg Janke