Vai al contenuto

Tool setting of CAN diagnostic

The CAN diagnostic tool allows the user to load a set of default configurations of the panel, through the method preSetLayout (enum Newtype).The values taken on the parameter newType :
  • SMALL 320×240
  • MEDIUM 640×480
  • LARGE 800×600
  • XLARGE 1024×768
  • CUSTOM
Show the kind of resolution that better adapt to the configuration predetermined.Instead, selecting the Custom option, is possible change some settings using the properties listed below:
  • fontTitle
  • title
  • blank
  • fontList
  • fontValue
  • fontLabel
  • labelSize
  • fontTab
  • fontButton
  • buttonWidth
  • listSize
Method fontTitle(Font newFont)It allows to set the Font of the string on devices head list (see point 1 following picture).The default value is: “Monospaced”, Bold, 22Method title(String newTitleString)It allows to set the string showed on devices head list (see point 1 following picture).The default value is: “STATUS – NODE – DEVICE NAME”.Method blank(int numWhiteSpace)It allows to set the number of white spaces between elements that compose the single lines of device’s list (see point 2 following picture).The default value is : 1Methodo fontList(Font newFont)It allows to set the Font used for single lines of device’s list (see point 2 following picture).The default value is : “Monospaced”, Bold, 16Method fontValue(Font newFont)It allows to set the Font used for strings showed on right side of the panels General\ERR\EMGY (see point 2 following picture).The default value is : “SansSerif”, Regular, 12Method fontLabel(Font newFont)It allows to set the Font used for strings showed on left side of the panels General\ERR\EMGY (see point 2 following picture).The default value is : “SansSerif”, Regular, 12Method labelSize(int newTextWidth)It allows to set the width of the strings showed on left side of the panels General\ERR\EMGY (see point 3 following picture).The default value is : 130Method fontTab(Font newFont)It allows to set the Font used the strings that appear in lower Tab panels General\ERR\EMGY (see point 5 following picture).The default value is : “SansSerif”, Bold, 18Method fontButton (Font newFont)It allows to set the Font used for labels that appear in panels General\ERR\EMGY (see point 6 following picture).The default value is: “SansSerif”, Bold, 18Method buttonWidth(int newButtonWidth)It allows to set the width labels that appear in panels General\ERR\EMGY (see point 6 following picture).The default value is : width = 90Method buttonHeight(int newButtonHeight)It allows to set the height labels that appear in panels General\ERR\EMGY (see point 6 following picture).The default value is : height = 40Method listSize(int newListPanelWidth)It allows to set the width of the left panel (containing the device’s list CAN).The default value is : 300 Tool setting  of CAN diagnostic-image_0