Ignore:
Timestamp:
11/17/08 15:43:36 (16 years ago)
Author:
ra33
Message:

Added auto colour wheel... when drawing rectangles...
Fixed computeTree bug
Added TDFC for rectangles.

Location:
trunk/src/org/expeditee/agents
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/agents/Agent.java

    r179 r390  
    1212 */
    1313public interface Agent extends Runnable {
    14 
     14       
    1515        /**
    1616         * This method should always be called before calling process(). The Frame
  • trunk/src/org/expeditee/agents/ComputeTree.java

    r247 r390  
    3838                // Search for @Compute frame tag
    3939                String computeTag = null;
     40               
     41                //TODO can speed this up by using frame.hasAnnotations
    4042                for (Item i : frame.getItems()) {
    4143                        if (_stop)
     
    109111                                }
    110112                        }
     113                       
     114                        if(value.equals(Double.NaN))
     115                                continue;
    111116
    112117                        if (value != null) {
  • trunk/src/org/expeditee/agents/DefaultAgent.java

    r313 r390  
    1818 */
    1919public abstract class DefaultAgent implements Agent {
     20        public static int AGENTS_RUNNING = 0;
     21       
    2022        public static final String CLIPBOARD = "Clipboard";
    2123
     
    4547
    4648        public DefaultAgent(String delay) {
    47                 super();
     49                this();
    4850                try {
    4951                        _delay = (int) (Double.parseDouble(delay) * 1000);
     
    5456        public DefaultAgent() {
    5557                super();
     58                AGENTS_RUNNING++;
     59        }
     60       
     61        public static boolean isAgentRunning() {
     62                return AGENTS_RUNNING > 0;
    5663        }
    5764
     
    101108
    102109                _running = false;
     110                AGENTS_RUNNING--;
    103111
    104112                FrameGraphics.requestRefresh(true);
Note: See TracChangeset for help on using the changeset viewer.