Package featurecat.lizzie.util
Class Utils
java.lang.Object
featurecat.lizzie.util.Utils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleactualScoreMean(double scoreMean) static booleanclassExists(String className) static voiddoBranchSub(BoardRenderer board, int moveTo) static Colorstatic StringgetPlayoutsString(int playouts) static intstatic booleanstatic doublestatic booleanstatic voidsetDisplayedBranchLength(BoardRenderer board, int n) static StringstringOfMap(Map map, String key) static voidtoGif(String path, List<BufferedImage> frames, int delayTime, boolean override) static StringtruncateStringByWidth(String line, FontMetrics fm, int fitWidth) Truncate text that is too long for the given widthstatic Doublestatic IntegertxtFieldValue(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
-