Class LayoutSlipEditor
- java.lang.Object
-
- jmri.jmrit.display.layoutEditor.LayoutEditorDialogs.LayoutTrackEditor
-
- jmri.jmrit.display.layoutEditor.LayoutEditorDialogs.LayoutTurnoutEditor
-
- jmri.jmrit.display.layoutEditor.LayoutEditorDialogs.LayoutSlipEditor
-
- Direct Known Subclasses:
LayoutDoubleSlipEditor
,LayoutSingleSlipEditor
public class LayoutSlipEditor extends LayoutTurnoutEditor
MVC Editor component for LayoutSlip objects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
LayoutSlipEditor.SampleStates
(package private) class
LayoutSlipEditor.TestState
-
Field Summary
-
Fields inherited from class jmri.jmrit.display.layoutEditor.LayoutEditorDialogs.LayoutTurnoutEditor
editLayoutTurnout1stTurnoutComboBox, editLayoutTurnout2ndTurnoutCheckBox, editLayoutTurnout2ndTurnoutComboBox, editLayoutTurnout2ndTurnoutInvertCheckBox, editLayoutTurnout2ndTurnoutLabel, editLayoutTurnoutBlockBButton, editLayoutTurnoutBlockBNameComboBox, editLayoutTurnoutBlockButton, editLayoutTurnoutBlockCButton, editLayoutTurnoutBlockCNameComboBox, editLayoutTurnoutBlockDButton, editLayoutTurnoutBlockDNameComboBox, editLayoutTurnoutBlockNameComboBox, editLayoutTurnoutClosedIndex, editLayoutTurnoutFrame, editLayoutTurnoutHiddenCheckBox, editLayoutTurnoutNeedRedraw, editLayoutTurnoutNeedsBlockUpdate, editLayoutTurnoutOpen, editLayoutTurnoutStateComboBox, editLayoutTurnoutThrownIndex, layoutTurnout, layoutTurnoutView
-
Fields inherited from class jmri.jmrit.display.layoutEditor.LayoutEditorDialogs.LayoutTrackEditor
layoutEditor, sensorList
-
-
Constructor Summary
Constructors Constructor Description LayoutSlipEditor(LayoutEditor layoutEditor)
constructor method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
drawSlipStatePart1A(java.awt.Graphics2D g2, int state, java.awt.geom.Point2D A, java.awt.geom.Point2D B, java.awt.geom.Point2D C, java.awt.geom.Point2D D)
protected void
drawSlipStatePart1B(java.awt.Graphics2D g2, int state, java.awt.geom.Point2D A, java.awt.geom.Point2D B, java.awt.geom.Point2D C, java.awt.geom.Point2D D)
protected void
drawSlipStatePart2A(java.awt.Graphics2D g2, int state, java.awt.geom.Point2D A, java.awt.geom.Point2D B, java.awt.geom.Point2D C, java.awt.geom.Point2D D)
protected void
drawSlipStatePart2B(java.awt.Graphics2D g2, int state, java.awt.geom.Point2D A, java.awt.geom.Point2D B, java.awt.geom.Point2D C, java.awt.geom.Point2D D)
void
editLayoutTrack(LayoutTrackView layoutTrackView)
Edit a Slip.void
toggleStateTest()
Toggle slip states if clicked on, physical turnout exists, and not disabled.-
Methods inherited from class jmri.jmrit.display.layoutEditor.LayoutEditorDialogs.LayoutTurnoutEditor
checkBlock234Changed, configureCheckBoxes, donePressedSecondTurnoutName, editLayoutTurnoutEditBlockBPressed, editLayoutTurnoutEditBlockCPressed, editLayoutTurnoutEditBlockDPressed, extendAddContinuingStateChoice, extendBlockBCDSetup, setContinuingRouteTurnoutState, setUpContinuingSense, setUpForEdit
-
Methods inherited from class jmri.jmrit.display.layoutEditor.LayoutEditorDialogs.LayoutTrackEditor
addDoneCancelButtons, hasNxSensorPairs, makeTrackEditor, showSensorMessage
-
-
-
-
Constructor Detail
-
LayoutSlipEditor
public LayoutSlipEditor(@Nonnull LayoutEditor layoutEditor)
constructor method.- Parameters:
layoutEditor
- main layout editor.
-
-
Method Detail
-
editLayoutTrack
public void editLayoutTrack(@Nonnull LayoutTrackView layoutTrackView)
Edit a Slip.- Overrides:
editLayoutTrack
in classLayoutTurnoutEditor
- Parameters:
layoutTrackView
- the layout track view to edit.
-
drawSlipStatePart1A
protected void drawSlipStatePart1A(java.awt.Graphics2D g2, int state, java.awt.geom.Point2D A, java.awt.geom.Point2D B, java.awt.geom.Point2D C, java.awt.geom.Point2D D)
-
drawSlipStatePart1B
protected void drawSlipStatePart1B(java.awt.Graphics2D g2, int state, java.awt.geom.Point2D A, java.awt.geom.Point2D B, java.awt.geom.Point2D C, java.awt.geom.Point2D D)
-
drawSlipStatePart2A
protected void drawSlipStatePart2A(java.awt.Graphics2D g2, int state, java.awt.geom.Point2D A, java.awt.geom.Point2D B, java.awt.geom.Point2D C, java.awt.geom.Point2D D)
-
drawSlipStatePart2B
protected void drawSlipStatePart2B(java.awt.Graphics2D g2, int state, java.awt.geom.Point2D A, java.awt.geom.Point2D B, java.awt.geom.Point2D C, java.awt.geom.Point2D D)
-
toggleStateTest
public void toggleStateTest()
Toggle slip states if clicked on, physical turnout exists, and not disabled.
-
-