Class CanvasTextMetricsImpl
java.lang.Object
org.loboevolution.html.dom.canvas.CanvasTextMetricsImpl
- All Implemented Interfaces:
TextMetrics
CanvasTextMetricsImpl class.
-
Constructor Summary
ConstructorDescriptionCanvasTextMetricsImpl
(double width, double height) Constructor for CanvasTextMetricsImpl. -
Method Summary
-
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 interfaceTextMetrics
- Returns:
- the width
-
getHeight
public double getHeight()Gets the height.- Specified by:
getHeight
in interfaceTextMetrics
- Returns:
- the height
-