Class DmiCircularSpeedGuideSection

java.lang.Object
jmri.jmrit.etcs.dmi.swing.DmiCircularSpeedGuideSection

@API(status=EXPERIMENTAL) public class DmiCircularSpeedGuideSection extends Object
Class to represent a section of the DMI Circular Speed Guide.
  • Field Details

  • Constructor Details

    • DmiCircularSpeedGuideSection

      public DmiCircularSpeedGuideSection(int csgType, Color colour, float startSpeed, float stopSpeed, boolean hook)
      Create a new section of the Circular Speed Guide.
      Parameters:
      csgType - Type constant, e.g. CSG_TYPE_NORMAL or CSG_TYPE_HOOK
      colour - the Colour of the section.
      startSpeed - the section Start speed.
      stopSpeed - the section End speed.
      hook - true to include a hook, else false.
    • DmiCircularSpeedGuideSection

      public DmiCircularSpeedGuideSection(int csgType, Color colour, float startSpeed, float stopSpeed, boolean hook, boolean includeNegative)
      Create a new section of the Circular Speed Guide.
      Parameters:
      csgType - Type constant, e.g. CSG_TYPE_NORMAL or CSG_TYPE_HOOK
      colour - the Colour of the section.
      startSpeed - the section Start speed.
      stopSpeed - the section End speed.
      hook - true to include a hook, else false.
      includeNegative - true to include the negative section.