1 24 25 package utobcast.draw; 26 27 import org.objectweb.dream.message.AbstractChunk; 28 import org.objectweb.dream.message.Chunk; 29 import org.objectweb.dream.message.ChunkType; 30 31 34 public class DrawCommandChunkImpl extends AbstractChunk 35 implements 36 DrawCommandChunk 37 { 38 39 protected DrawCommand dc; 40 41 45 48 public DrawCommand getDrawCommand() 49 { 50 return dc; 51 } 52 53 56 public void setDrawCommand(DrawCommand dc) 57 { 58 this.dc = dc; 59 } 60 61 65 68 public ChunkType getType() 69 { 70 return TYPE; 71 } 72 73 76 public void transfertState(Chunk newInstance) 77 { 78 ((DrawCommandChunk) newInstance).setDrawCommand(getDrawCommand()); 79 } 80 81 84 public void recycle() 85 { 86 dc = null; 87 } 88 89 } | Popular Tags |