src/jtwod/engine/metrics/Dimensions.java
private void recalculate()
    {
        if (this.aspectRatio != null) {
            switch (this.aspectRatio.getControlAxis()) {
                case HeightControlled : 
                    this.width = 
                        this.height / 
                            this.aspectRatio.getRatio().getHeight()
                          * this.aspectRatio.getRatio().getWidth();
                    break;
                case WidthControlled :
                    this.height = 
                        this.width / 
                              this.aspectRatio.getRatio().getWidth() 
                            * this.aspectRatio.getRatio().getHeight();
                    break;
            }
            
        }
    }
/**
     * Recalculate the dimensions using the current aspect ratio.
     */
Recalculate the dimensions using the current aspect ratio.
Recalculate the dimensions using the current aspect ratio .
private void recalculate()
    {
        if (this.aspectRatio != null) {
            switch (this.aspectRatio.getControlAxis()) {
                case HeightControlled : 
                    this.width = 
                        this.height / 
                            this.aspectRatio.getRatio().getHeight()
                          * this.aspectRatio.getRatio().getWidth();
                    break;
                case WidthControlled :
                    this.height = 
                        this.width / 
                              this.aspectRatio.getRatio().getWidth() 
                            * this.aspectRatio.getRatio().getHeight();
                    break;
            }
        }
    }
private void recalculate ( ) { if ( this . aspectRatio != null ) { switch ( this . aspectRatio . getControlAxis ( ) ) { case HeightControlled : this . width = this . height / this . aspectRatio . getRatio ( ) . getHeight ( ) * this . aspectRatio . getRatio ( ) . getWidth ( ) ; break ; case WidthControlled : this . height = this . width / this . aspectRatio . getRatio ( ) . getWidth ( ) * this . aspectRatio . getRatio ( ) . getHeight ( ) ; break ; } } }
Recalculate the dimensions using the current aspect ratio.
Recalculate the dimensions using the current aspect ratio .