Package lipstone.joshua.parser.util

Examples of lipstone.joshua.parser.util.AngleType


   * @return the AngleType that was previously in use
   */
  public AngleType setAngleType(AngleType angleType) {
    if (!angleTypes.containsKey(angleType.getName()))
      addAngleType(angleType);
    AngleType old = this.angleType;
    if (!angleType.equals(this.angleType))
      propertyChangeSupport.firePropertyChange("AngleTypeChanged", this.angleType, (this.angleType = angleType));
    return old;
  }
View Full Code Here


   * @param angleType
   *            the {@link lipstone.joshua.parser.util.AngleType AngleType} to add
   * @return the {@link lipstone.joshua.parser.util.AngleType AngleType} that this overrode if it did, otherwise null
   */
  public AngleType addAngleType(AngleType angleType) {
    AngleType old = angleTypes.put(angleType.getName(), angleType);
    propertyChangeSupport.firePropertyChange("AngleTypeAdded", old, angleType);
    return old;
  }
View Full Code Here

   * @param angleType
   *            the name of the {@link lipstone.joshua.parser.util.AngleType AngleType} to remove
   * @return the {@link lipstone.joshua.parser.util.AngleType AngleType} that was removed, otherwise null
   */
  public AngleType removeAngleType(String angleType) {
    AngleType old = angleTypes.remove(angleType);
    propertyChangeSupport.firePropertyChange("AngleTypeRemoved", old, null);
    return old;
  }
View Full Code Here

 
  @Override
  public void loadCommands() throws PluginConflictException {
    addCommand(new Command("setAngle", "set the angle to Degrees, Radians, or Grads", this));
    ConsCell temp = getData("angle");
    AngleType angle = (temp == null) ? parser.getAngleType() : parser.getAngleType(temp.toString());
    parser.setAngleType(angle);
    addCommand(new Command("showAngle", "shows the active angle measurment system", this));
  }
View Full Code Here

TOP

Related Classes of lipstone.joshua.parser.util.AngleType

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.