DESY ACOP Beans Home

com.cosylab.gui.components.ledder
Class LedRenderer

java.lang.Object
  extended by com.cosylab.gui.components.ledder.LedRenderer

public class LedRenderer
extends java.lang.Object

This is a specialized class for rendering LED icons. It is implemented as a minimal ray-tracer with specular lighting overlay rendering.

NOTE: Due to performance reasons this class is not thread-safe and should not be shared in multiple instances.

Version:
$id$
Author:
Ales Pucelj

Constructor Summary
LedRenderer(int x, int y, int r, LedPaintParameters lpp)
           
 
Method Summary
 double[] getLight(double x, double y)
           
 int[] renderSection(int x, int y, int w, int h)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LedRenderer

public LedRenderer(int x,
                   int y,
                   int r,
                   LedPaintParameters lpp)
Parameters:
x - int
y - int
r - int
lpp - LedPaintParameters
Method Detail

getLight

public double[] getLight(double x,
                         double y)
Parameters:
x - double
y - double
v - double[]
Returns:
double[]

renderSection

public final int[] renderSection(int x,
                                 int y,
                                 int w,
                                 int h)
Parameters:
x - int
y - int
w - int
h - int
Returns:
int[]


Copyright © 2010. All Rights Reserved.