Camera.java :  » Google-tech » kmlframework » org » boehn » kmlframework » kml » Java Open Source

Java Open Source » Google tech » kmlframework 
kmlframework » org » boehn » kmlframework » kml » Camera.java
package org.boehn.kmlframework.kml;


public class Camera extends AbstractView {

  private Double roll;

  public Camera() {}
  
  public Camera(Double longitude, Double latitude, Double altitude, Double heading, Double tilt, AltitudeModeEnum altitudeMode, Double roll) {
    super(longitude, latitude, altitude, heading,tilt, altitudeMode);
    this.roll = roll;
  }
  
  public Double getRoll() {
    return roll;
  }

  public void setRoll(Double roll) {
    this.roll = roll;
  }

  public void write(Kml kml) throws KmlException {
    kml.println("<Camera" + getIdAndTargetIdFormatted(kml) + ">", 1);
    super.writeInner(kml);
    if (roll != null) {
      kml.println("<roll>" + roll + "</roll>");
    }
    kml.println(-1, "</Camera>");
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.