|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlegacy.Configuration
public abstract class Configuration
Configuration.class Allows the user define the enviroment it wishes to run in.
| Constructor Summary | |
|---|---|
Configuration()
|
|
| Method Summary | |
|---|---|
abstract void |
createPallet(RGB[] pal)
createPallet to allow user to define a pallet. |
abstract int |
getFrameRate()
getFrameRate() return the disird framerate or frames per second to lock. Recommend viewing description in VideoAdapter.class. |
abstract VideoAdapter |
getVideoAdaptor()
getVideoAdaptor() should return the required video adaptor. |
abstract java.lang.Object |
getVideoMemoryModel()
This must be set to allow the proceeding createPallet(RGB[] pal) method to be correctly called and applied to the active VideaAdapter example |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Configuration()
| Method Detail |
|---|
public abstract VideoAdapter getVideoAdaptor()
public abstract int getFrameRate()
VideoAdapterpublic abstract java.lang.Object getVideoMemoryModel()
public Object getVideoMemoryModel(){
return adaptor.MemoryModelPalletized1Bit;
}
public abstract void createPallet(RGB[] pal)
public void createPallet(RGB[] pal){
Pallets.GREYSCALE_256C.createPallet(pal);
pal[1] = Colors.MONEY_GREEN;
}
Incorrect usage
public void createPallet(RGB[] pal){
pal = new RGB[256]; //Illegal cannot change object!!!
Pallets.GREYSCALE_256C.createPallet(pal);
pal[1] = Colors.MONEY_GREEN;
}
createPallet in interface PalletFactorypal - array pre determinied to be defined.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||