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.Colorcolstatic intCSG_TYPE_HOOKstatic intCSG_TYPE_NORMALstatic intCSG_TYPE_RELEASEstatic intCSG_TYPE_SUPERVISION(package private) booleanincludeHook(package private) booleanincludeNegative(package private) floatstart(package private) floatstop(package private) inttype
-
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.
-
-