/** * fluent setter * @see #setAbstractView(AbstractView) * * @param abstractView * required parameter */ public Feature withAbstractView(final AbstractView abstractView) { this.setAbstractView(abstractView); return this; }
/** * fluent setter * @see #setAbstractView(AbstractView) * * @param abstractView * required parameter */ public Feature withAbstractView(final AbstractView abstractView) { this.setAbstractView(abstractView); return this; }
/** * Creates a new instance of {@link LookAt} and set it to abstractView. * * This method is a short version for: * <code> * LookAt lookAt = new LookAt(); * this.setAbstractView(lookAt); </code> * * */ public LookAt createAndSetLookAt() { LookAt newValue = new LookAt(); this.setAbstractView(newValue); return newValue; }
/** * Creates a new instance of {@link Camera} and set it to abstractView. * * This method is a short version for: * <code> * Camera camera = new Camera(); * this.setAbstractView(camera); </code> * * */ public Camera createAndSetCamera() { Camera newValue = new Camera(); this.setAbstractView(newValue); return newValue; }
/** * Creates a new instance of {@link Camera} and set it to abstractView. * * This method is a short version for: * <code> * Camera camera = new Camera(); * this.setAbstractView(camera); </code> * * */ public Camera createAndSetCamera() { Camera newValue = new Camera(); this.setAbstractView(newValue); return newValue; }
/** * Creates a new instance of {@link LookAt} and set it to abstractView. * * This method is a short version for: * <code> * LookAt lookAt = new LookAt(); * this.setAbstractView(lookAt); </code> * * */ public LookAt createAndSetLookAt() { LookAt newValue = new LookAt(); this.setAbstractView(newValue); return newValue; }
@Override public Feature decorate(Feature feature, KmlEncodingContext context) { Envelope bounds = context.getCurrentLayer().getBounds(); LookAt lookAt = buildLookAt(bounds, context.getLookAtOptions(), false); feature.setAbstractView(lookAt); return feature; }