|
||||||||||
| 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
rle.core.ui.TextCamera
public class TextCamera
Draws the board view using a textual representation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class rle.core.ui.CameraBase |
|---|
CameraBase.CameraImpl |
| Field Summary | |
|---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
mappings
|
| Fields inherited from class rle.core.ui.CameraBase |
|---|
component, img, model, updateFlags, updateNeeded, visible |
| Fields inherited from class rle.core.vm.PlugInBase |
|---|
config, context, parameters |
| Constructor Summary | |
|---|---|
TextCamera()
|
|
| Method Summary | |
|---|---|
void |
boardChange(ChangeEvent event)
Respond to a change in underlying Board. |
protected void |
createFontHelpers()
|
protected java.awt.image.BufferedImage |
createImage(Thing t)
Create and return an image representation of this Thing. |
void |
flush()
Copy the back buffer to the screen. |
protected void |
loadResources()
|
void |
regionChange(ChangeEvent event)
Respond to a change in Board region coverage. |
protected void |
render(Thing t,
java.awt.Graphics g,
double x,
double y,
int ox,
int oy)
Render t as if it was located at (x,y) on the Board. |
void |
renderBackBuffer()
Render the entire view to the offscreen buffer. |
void |
renderSprite(Thing t,
double x,
double y)
Draw t above the current image immediately. |
void |
restoreBackBuffer(double x,
double y,
double w,
double h)
Copy the contents of the back buffer to the screen. |
void |
setModel(CameraModel model)
Set the model. |
void |
update(int x,
int y,
int width,
int height)
Figure out what should be drawn in a region. |
protected Thing |
visibleThing(RLPoint p)
A thing is visible if it is the highest priority known thing at a particular location. |
void |
visualChange(Thing t)
Respond to an indication that the appearance of a Thing has changed. |
| Methods inherited from class rle.core.ui.CameraBase |
|---|
createComponent, getComponent, getModel, initializeImage, paintHighlight, update, update |
| 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 java.util.Map<java.lang.String,java.lang.String> mappings
| Constructor Detail |
|---|
public TextCamera()
| Method Detail |
|---|
public void renderBackBuffer()
renderBackBuffer in interface CamerarenderBackBuffer in class CameraBaseprotected Thing visibleThing(RLPoint p)
visibleThing in class CameraBase
protected void render(Thing t,
java.awt.Graphics g,
double x,
double y,
int ox,
int oy)
protected java.awt.image.BufferedImage createImage(Thing t)
public void renderSprite(Thing t,
double x,
double y)
renderSprite in interface CamerarenderSprite in class CameraBase
public void restoreBackBuffer(double x,
double y,
double w,
double h)
restoreBackBuffer in interface CamerarestoreBackBuffer in class CameraBasepublic void regionChange(ChangeEvent event)
regionChange in interface CameraModelListenerregionChange in class CameraBasepublic void boardChange(ChangeEvent event)
boardChange in interface CameraModelListenerboardChange in class CameraBasepublic void visualChange(Thing t)
visualChange in interface CameraModelListenervisualChange in class CameraBaseprotected void loadResources()
public void setModel(CameraModel model)
setModel in interface CamerasetModel in class CameraBase
public void update(int x,
int y,
int width,
int height)
update in interface Cameraupdate in class CameraBasepublic void flush()
flush in interface Cameraflush in class CameraBaseprotected void createFontHelpers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||