Class Config


  • public class Config
    extends Object
    • Field Detail

      • showBorder

        public boolean showBorder
      • showMoveNumber

        public boolean showMoveNumber
      • onlyLastMoveNumber

        public int onlyLastMoveNumber
      • allowMoveNumber

        public int allowMoveNumber
      • newMoveNumberInBranch

        public boolean newMoveNumberInBranch
      • showWinrate

        public boolean showWinrate
      • largeWinrate

        public boolean largeWinrate
      • showBlunderBar

        public boolean showBlunderBar
      • weightedBlunderBarHeight

        public boolean weightedBlunderBarHeight
      • dynamicWinrateGraphWidth

        public boolean dynamicWinrateGraphWidth
      • showVariationGraph

        public boolean showVariationGraph
      • showComment

        public boolean showComment
      • showRawBoard

        public boolean showRawBoard
      • showCaptured

        public boolean showCaptured
      • handicapInsteadOfWinrate

        public boolean handicapInsteadOfWinrate
      • showDynamicKomi

        public boolean showDynamicKomi
      • showCoordinates

        public boolean showCoordinates
      • showStatus

        public boolean showStatus
      • showBranch

        public boolean showBranch
      • showBestMoves

        public boolean showBestMoves
      • showNextMoves

        public boolean showNextMoves
      • showSubBoard

        public boolean showSubBoard
      • largeSubBoard

        public boolean largeSubBoard
      • startMaximized

        public boolean startMaximized
      • config

        public org.json.JSONObject config
      • leelazConfig

        public org.json.JSONObject leelazConfig
      • uiConfig

        public org.json.JSONObject uiConfig
      • persisted

        public org.json.JSONObject persisted
      • leelazShareDir

        public final String leelazShareDir
      • leelazConfigDir

        public final String leelazConfigDir
      • theme

        public Theme theme
      • winrateStrokeWidth

        public float winrateStrokeWidth
      • minimumBlunderBarWidth

        public int minimumBlunderBarWidth
      • shadowSize

        public int shadowSize
      • fontName

        public String fontName
      • uiFontName

        public String uiFontName
      • winrateFontName

        public String winrateFontName
      • commentFontSize

        public int commentFontSize
      • commentFontColor

        public Color commentFontColor
      • commentBackgroundColor

        public Color commentBackgroundColor
      • winrateLineColor

        public Color winrateLineColor
      • winrateMissLineColor

        public Color winrateMissLineColor
      • blunderBarColor

        public Color blunderBarColor
      • solidStoneIndicator

        public boolean solidStoneIndicator
      • showCommentNodeColor

        public boolean showCommentNodeColor
      • commentNodeColor

        public Color commentNodeColor
      • nodeColorMode

        public int nodeColorMode
      • appendWinrateToComment

        public boolean appendWinrateToComment
    • Method Detail

      • mergeDefaults

        public boolean mergeDefaults​(org.json.JSONObject config,
                                     org.json.JSONObject defaultsConfig)
      • toggleShowMoveNumber

        public void toggleShowMoveNumber()
      • toggleNodeColorMode

        public void toggleNodeColorMode()
      • toggleShowBranch

        public void toggleShowBranch()
      • toggleShowWinrate

        public void toggleShowWinrate()
      • toggleLargeWinrate

        public void toggleLargeWinrate()
      • toggleShowVariationGraph

        public void toggleShowVariationGraph()
      • toggleShowComment

        public void toggleShowComment()
      • toggleShowCommentNodeColor

        public void toggleShowCommentNodeColor()
      • toggleShowBestMoves

        public void toggleShowBestMoves()
      • toggleShowNextMoves

        public void toggleShowNextMoves()
      • toggleHandicapInsteadOfWinrate

        public void toggleHandicapInsteadOfWinrate()
      • toggleLargeSubBoard

        public void toggleLargeSubBoard()
      • toggleCoordinates

        public void toggleCoordinates()
      • showLargeSubBoard

        public boolean showLargeSubBoard()
      • showLargeWinrate

        public boolean showLargeWinrate()
      • getBestDefaultLeelazPath

        public static String getBestDefaultLeelazPath()
        Scans the current directory as well as the current PATH to find a reasonable default leelaz binary.
        Returns:
        A working path to a leelaz binary. If there are none on the PATH, "./leelaz" is returned for backwards compatibility.