Package featurecat.lizzie.util
Class Utils
java.lang.Object
featurecat.lizzie.util.Utils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
actualScoreMean
(double scoreMean) static boolean
classExists
(String className) static void
doBranchSub
(BoardRenderer board, int moveTo) static Color
static String
getPlayoutsString
(int playouts) static int
static boolean
static double
static boolean
static void
setDisplayedBranchLength
(BoardRenderer board, int n) static String
stringOfMap
(Map map, String key) static void
toGif
(String path, List<BufferedImage> frames, int delayTime, boolean override) static String
truncateStringByWidth
(String line, FontMetrics fm, int fitWidth) Truncate text that is too long for the given widthstatic Double
static Integer
txtFieldValue
(JTextField txt) static String
-
Field Details
-
transFile
-
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
isBlank
-
needsQuoting
-
withQuote
-
getPlayoutsString
- Returns:
- a shorter, rounded string version of playouts. e.g. 345 -> 345, 1265 -> 1.3k, 44556 -> 45k, 133523 -> 134k, 1234567 -> 1.2m
-
truncateStringByWidth
Truncate text that is too long for the given width- Parameters:
line
-fm
-fitWidth
-- Returns:
- fitted
-
lastWinrateDiff
-
getBlunderNodeColor
-
actualScoreMean
public static double actualScoreMean(double scoreMean) -
txtFieldValue
-
txtFieldDoubleValue
-
intOfMap
-
stringOfMap
-
toGif
-
classExists
-
setDisplayedBranchLength
-
doBranchSub
-