DESY ACOP Beans Home

com.cosylab.gui.components.ledder
Class LedPaint

java.lang.Object
  extended by com.cosylab.gui.components.ledder.LedPaint
All Implemented Interfaces:
java.awt.Paint, java.awt.Transparency

public class LedPaint
extends java.lang.Object
implements java.awt.Paint

This is the implementation of Paint interface tha provides access to LedPaintContext and is used to render LED icons.

Version:
$id$
Author:
Ales Pucelj

Field Summary
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
LedPaint(LedPaintParameters parameters)
          Default constructor for LedPaint.
LedPaint(LedPaintParameters parameters, int centerX, int centerY)
          Default constructor for LedPaint.
 
Method Summary
 java.awt.PaintContext createContext(java.awt.image.ColorModel cm, java.awt.Rectangle deviceBounds, java.awt.geom.Rectangle2D userBounds, java.awt.geom.AffineTransform xform, java.awt.RenderingHints hints)
           
 int getTransparency()
          Always returns OPAQUE.
 void setCenter(int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LedPaint

public LedPaint(LedPaintParameters parameters)
Default constructor for LedPaint.

Parameters:
parameters - LedPaintParameters

LedPaint

public LedPaint(LedPaintParameters parameters,
                int centerX,
                int centerY)
Default constructor for LedPaint.

Parameters:
parameters - LedPaintParameters
Method Detail

createContext

public java.awt.PaintContext createContext(java.awt.image.ColorModel cm,
                                           java.awt.Rectangle deviceBounds,
                                           java.awt.geom.Rectangle2D userBounds,
                                           java.awt.geom.AffineTransform xform,
                                           java.awt.RenderingHints hints)
Specified by:
createContext in interface java.awt.Paint
Parameters:
cm - ColorModel
deviceBounds - Rectangle
userBounds - Rectangle2D
xform - AffineTransform
hints - RenderingHints
Returns:
PaintContext
See Also:
Paint.createContext(ColorModel, Rectangle, Rectangle2D, AffineTransform, RenderingHints)

getTransparency

public int getTransparency()
Always returns OPAQUE.

Specified by:
getTransparency in interface java.awt.Transparency
Returns:
int
See Also:
Transparency.getTransparency()

setCenter

public void setCenter(int x,
                      int y)


Copyright © 2010. All Rights Reserved.