dip.gui.map
Class RenderCommandFactory.RenderCommand

java.lang.Object
  extended bydip.gui.map.RenderCommandFactory.RenderCommand
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
RenderCommandFactory.BooleanRenderCommand, RenderCommandFactory.RCRenderAll, RenderCommandFactory.RCRenderProvince, RenderCommandFactory.RCSetLabel, RenderCommandFactory.RCSetPowerOrdersDisplayed, RenderCommandFactory.RCSetTurnstate
Enclosing class:
RenderCommandFactory

public abstract static class RenderCommandFactory.RenderCommand
extends java.lang.Object
implements java.lang.Runnable

All Render updates occur via RenderCommands.


Field Summary
protected  MapRenderer2 mr
           
 
Constructor Summary
RenderCommandFactory.RenderCommand(MapRenderer2 mr)
          Constructor
 
Method Summary
 void die()
          Irreversibly prevents the execute() method from being executed by run().
abstract  void execute()
          Do the work.
 void run()
          Runnable interface.
 java.lang.String toString()
          For debugging
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mr

protected final MapRenderer2 mr
Constructor Detail

RenderCommandFactory.RenderCommand

public RenderCommandFactory.RenderCommand(MapRenderer2 mr)
Constructor

Method Detail

execute

public abstract void execute()
Do the work. Does nothing by default. Must be subclassed.


run

public final void run()
Runnable interface. Checks if this object is alive and if so, calls the execute() method. Otherwise, returns immediately. Subclasses should subclass execute instead of this method..

Specified by:
run in interface java.lang.Runnable

die

public void die()
Irreversibly prevents the execute() method from being executed by run().


toString

public java.lang.String toString()
For debugging



Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.