Class CanvasTextMetricsImpl

java.lang.Object
org.loboevolution.html.dom.canvas.CanvasTextMetricsImpl
All Implemented Interfaces:
TextMetrics

public class CanvasTextMetricsImpl extends Object implements TextMetrics

CanvasTextMetricsImpl class.

  • Constructor Details

    • CanvasTextMetricsImpl

      public CanvasTextMetricsImpl(double width, double height)

      Constructor for CanvasTextMetricsImpl.

      Parameters:
      width - a double.
      height - a double.
  • Method Details

    • getWidth

      public double getWidth()
      Gets the width.
      Specified by:
      getWidth in interface TextMetrics
      Returns:
      the width
    • getHeight

      public double getHeight()
      Gets the height.
      Specified by:
      getHeight in interface TextMetrics
      Returns:
      the height