Package jmri.jmrit.etcs.dmi.swing
Class DmiCircularSpeedGuideSection
java.lang.Object
jmri.jmrit.etcs.dmi.swing.DmiCircularSpeedGuideSection
Class to represent a section of the DMI Circular Speed Guide.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Colorstatic final intstatic final intstatic final intstatic final int(package private) final boolean(package private) final boolean(package private) final float(package private) final float(package private) final int -
Constructor Summary
ConstructorsConstructorDescriptionDmiCircularSpeedGuideSection(int csgType, Color colour, float startSpeed, float stopSpeed, boolean hook) Create a new section of the Circular Speed Guide.DmiCircularSpeedGuideSection(int csgType, Color colour, float startSpeed, float stopSpeed, boolean hook, boolean includeNegative) Create a new section of the Circular Speed Guide. -
Method Summary
-
Field Details
-
start
-
stop
-
type
-
col
-
includeHook
-
includeNegative
-
CSG_TYPE_NORMAL
- See Also:
-
CSG_TYPE_HOOK
- See Also:
-
CSG_TYPE_SUPERVISION
- See Also:
-
CSG_TYPE_RELEASE
- See Also:
-
-
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_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, 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.
-