Class PamAxisFX.FontMetrics

java.lang.Object
pamViewFX.fxNodes.pamAxis.PamAxisFX.FontMetrics
Enclosing class:
PamAxisFX

public class PamAxisFX.FontMetrics extends Object
Internal class to mimic the non-public JavaFx FontMetrics class, no longer available from JavaFX 9 onwards. Code is taken from here: http://werner.yellowcouch.org/log/fontmetrics-jdk9/, with fields set to private instead of public and getters added
Author:
mo55
  • Constructor Details

    • FontMetrics

      public FontMetrics(javafx.scene.text.Font fnt)
  • Method Details

    • computeStringWidth

      public float computeStringWidth(String txt)
    • getAscent

      public float getAscent()
    • getDescent

      public float getDescent()
    • getLineHeight

      public float getLineHeight()