Examples of AspectRatio


Examples of com.eteks.sweethome3d.model.AspectRatio

        AspectRatio.RATIO_2_1});
    this.aspectRatioComboBox.setRenderer(new DefaultListCellRenderer() {
        @Override
        public Component getListCellRendererComponent(JList list, Object value,
                                                      int index, boolean isSelected, boolean cellHasFocus) {
          AspectRatio aspectRatio = (AspectRatio)value;
          String displayedValue = "";
          if (aspectRatio != AspectRatio.FREE_RATIO) {
            switch (aspectRatio) {
              case VIEW_3D_RATIO :
                displayedValue = preferences.getLocalizedString(
View Full Code Here

Examples of com.eteks.sweethome3d.model.AspectRatio

  /**
   * Sets the aspect ratio of the photo.
   */
  public void setAspectRatio(AspectRatio aspectRatio) {
    if (this.aspectRatio != aspectRatio) {
      AspectRatio oldAspectRatio = this.aspectRatio;
      this.aspectRatio = aspectRatio;
      this.propertyChangeSupport.firePropertyChange(Property.ASPECT_RATIO.name(), oldAspectRatio, aspectRatio);
      this.home.getEnvironment().setPhotoAspectRatio(this.aspectRatio);
      if (this.aspectRatio == AspectRatio.VIEW_3D_RATIO) {
        setHeight(Math.round(width / this.view3DAspectRatio), false);
View Full Code Here

Examples of com.eteks.sweethome3d.model.AspectRatio

  /**
   * Sets the aspect ratio of the video.
   */
  public void setAspectRatio(AspectRatio aspectRatio) {
    if (this.aspectRatio != aspectRatio) {
      AspectRatio oldAspectRatio = this.aspectRatio;
      this.aspectRatio = aspectRatio;
      this.propertyChangeSupport.firePropertyChange(Property.ASPECT_RATIO.name(), oldAspectRatio, aspectRatio);
      this.home.getEnvironment().setVideoAspectRatio(this.aspectRatio);
      setHeight(Math.round(width / this.aspectRatio.getValue()), false);
    }
View Full Code Here

Examples of fcagnin.jgltut.tut04.AspectRatio

                            Framework.CURRENT_TUTORIAL_DATAPATH = "/fcagnin/jgltut/tut04/data/";
                            new MatrixPerspective().start();
                            break;
                        case "AspectRatio":
                            Framework.CURRENT_TUTORIAL_DATAPATH = "/fcagnin/jgltut/tut04/data/";
                            new AspectRatio().start();
                            break;

                        case "OverlapNoDepth":
                            Framework.CURRENT_TUTORIAL_DATAPATH = "/fcagnin/jgltut/tut05/data/";
                            new OverlapNoDepth().start();
View Full Code Here

Examples of org.openhab.binding.epsonprojector.internal.EpsonProjectorDevice.AspectRatio

      switch (commmandType) {
      case AKEYSTONE:
        int autoKeystone = remoteController.getAutoKeystone();
        return new DecimalType(autoKeystone);
      case ASPECT_RATIO:
        AspectRatio aspectRatio = remoteController.getAspectRatio();
        return new StringType(aspectRatio.toString());
      case BACKGROUND:
        Background background = remoteController.getBackground();
        return new StringType(background.toString());
      case BRIGHTNESS:
        int brightness = remoteController.getBrightness();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.