Class RadianceMetricsUtilities

java.lang.Object
org.pushingpixels.radiance.theming.internal.utils.RadianceMetricsUtilities

public class RadianceMetricsUtilities extends Object
Utility methods to keep component preferred size and component painting in sync. All update() calls in the UI delegates use RadianceCommonCortex.installDesktopHints(java.awt.Graphics2D, java.awt.Font) on the passed Graphics object. Components that show texts (labels, buttons, etc) should also account for text hinting for computing the preferred size. Otherwise on some JVM versions on specific screens the width of unhinted text is not the same as the width of hinted text, leading to text cut-off.