Class BlockUtils
java.lang.Object
com.github.tommyettinger.textra.utils.BlockUtils
public class BlockUtils
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringALL_BLOCK_CHARSstatic float[][]BOX_DRAWINGstatic floatTHIN_ACROSSstatic floatTHIN_ENDstatic floatTHIN_OVERstatic floatTHIN_STARTstatic floatTWIN_ACROSSstatic floatTWIN_END1static floatTWIN_END2static floatTWIN_OVER1static floatTWIN_OVER2static floatTWIN_START1static floatTWIN_START2static floatWIDE_ACROSSstatic floatWIDE_ENDstatic floatWIDE_OVERstatic floatWIDE_START -
Constructor Summary
Constructors Constructor Description BlockUtils() -
Method Summary
Modifier and Type Method Description static booleanisBlockGlyph(int c)Returns true if the given char can be handled by the box drawing and block element data here, or false if the Font should try to handle that char itself.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
THIN_START
public static final float THIN_START- See Also:
- Constant Field Values
-
THIN_END
public static final float THIN_END- See Also:
- Constant Field Values
-
THIN_ACROSS
public static final float THIN_ACROSS- See Also:
- Constant Field Values
-
THIN_OVER
public static final float THIN_OVER- See Also:
- Constant Field Values
-
WIDE_START
public static final float WIDE_START- See Also:
- Constant Field Values
-
WIDE_END
public static final float WIDE_END- See Also:
- Constant Field Values
-
WIDE_ACROSS
public static final float WIDE_ACROSS- See Also:
- Constant Field Values
-
WIDE_OVER
public static final float WIDE_OVER- See Also:
- Constant Field Values
-
TWIN_START1
public static final float TWIN_START1- See Also:
- Constant Field Values
-
TWIN_END1
public static final float TWIN_END1- See Also:
- Constant Field Values
-
TWIN_START2
public static final float TWIN_START2- See Also:
- Constant Field Values
-
TWIN_END2
public static final float TWIN_END2- See Also:
- Constant Field Values
-
TWIN_ACROSS
public static final float TWIN_ACROSS- See Also:
- Constant Field Values
-
TWIN_OVER1
public static final float TWIN_OVER1- See Also:
- Constant Field Values
-
TWIN_OVER2
public static final float TWIN_OVER2- See Also:
- Constant Field Values
-
BOX_DRAWING
public static final float[][] BOX_DRAWING -
ALL_BLOCK_CHARS
public static final java.lang.String ALL_BLOCK_CHARS- See Also:
- Constant Field Values
-
-
Constructor Details
-
BlockUtils
public BlockUtils()
-
-
Method Details
-
isBlockGlyph
public static boolean isBlockGlyph(int c)Returns true if the given char can be handled by the box drawing and block element data here, or false if the Font should try to handle that char itself.- Parameters:
c- a char (or int in the char range, 0-65535) that could potentially be a box drawing/block element char- Returns:
- true if c is a box drawing/block element char that this can handle
-