Package jmri.jmrit.etcs.dmi.swing
Class DmiCircularSpeedGuideSection
- java.lang.Object
-
- jmri.jmrit.etcs.dmi.swing.DmiCircularSpeedGuideSection
-
@API(status=EXPERIMENTAL) public class DmiCircularSpeedGuideSection extends java.lang.Object
Class to represent a section of the DMI Circular Speed Guide.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.awt.Color
col
static int
CSG_TYPE_HOOK
static int
CSG_TYPE_NORMAL
static int
CSG_TYPE_RELEASE
static int
CSG_TYPE_SUPERVISION
(package private) boolean
includeHook
(package private) boolean
includeNegative
(package private) float
start
(package private) float
stop
(package private) int
type
-
Constructor Summary
Constructors Constructor Description DmiCircularSpeedGuideSection(int csgType, java.awt.Color colour, float startSpeed, float stopSpeed, boolean hook)
Create a new section of the Circular Speed Guide.DmiCircularSpeedGuideSection(int csgType, java.awt.Color colour, float startSpeed, float stopSpeed, boolean hook, boolean includeNegative)
Create a new section of the Circular Speed Guide.
-
-
-
Field Detail
-
start
final float start
-
stop
final float stop
-
type
final int type
-
col
final java.awt.Color col
-
includeHook
final boolean includeHook
-
includeNegative
final boolean includeNegative
-
CSG_TYPE_NORMAL
public static final int CSG_TYPE_NORMAL
- See Also:
- Constant Field Values
-
CSG_TYPE_HOOK
public static final int CSG_TYPE_HOOK
- See Also:
- Constant Field Values
-
CSG_TYPE_SUPERVISION
public static final int CSG_TYPE_SUPERVISION
- See Also:
- Constant Field Values
-
CSG_TYPE_RELEASE
public static final int CSG_TYPE_RELEASE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DmiCircularSpeedGuideSection
public DmiCircularSpeedGuideSection(int csgType, java.awt.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_HOOKcolour
- 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, java.awt.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_HOOKcolour
- 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.
-
-