All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.tablesaw.plotly.components.threeD.CameraComponent Maven / Gradle / Ivy

package tech.tablesaw.plotly.components.threeD;

import java.util.HashMap;
import java.util.Map;
import tech.tablesaw.plotly.components.Component;

class CameraComponent extends Component {

  private final double x;
  private final double y;
  private final double z;

  CameraComponent(double x, double y, double z) {
    this.x = x;
    this.y = y;
    this.z = z;
  }

  @Override
  public String asJavascript() {
    return asJSON();
  }

  @Override
  protected Map getJSONContext() {
    return getContext();
  }

  @Override
  protected Map getContext() {
    Map context = new HashMap<>();
    context.put("x", x);
    context.put("y", y);
    context.put("z", z);
    return context;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy