|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectctSim.model.bots.components.BotComponent<Void>
ctSim.model.bots.components.MousePictureComponent
public class MousePictureComponent
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ctSim.model.bots.components.BotComponent |
|---|
BotComponent.CanRead, BotComponent.CanWrite, BotComponent.CanWriteAsynchronously, BotComponent.ConnectionFlags, BotComponent.SimpleActuator, BotComponent.SimpleSensor |
| Constructor Summary | |
|---|---|
MousePictureComponent()
Mausbild-Komponente |
|
| Method Summary | |
|---|---|
void |
addCompletionListener(Runnable li)
|
void |
addImageListener(Runnable1<Image> li)
|
void |
askForWrite(CommandOutputStream s)
Schreibanforderung |
String |
getDescription()
|
int |
getHeight()
|
Command.Code |
getHotCmdCode()
Nicht aufrufen – sollte nur von askForWrite()
und offerRead() verwendet
werden. |
String |
getName()
|
int |
getWidth()
|
void |
readFrom(Command c)
Erwartet 18×18 = 324 Pixel in dieser Reihenfolge: 18 36 ... 324 ... ... ... ... 2 20 ... ... 1 19 ... 307 |
void |
removeCompletionListener(Runnable li)
|
void |
removeImageListener(Runnable1<Image> li)
|
void |
requestPicture()
Bild anfordern |
void |
setAsyncWriteStream(CommandOutputStream s)
Setzt Asynchronen-Schreib-Stream |
void |
updateExternalModel()
Nur auf dem EDT laufenlassen |
void |
writeTo(Command c)
No-op: Wir implementieren die, weil wir laut Interface müssen, aber wir brauchen die nicht weil wir ja askForWrite()
überschrieben haben. |
| Methods inherited from class ctSim.model.bots.components.BotComponent |
|---|
getExternalModel, isGuiEditable, offerAsyncWriteStream, offerRead, readsCommands, setFlags, writesAsynchronously, writesSynchronously |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MousePictureComponent()
| Method Detail |
|---|
public void setAsyncWriteStream(CommandOutputStream s)
BotComponent.CanWriteAsynchronously
setAsyncWriteStream in interface BotComponent.CanWriteAsynchronouslys - OutputStreamBotComponent.CanWriteAsynchronously.setAsyncWriteStream(ctSim.model.CommandOutputStream)
public void requestPicture()
throws IOException
IOExceptionpublic void askForWrite(CommandOutputStream s)
BotComponent
askForWrite in class BotComponent<Void>s - CommandOutputStreamBotComponent.askForWrite(ctSim.model.CommandOutputStream)public void readFrom(Command c)
18 36 ... 324 ... ... ... ... 2 20 ... ... 1 19 ... 307
readFrom in interface BotComponent.CanReadc - Commandpublic void writeTo(Command c)
askForWrite()
überschrieben haben.
writeTo in interface BotComponent.CanWritec - Commandpublic int getWidth()
public int getHeight()
public Command.Code getHotCmdCode()
BotComponent.CanReadaskForWrite()
und offerRead() verwendet
werden.
getHotCmdCode in interface BotComponent.CanReadgetHotCmdCode in interface BotComponent.CanWriteBotComponent.CanRead.getHotCmdCode()public String getName()
getName in class BotComponent<Void>BotComponent.getName()public String getDescription()
getDescription in class BotComponent<Void>BotComponent.getDescription()public void addImageListener(Runnable1<Image> li)
li - Listenerpublic void removeImageListener(Runnable1<Image> li)
li - Listenerpublic void addCompletionListener(Runnable li)
li - Listenerpublic void removeCompletionListener(Runnable li)
li - Listenerpublic void updateExternalModel()
BotComponent
updateExternalModel in class BotComponent<Void>BotComponent.updateExternalModel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||