DESY ACOP Beans Home
com.cosylab.gui.components.ledder
Class LedRenderer
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LedRenderer
public LedRenderer(int x,
int y,
int r,
LedPaintParameters lpp)
- Parameters:
x - inty - intr - intlpp - LedPaintParameters
getLight
public double[] getLight(double x,
double y)
- Parameters:
x - doubley - doublev - double[]
- Returns:
- double[]
renderSection
public final int[] renderSection(int x,
int y,
int w,
int h)
- Parameters:
x - inty - intw - inth - int
- Returns:
- int[]
Copyright © 2010. All Rights Reserved.