Package edu.cmu.cs.stage3.math

Examples of edu.cmu.cs.stage3.math.Vector3


    keyChar.valueClass.set( Character.class );
    details.add( keyChar );
  }
  private void updateDetails( java.awt.event.KeyEvent keyEvent ) {
    for( int i=0; i<details.size(); i++ ) {
      Variable detail = (Variable)details.get( i );
      if( detail.name.getStringValue().equals( "keyChar" ) ) {
        detail.value.set( new Character( keyEvent.getKeyChar() ) );
      }
    }
  }
View Full Code Here


    }
  }
  public void manufactureDetails() {
    super.manufactureDetails();

    Variable x = new Variable();
    x.name.set( "x" );
    x.setParent( this );
    x.valueClass.set( Number.class );
    details.add( x );

    Variable y = new Variable();
    y.name.set( "y" );
    y.setParent( this );
    y.valueClass.set( Number.class );
    details.add( y );

    manufactureAnyNecessaryDetails();
  }
View Full Code Here

  public Object getValue() {
    Transformable ownerValue = owner.getTransformableValue();
    String nameValue = variableName.getStringValue();
        if( ownerValue != null ) {
            for( int i=0; i<ownerValue.variables.size(); i++ ) {
                Variable variableI = (Variable)ownerValue.variables.get( i );
                if( variableI != null ) {
                    String nameI = variableI.name.getStringValue();
                    if( nameI != null ) {
                        if( ignoreCase.booleanValue() ) {
                            if( nameI.equalsIgnoreCase( nameValue ) ) {
                                return variableI.getValue();
                            }
                        } else {
                            if( nameI.equals( nameValue ) ) {
                                return variableI.getValue();
                            }
                        }
                    }
                }
            }
View Full Code Here

    details.add( toWhom );
  }

  private void updateDetails( edu.cmu.cs.stage3.alice.core.event.MessageEvent messageEvent ) {
    for( int i=0; i<details.size(); i++ ) {
      Variable detail = (Variable)details.get( i );
      if( detail.name.getStringValue().equals( "message" ) ) {
        detail.value.set( messageEvent.getMessage() );
      } else if( detail.name.getStringValue().equals( "fromWho" ) ) {
        detail.value.set( messageEvent.getFromWho() );
      } else if( detail.name.getStringValue().equals( "toWhom" ) ) {
View Full Code Here

    details.add( code );
  }

  private void updateDetails( java.awt.event.KeyEvent keyEvent ) {
    for( int i=0; i<details.size(); i++ ) {
      Variable detail = (Variable)details.get( i );
      if( detail.name.getStringValue().equals( "keyChar" ) ) {
        detail.value.set( new Character( keyEvent.getKeyChar() ) );
      } else if( detail.name.getStringValue().equals( "code" ) ) {
        detail.value.set( new Integer( keyEvent.getKeyCode() ) );
      }
View Full Code Here

  public final ElementArrayProperty requiredActualParameters = new ElementArrayProperty( this, "requiredActualParameters", null, Variable[].class );
  public final ElementArrayProperty keywordActualParameters = new ElementArrayProperty( this, "keywordActualParameters", null, Variable[].class );
    public Object getValue() {
        UserDefinedQuestion userDefinedQuestionValue = userDefinedQuestion.getUserDefinedQuestionValue();
        Behavior currentBehavior = null;
        World world = getWorld();
        if( world != null ) {
            Sandbox sandbox = world.getCurrentSandbox();
            if( sandbox!=null ) {
                currentBehavior = sandbox.getCurrentBehavior();
            } else {
                //System.err.println( "current sandbox is null" );
            }
View Full Code Here

    }
    }

  private void onItemChanging( Object item, int changeType, int oldIndex, int newIndex ) {
    if( !m_objectArrayPropertyListeners.isEmpty() ) {
      ObjectArrayPropertyEvent objectArrayPropertyEvent = new ObjectArrayPropertyEvent( this, item, changeType, oldIndex, newIndex );
      ObjectArrayPropertyListener[] objectArrayPropertyListeners = getObjectArrayPropertyListeners();
            for( int i=0; i<objectArrayPropertyListeners.length; i++ ) {
                objectArrayPropertyListeners[ i ].objectArrayPropertyChanging( objectArrayPropertyEvent );
            }
            /*
 
View Full Code Here

            */
    }
  }
  private void onItemChanged( Object item, int changeType, int oldIndex, int newIndex ) {
    if( !m_objectArrayPropertyListeners.isEmpty() ) {
      ObjectArrayPropertyEvent objectArrayPropertyEvent = new ObjectArrayPropertyEvent( this, item, changeType, oldIndex, newIndex );
      ObjectArrayPropertyListener[] objectArrayPropertyListeners = getObjectArrayPropertyListeners();
            for( int i=0; i<objectArrayPropertyListeners.length; i++ ) {
                objectArrayPropertyListeners[ i ].objectArrayPropertyChanged( objectArrayPropertyEvent );
            }
            /*
 
View Full Code Here

      //pass
    }
  }
  protected void onSet( Object value ) {
    Class valueClass = getValueClass();
    PropertyEvent propertyEvent = new PropertyEvent( this, value );
    onChanging( propertyEvent );
    m_value = value;
    onChanged( propertyEvent );
        m_associatedFileKey = null;
  }
View Full Code Here

                    if (cameras.length>0)
                        subject.set(cameras[0]);
                }
            }
            if (keyMap.get()==null)
                keyMap.set(new KeyMapping());
            ((KeyMapping)keyMap.get()).cleanState();


            enable();
View Full Code Here

TOP

Related Classes of edu.cmu.cs.stage3.math.Vector3

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.