Class Config


  • public class Config
    extends java.lang.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 java.lang.String leelazShareDir
      • leelazConfigDir

        public final java.lang.String leelazConfigDir
      • theme

        public Theme theme
      • winrateStrokeWidth

        public float winrateStrokeWidth
      • minimumBlunderBarWidth

        public int minimumBlunderBarWidth
      • shadowSize

        public int shadowSize
      • fontName

        public java.lang.String fontName
      • uiFontName

        public java.lang.String uiFontName
      • winrateFontName

        public java.lang.String winrateFontName
      • commentFontSize

        public int commentFontSize
      • commentFontColor

        public java.awt.Color commentFontColor
      • commentBackgroundColor

        public java.awt.Color commentBackgroundColor
      • winrateLineColor

        public java.awt.Color winrateLineColor
      • winrateMissLineColor

        public java.awt.Color winrateMissLineColor
      • blunderBarColor

        public java.awt.Color blunderBarColor
      • solidStoneIndicator

        public boolean solidStoneIndicator
      • showCommentNodeColor

        public boolean showCommentNodeColor
      • commentNodeColor

        public java.awt.Color commentNodeColor
      • blunderWinrateThresholds

        public java.util.Optional<java.util.List<java.lang.Double>> blunderWinrateThresholds
      • blunderNodeColors

        public java.util.Optional<java.util.Map<java.lang.Double,​java.awt.Color>> blunderNodeColors
      • nodeColorMode

        public int nodeColorMode
      • appendWinrateToComment

        public boolean appendWinrateToComment
    • Constructor Detail

      • Config

        public Config()
               throws java.io.IOException
        Throws:
        java.io.IOException
    • 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 java.lang.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.
      • persist

        public void persist()
                     throws java.io.IOException
        Throws:
        java.io.IOException