public class GXTagUtil
extends java.lang.Object
Constructor and Description |
---|
GXTagUtil() |
Modifier and Type | Method and Description |
---|---|
static double |
getHeightPixels(int height,
int fontSize,
int precentageFactor)
This method is used for determine the proportion between a given height &
font size to actual height in pixels
|
static double |
getTagHeight(GXITag tag,
int fontSize,
int precentageFactor)
This methd returns the tag height in pixels, in order to know if the tag
is overriding his below neighbour
|
static double |
getTagWidth(GXITag tag,
int fontSize,
GXRenderConfig renderConfig)
This method returns the tag width in pixels, in order to know if the tag
is overriding his right/left neighbor
|
static double |
getWidthPixels(GXRenderConfig renderConfig,
int length,
int fontSize)
This method is used for determine the proportion between a given length &
font size to actual width in pixels
|
public static double getWidthPixels(GXRenderConfig renderConfig, int length, int fontSize)
length
- The host field lengthfontSize
- The display font size in pixelspublic static double getHeightPixels(int height, int fontSize, int precentageFactor)
height
- The host field heightfontSize
- The display font size in pixelspublic static double getTagWidth(GXITag tag, int fontSize, GXRenderConfig renderConfig)
tag
- The tag which it's width is requiredfontSize
- The font sizepublic static double getTagHeight(GXITag tag, int fontSize, int precentageFactor)
tag
- The tag which it's height is requiredfontSize
- The display font size in pixelsCopyright 2018 Software AG. All rights reserved. Use is subject to license terms.