|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrle.core.vm.PlugInBase
rle.core.ui.CameraBase
public abstract class CameraBase
Base class for Cameras.
| Nested Class Summary | |
|---|---|
protected class |
CameraBase.CameraImpl
|
| Field Summary | |
|---|---|
protected javax.swing.JComponent |
component
|
protected java.awt.image.BufferedImage |
img
|
protected CameraModel |
model
|
protected boolean[][] |
updateFlags
|
protected boolean |
updateNeeded
|
protected Thing[][] |
visible
|
| Fields inherited from class rle.core.vm.PlugInBase |
|---|
config, context, parameters |
| Constructor Summary | |
|---|---|
CameraBase()
|
|
| Method Summary | |
|---|---|
void |
boardChange(ChangeEvent event)
Respond to a change in underlying Board. |
protected javax.swing.JComponent |
createComponent()
create the initial component |
void |
flush()
Copy the back buffer to the screen. |
javax.swing.JComponent |
getComponent()
|
CameraModel |
getModel()
|
protected void |
initializeImage()
|
protected void |
paintHighlight(java.awt.Graphics g)
Paint the highlighter to a graphics. |
void |
regionChange(ChangeEvent event)
Respond to a change in Board region coverage. |
abstract void |
renderBackBuffer()
Render the entire view to the offscreen buffer. |
abstract void |
renderSprite(Thing t,
double x,
double y)
Draw t above the current image immediately. |
abstract void |
restoreBackBuffer(double x,
double y,
double w,
double h)
Copy the contents of the back buffer to the screen. |
void |
setModel(CameraModel model)
|
void |
update()
|
abstract void |
update(int x,
int y,
int width,
int height)
Clear then draw the specified region. |
void |
update(Locator l)
Flag a region for update. |
protected abstract Thing |
visibleThing(RLPoint p)
|
void |
visualChange(Thing t)
Respond to an indication that the appearance of a Thing has changed. |
| Methods inherited from class rle.core.vm.PlugInBase |
|---|
config, getContext, getParameters, paramMap, setConfig, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface rle.core.vm.PlugIn |
|---|
config, getContext, paramMap, setConfig, setParameters |
| Field Detail |
|---|
protected javax.swing.JComponent component
protected CameraModel model
protected java.awt.image.BufferedImage img
protected Thing[][] visible
protected boolean updateNeeded
protected boolean[][] updateFlags
| Constructor Detail |
|---|
public CameraBase()
| Method Detail |
|---|
protected javax.swing.JComponent createComponent()
public abstract void update(int x,
int y,
int width,
int height)
update in interface Camerapublic abstract void renderBackBuffer()
renderBackBuffer in interface Camerapublic void update(Locator l)
update in interface Camerapublic void update()
public CameraModel getModel()
getModel in interface Camerapublic void setModel(CameraModel model)
setModel in interface Cameraprotected void paintHighlight(java.awt.Graphics g)
public javax.swing.JComponent getComponent()
getComponent in interface Camera
public abstract void renderSprite(Thing t,
double x,
double y)
renderSprite in interface Camera
public abstract void restoreBackBuffer(double x,
double y,
double w,
double h)
restoreBackBuffer in interface Camerapublic void flush()
flush in interface Cameraprotected abstract Thing visibleThing(RLPoint p)
protected void initializeImage()
public void regionChange(ChangeEvent event)
regionChange in interface CameraModelListenerpublic void boardChange(ChangeEvent event)
boardChange in interface CameraModelListenerpublic void visualChange(Thing t)
visualChange in interface CameraModelListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||