Class ScaleWidthAndHeight

  • All Implemented Interfaces:
    Scale

    public class ScaleWidthAndHeight
    extends java.lang.Object
    implements Scale
    • Constructor Summary

      Constructors 
      Constructor Description
      ScaleWidthAndHeight​(double maxWidth, double maxHeight)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getScale​(double width, double height)  
      double getScaleInternal​(double width, double height)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface net.sourceforge.plantuml.Scale

        getScale
    • Constructor Detail

      • ScaleWidthAndHeight

        public ScaleWidthAndHeight​(double maxWidth,
                                   double maxHeight)
    • Method Detail

      • getScaleInternal

        public double getScaleInternal​(double width,
                                       double height)
      • getScale

        public final double getScale​(double width,
                                     double height)
        Specified by:
        getScale in interface Scale