Class LayoutEditorTools
The tools in this module are accessed via the Tools menu in Layout Editor.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classLayoutEditorTools.BeanDetails<B extends NamedBean> -
Field Summary
FieldsModifier and TypeFieldDescription(package private) double(package private) int(package private) Border(package private) LayoutEditorTools.BeanDetails<Sensor>(package private) LayoutEditorTools.BeanDetails<SignalMast>(package private) JPanel(package private) JFrame(package private) JPanel(package private) JPanel(package private) JFrame(package private) JPanel(package private) JPanel(package private) JPanel(package private) JPanel(package private) JPanel(package private) LayoutEditorTools.BeanDetails<Sensor>(package private) LayoutEditorTools.BeanDetails<Sensor>(package private) LayoutEditorTools.BeanDetails<Sensor>(package private) LayoutEditorTools.BeanDetails<Sensor>(package private) LayoutEditorTools.BeanDetails<SignalMast>(package private) LayoutEditorTools.BeanDetails<SignalMast>(package private) LayoutEditorTools.BeanDetails<SignalMast>(package private) LayoutEditorTools.BeanDetails<SignalMast>(package private) LayoutEditorTools.BeanDetails<Sensor>(package private) LayoutEditorTools.BeanDetails<Sensor>(package private) SensorIcon(package private) LayoutEditorTools.BeanDetails<Sensor>(package private) LayoutEditorTools.BeanDetails<Sensor>(package private) LayoutEditorTools.BeanDetails<SignalMast>(package private) LayoutEditorTools.BeanDetails<SignalMast>(package private) LayoutEditorTools.BeanDetails<SignalMast>(package private) LayoutEditorTools.BeanDetails<SignalMast>final Set<SignalMast>(package private) LayoutEditorTools.BeanDetails<Sensor>(package private) LayoutEditorTools.BeanDetails<SignalMast>(package private) LayoutEditorTools.BeanDetails<Sensor>(package private) LayoutEditorTools.BeanDetails<Sensor>(package private) LayoutEditorTools.BeanDetails<Sensor>(package private) LayoutEditorTools.BeanDetails<Sensor>(package private) LayoutEditorTools.BeanDetails<SignalMast>(package private) LayoutEditorTools.BeanDetails<SignalMast>(package private) LayoutEditorTools.BeanDetails<SignalMast>(package private) LayoutEditorTools.BeanDetails<SignalMast> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BooleanaddBlockBoundarySignalHeadInfoToMenu(PositionablePoint inPositionablePoint, JMenu inMenu) protected BooleanaddLayoutSlipSignalHeadInfoToMenu(LayoutTurnout inLayoutTurnout, JMenu inMenu) protected BooleanaddLayoutTurnoutSignalHeadInfoToMenu(String inTurnoutNameA, String inTurnoutNameB, JMenu inMenu) protected BooleanaddLevelXingSignalHeadInfoToMenu(LevelXing inLevelXing, JMenu inMenu) void(package private) PointeastToWest(Point2D p, PositionableIcon l, boolean right, double fromPoint) voidgetHeadFromName(String str) Returns a SignalHead given a name.getLayoutTurnoutFromTurnout(Turnout turnout, boolean requireDoubleXover, String str, JFrame theFrame) Returns the layout turnout corresponding to a given turnout.getNextSignalFromObject(TrackSegment track, Object object, String signalHeadName, JmriJFrame frame) getSensorFromEntry(String sensorName, boolean requireEntry, JmriJFrame frame) Returns the Sensor corresponding to an entry field in the specified dialog.getSensorIcon(String sensorName) getSignalHeadFromEntry(String signalName, boolean requireEntry, JmriJFrame frame) getSignalHeadFromEntry(JTextField signalNameTextField, boolean requireEntry, JmriJFrame frame) getSignalHeadFromEntry(NamedBeanComboBox<SignalHead> signalNameComboBox, boolean requireEntry, JmriJFrame frame) Returns the SignalHead corresponding to an entry field in the specified dialog.getSignalHeadIcon(String signalName) get a signal head icon for the given signal headgetSignalMastFromEntry(String signalMastName, boolean requireEntry, JmriJFrame frame) Returns the SignalMast corresponding to an entry field in the specified dialog.booleaninitializeBlockBossLogic(String signalHeadName) static booleanisAtWestEndOfAnchor(LayoutEditor layoutEditor, TrackSegment t, PositionablePoint p) booleanbooleanReturns true if the specified Signal Head is assigned to an object on the panel, regardless of whether an icon is displayed or not.booleanisHeadOnPanel(SignalHead head) Get if signal head is on the panel.booleanisSensorAssignedAnywhere(Sensor sensor) Returns true if the specified Sensor is assigned to an object on the panel, regardless of whether an icon is displayed or not.booleanisSensorOnPanel(Sensor sensor) booleanisSignalMastAssignedAnywhere(SignalMast signalMast) Returns true if the specified SignalMast is assigned to an object on the panel, regardless of whether an icon is displayed or not.booleanisSignalMastOnPanel(SignalMast signalMast) (package private) PointnorthEastToSouthWest(Point2D p, PositionableIcon l, int oldWidth, int oldHeight, double angleDEG, boolean right, double fromPoint) (package private) PointnorthToSouth(Point2D p, PositionableIcon l, boolean right, double fromPoint) (package private) PointnorthWestToSouthEast(Point2D p, PositionableIcon l, int oldWidth, int oldHeight, double angleDEG, boolean right, double fromPoint) voidplacingBlock(PositionableIcon icon, boolean isRightSide, double fromPoint, Object obj, Point2D p) voidplacingBlockForTurntable(PositionableIcon icon, boolean isRightSide, double fromPoint, Object obj, Point2D p) boolean(package private) void(package private) void(package private) void(package private) voidvoidremoveAssignment(SignalHead head) Removes the assignment of the specified SignalHead to either a turnout, a positionable point, or a level crossing wherever it is assigned.voidremoveAssignment(SignalMast mast) booleanremoveSensorAssignment(Sensor sensor) Removes the assignment of the specified Sensor to either a turnout, a positionable point, or a level crossing wherever it is assigned.booleanremoveSensorFromPanel(Sensor sensor) Removes the Sensor icon from the panel and from assignment to any turnout, positionable point, or level crossing.voidremoveSignalHeadFromPanel(String signalName) Removes the SignalHead with the specified name from the panel and from assignment to any turnout, positionable point, or level crossing.voidremoveSignalMastAssignment(SignalMast signalMast) Removes the assignment of the specified SignalMast to either a turnout, a positionable point, or a level crossing wherever it is assigned.voidremoveSignalMastFromPanel(SignalMast signalMast) Removes the SignalMast with the specified name from the panel and from assignment to any turnout, positionable point, or level crossing.(package private) voidsensorAssignedElseWhere(Sensor sensor) Display an error dialog.(package private) voidsetBoundarySensor(Sensor newSensor, Sensor currSensor, LayoutEditorTools.BeanDetails<Sensor> beanDetail, String direction) Attached a sensor to the block boundary positional point.voidsetIconOnPanel(PositionableIcon l, int rotation, int xLoc, int yLoc) voidsetIconOnPanel(PositionableIcon l, int rotation, Point p) (package private) voidsetLevelXingSensor(Sensor newSensor, Sensor currSensor, LayoutEditorTools.BeanDetails<? extends NamedBean> beanDetail, LayoutTrack connect, Point2D coords, String position) Attached a sensor to a level crossing block boundary.voidsetSensorsAtBlockBoundary(MultiIconEditor theEditor, JFrame theFrame) voidsetSensorsAtBlockBoundaryFromMenu(PositionablePoint p, MultiIconEditor theEditor, JFrame theFrame) voidsetSensorsAtLevelXing(MultiIconEditor theEditor, JFrame theFrame) voidsetSensorsAtLevelXingFromMenu(LevelXing xing, String[] blocks, MultiIconEditor theEditor, JFrame theFrame) voidsetSensorsAtSlip(MultiIconEditor theEditor, JFrame theFrame) voidsetSensorsAtSlipFromMenu(LayoutSlip slip, String[] blocks, MultiIconEditor theEditor, JFrame theFrame) voidsetSensorsAtTurnout(JFrame frame) voidsetSensorsAtTurnoutFromMenu(LayoutTurnout to, String[] blocks, MultiIconEditor theEditor, JFrame frame) voidsetSignalHeadOnPanel(double directionDEG, String signalHeadName, int xLoc, int yLoc) Places a signal head icon on the panel after rotation at the designated place, with all icons taken care of.voidsetSignalHeadOnPanel(double directionDEG, String signalHeadName, Point2D where) Places a signal head icon on the panel after rotation at the designated place, with all icons taken care of.voidvoidvoidsetSignalMastsAtLayoutSlip(JFrame theFrame) voidsetSignalMastsAtLevelXing(JFrame theFrame) voidsetSignalMastsAtLevelXingFromMenu(LevelXing xing, String[] blocks, JFrame theFrame) voidsetSignalMastsAtSlipFromMenu(LayoutSlip slip, String[] blocks, JFrame theFrame) voidvoidsetSignalMastsAtTurnoutFromMenu(LayoutTurnout to, String[] blocks) voidsetSignalsAt3WayTurnout(MultiIconEditor theEditor, JFrame theFrame) voidsetSignalsAt3WayTurnoutFromMenu(String aName, String bName, MultiIconEditor theEditor, JFrame theFrame) voidsetSignalsAtBlockBoundary(MultiIconEditor theEditor, JFrame theFrame) voidsetSignalsAtBlockBoundaryFromMenu(PositionablePoint p, MultiIconEditor theEditor, JFrame theFrame) voidsetSignalsAtLevelXing(MultiIconEditor theEditor, JFrame theFrame) voidsetSignalsAtLevelXingFromMenu(LevelXing xing, MultiIconEditor theEditor, JFrame theFrame) voidsetSignalsAtSlip(MultiIconEditor theEditor, JFrame theFrame) voidsetSignalsAtSlipFromMenu(LayoutSlip ls, MultiIconEditor theEditor, JFrame theFrame) voidsetSignalsAtThroatToThroatTurnouts(MultiIconEditor theEditor, JFrame theFrame) voidsetSignalsAtThroatToThroatTurnoutsFromMenu(LayoutTurnout to, String linkedTurnoutName, MultiIconEditor theEditor, JFrame theFrame) voidsetSignalsAtTurnout(MultiIconEditor theEditor, JFrame theFrame) voidsetSignalsAtTurnoutFromMenu(LayoutTurnout to, MultiIconEditor theEditor, JFrame theFrame) voidsetSignalsAtXoverTurnout(MultiIconEditor theEditor, JFrame theFrame) voidsetSignalsAtXoverTurnoutFromMenu(LayoutTurnout to, MultiIconEditor theEditor, JFrame theFrame) (package private) <T extends LayoutTurnout>
voidsetTurnoutSensor(T trackItem, Sensor newSensor, Sensor currSensor, LayoutEditorTools.BeanDetails<? extends NamedBean> beanDetail, LayoutTrack connect, Point2D coords, String position) Attached a sensor to a turnout block boundary.(package private) PointsouthEastToNorthWest(Point2D p, PositionableIcon l, int oldWidth, int oldHeight, double angleDEG, boolean right, double fromPoint) (package private) PointsouthToNorth(Point2D p, PositionableIcon l, boolean right, double fromPoint) (package private) PointsouthWestToNorthEast(Point2D p, PositionableIcon l, int oldWidth, int oldHeight, double angleDEG, boolean right, double fromPoint) voidupdateBoundaryBasedSignalMastLogic(SignalMast oldBlock1SignalMast, SignalMast oldBlock2SignalMast, SignalMast block1BoundSignalMast, SignalMast block2BoundSignalMast) (package private) PointwestToEast(Point2D p, PositionableIcon l, boolean right, double fromPoint)
-
Field Details
-
westBoundSensor
-
eastBoundSensor
-
sensorBlockPanel
-
eastSignalMast
-
westSignalMast
-
signalMastBlockPanel
-
adjust
double adjust -
awayright
int awayright -
turnoutSignalMastA
-
turnoutSignalMastB
-
turnoutSignalMastC
-
turnoutSignalMastD
-
signalMastTurnoutPanel
-
usedMasts
-
slipSignalMastA
-
slipSignalMastB
-
slipSignalMastC
-
slipSignalMastD
-
signalMastLayoutSlipPanel
-
xingSignalMastA
-
xingSignalMastB
-
xingSignalMastC
-
xingSignalMastD
-
signalMastLevelXingPanel
-
blackline
-
turnoutSensorA
-
turnoutSensorB
-
turnoutSensorC
-
turnoutSensorD
-
sensorTurnoutPanel
-
turnoutSensorBlockIcon
-
sensorXingFrame
-
xingSensorA
-
xingSensorB
-
xingSensorC
-
xingSensorD
-
sensorXingPanel
-
sensorSlipFrame
-
slipSensorA
-
slipSensorB
-
slipSensorC
-
slipSensorD
-
sensorSlipPanel
-
-
Constructor Details
-
LayoutEditorTools
-
-
Method Details
-
setSignalsAtTurnoutFromMenu
public void setSignalsAtTurnoutFromMenu(@Nonnull LayoutTurnout to, @Nonnull MultiIconEditor theEditor, @Nonnull JFrame theFrame) -
setSignalsAtTurnout
-
getLayoutTurnoutFromTurnout
@CheckReturnValue public LayoutTurnout getLayoutTurnoutFromTurnout(@Nonnull Turnout turnout, boolean requireDoubleXover, @Nonnull String str, @CheckForNull JFrame theFrame) Returns the layout turnout corresponding to a given turnout.If require double crossover is requested, an error message is sent to the user if the layout turnout is not a double crossover, and null is returned.
If a layout turnout corresponding to the turnout is not found, an error message is sent to the user and null is returned.
- Parameters:
turnout- the base turnout.requireDoubleXover- true to force checking of turnout type.str- error message string.theFrame- main frame.- Returns:
- layout turnout, may be null.
-
getSignalHeadFromEntry
@CheckReturnValue public SignalHead getSignalHeadFromEntry(@Nonnull NamedBeanComboBox<SignalHead> signalNameComboBox, boolean requireEntry, @Nonnull JmriJFrame frame) Returns the SignalHead corresponding to an entry field in the specified dialog. This also takes care of UpperCase and trimming of leading and trailing blanks. If entry is required, and no entry is present, and error message is sent. An error message also results if a signal head with the entered name is not found in the SignalTable.- Parameters:
signalNameComboBox- the combo box with signal name selected.requireEntry- true if mandatory field, else false.frame- the main frame.- Returns:
- signal head, may be null.
-
getSignalHeadFromEntry
@CheckReturnValue public SignalHead getSignalHeadFromEntry(@Nonnull JTextField signalNameTextField, boolean requireEntry, @Nonnull JmriJFrame frame) -
getSignalHeadFromEntry
@CheckReturnValue public SignalHead getSignalHeadFromEntry(@CheckForNull String signalName, boolean requireEntry, @Nonnull JmriJFrame frame) -
getHeadFromName
Returns a SignalHead given a name.- Parameters:
str- signal head name.- Returns:
- signal head, may be null.
-
setSignalHeadOnPanel
public void setSignalHeadOnPanel(double directionDEG, @Nonnull String signalHeadName, @Nonnull Point2D where) Places a signal head icon on the panel after rotation at the designated place, with all icons taken care of.- Parameters:
directionDEG- rotation in degrees.signalHeadName- name of a signal head.where- coordinates for placing signal head on panel.
-
setSignalHeadOnPanel
public void setSignalHeadOnPanel(double directionDEG, @Nonnull String signalHeadName, int xLoc, int yLoc) Places a signal head icon on the panel after rotation at the designated place, with all icons taken care of.- Parameters:
directionDEG- rotation in degrees.signalHeadName- name of a signal head.xLoc- x coordinate for placing signal head on panel.yLoc- y coordinate for placing signal head on panel.
-
isHeadOnPanel
Get if signal head is on the panel.- Parameters:
head- the signal head to locate.- Returns:
- true if an icon for the specified SignalHead is on the panel.
-
isHeadAssignedAnywhere
Returns true if the specified Signal Head is assigned to an object on the panel, regardless of whether an icon is displayed or not.- Parameters:
head- the signal head to locate.- Returns:
- true if the signal head is attached to a panel object.
-
removeAssignment
Removes the assignment of the specified SignalHead to either a turnout, a positionable point, or a level crossing wherever it is assigned.- Parameters:
head- the signal head to be removed.
-
removeSignalHeadFromPanel
Removes the SignalHead with the specified name from the panel and from assignment to any turnout, positionable point, or level crossing.- Parameters:
signalName- name of signal head to be removed.
-
initializeBlockBossLogic
-
finalizeBlockBossLogic
-
getNextSignalFromObject
@CheckReturnValue public SignalHead getNextSignalFromObject(@Nonnull TrackSegment track, @Nonnull Object object, @Nonnull String signalHeadName, @Nonnull JmriJFrame frame) -
reachedEndBumper
-
isAtWestEndOfAnchor
-
isAtWestEndOfAnchor
public static boolean isAtWestEndOfAnchor(LayoutEditor layoutEditor, TrackSegment t, PositionablePoint p) -
setSignalsAtBlockBoundaryFromMenu
public void setSignalsAtBlockBoundaryFromMenu(PositionablePoint p, MultiIconEditor theEditor, JFrame theFrame) -
setSignalsAtBlockBoundary
-
setSignalsAtXoverTurnoutFromMenu
public void setSignalsAtXoverTurnoutFromMenu(@Nonnull LayoutTurnout to, @Nonnull MultiIconEditor theEditor, @Nonnull JFrame theFrame) -
setSignalsAtXoverTurnout
-
setSignalsAtLevelXingFromMenu
public void setSignalsAtLevelXingFromMenu(@Nonnull LevelXing xing, @Nonnull MultiIconEditor theEditor, @Nonnull JFrame theFrame) -
setSignalsAtLevelXing
-
setSignalsAtThroatToThroatTurnoutsFromMenu
public void setSignalsAtThroatToThroatTurnoutsFromMenu(@Nonnull LayoutTurnout to, @Nonnull String linkedTurnoutName, @Nonnull MultiIconEditor theEditor, @Nonnull JFrame theFrame) -
setSignalsAtThroatToThroatTurnouts
public void setSignalsAtThroatToThroatTurnouts(@Nonnull MultiIconEditor theEditor, @Nonnull JFrame theFrame) -
setSignalsAt3WayTurnoutFromMenu
public void setSignalsAt3WayTurnoutFromMenu(@Nonnull String aName, @Nonnull String bName, @Nonnull MultiIconEditor theEditor, @Nonnull JFrame theFrame) -
setSignalsAt3WayTurnout
-
setSensorsAtBlockBoundaryFromMenu
public void setSensorsAtBlockBoundaryFromMenu(@Nonnull PositionablePoint p, @Nonnull MultiIconEditor theEditor, @Nonnull JFrame theFrame) -
setSensorsAtBlockBoundary
-
getSensorFromEntry
@CheckReturnValue public Sensor getSensorFromEntry(@CheckForNull String sensorName, boolean requireEntry, @Nonnull JmriJFrame frame) Returns the Sensor corresponding to an entry field in the specified dialog.This also takes care of UpperCase and trimming of leading and trailing blanks. If entry is required, and no entry is present, an error message is sent. An error message also results if a sensor head with the entered name is not found in the SensorTable.
- Parameters:
sensorName- sensor name.requireEntry- true if mandatory field, else false.frame- the main frame.- Returns:
- sensor, may be null.
-
getSensorIcon
-
isSensorAssignedAnywhere
Returns true if the specified Sensor is assigned to an object on the panel, regardless of whether an icon is displayed or not. With sensors we NO LONGER (4.11.2) allow the same sensor to be allocated in both directions.- Parameters:
sensor- The sensor to be checked.- Returns:
- true if the sensor is currently assigned someplace.
-
sensorAssignedElseWhere
Display an error dialog.- Parameters:
sensor- The sensor that is already assigned.
-
removeSensorAssignment
Removes the assignment of the specified Sensor to either a turnout, a positionable point, or a level crossing wherever it is assigned. Removes any NX Pairs that use the sensor.If the NX deletes fail due to Conditional references or user deny, the assignment is not deleted. No additional notification is necessary since they have already been notified or made a choice to not continue.
- Parameters:
sensor- The sensor to be removed.- Returns:
- true if the sensor has been removed.
-
removeSensorFromPanel
Removes the Sensor icon from the panel and from assignment to any turnout, positionable point, or level crossing.- Parameters:
sensor- The sensor whose icon and references are to be removed.- Returns:
- true if the removal was successful.
-
setBoundarySensor
void setBoundarySensor(Sensor newSensor, Sensor currSensor, LayoutEditorTools.BeanDetails<Sensor> beanDetail, String direction) Attached a sensor to the block boundary positional point.- Parameters:
newSensor- The sensor that is being added.currSensor- The sensor that might already be there, otherwise null.beanDetail- The BeanDetails object that contains the supporting data.direction- The direction, East or West.- Since:
- 4.11.2
-
isSensorOnPanel
-
setSignalMastsAtBlockBoundaryFromMenu
-
setSignalMastsAtBlockBoundary
-
getSignalMastFromEntry
@CheckReturnValue public SignalMast getSignalMastFromEntry(@CheckForNull String signalMastName, boolean requireEntry, @Nonnull JmriJFrame frame) Returns the SignalMast corresponding to an entry field in the specified dialog. This also takes care of UpperCase and trimming of leading and trailing blanks. If entry is required, and no entry is present, and error message is sent. An error message also results if a signalMast head with the entered name is not found in the SignalMastTable.- Parameters:
signalMastName- name of the signal mast.requireEntry- true if a required field, else false.frame- main frame.- Returns:
- signal mast, may be null.
-
isSignalMastAssignedAnywhere
Returns true if the specified SignalMast is assigned to an object on the panel, regardless of whether an icon is displayed or not.- Parameters:
signalMast- the signal mast to query.- Returns:
- true if associated with panel, else false.
-
removeSignalMastAssignment
Removes the assignment of the specified SignalMast to either a turnout, a positionable point, or a level crossing wherever it is assigned.- Parameters:
signalMast- the signal mast to remove.
-
removeSignalMastFromPanel
Removes the SignalMast with the specified name from the panel and from assignment to any turnout, positionable point, or level crossing.- Parameters:
signalMast- the signal mast to remove.
-
refreshSignalMastAtBoundaryComboBox
-
updateBoundaryBasedSignalMastLogic
public void updateBoundaryBasedSignalMastLogic(@Nonnull SignalMast oldBlock1SignalMast, @Nonnull SignalMast oldBlock2SignalMast, @Nonnull SignalMast block1BoundSignalMast, @Nonnull SignalMast block2BoundSignalMast) -
setIconOnPanel
-
setIconOnPanel
-
southToNorth
-
northToSouth
-
westToEast
-
eastToWest
-
northEastToSouthWest
Point northEastToSouthWest(Point2D p, PositionableIcon l, int oldWidth, int oldHeight, double angleDEG, boolean right, double fromPoint) -
southWestToNorthEast
Point southWestToNorthEast(Point2D p, PositionableIcon l, int oldWidth, int oldHeight, double angleDEG, boolean right, double fromPoint) -
northWestToSouthEast
Point northWestToSouthEast(Point2D p, PositionableIcon l, int oldWidth, int oldHeight, double angleDEG, boolean right, double fromPoint) -
southEastToNorthWest
Point southEastToNorthWest(Point2D p, PositionableIcon l, int oldWidth, int oldHeight, double angleDEG, boolean right, double fromPoint) -
isSignalMastOnPanel
-
setSignalMastsAtTurnoutFromMenu
-
setSignalMastsAtTurnout
-
createListUsedSignalMasts
-
refreshSignalMastAtTurnoutComboBox
-
removeAssignment
-
placingBlock
public void placingBlock(PositionableIcon icon, boolean isRightSide, double fromPoint, Object obj, Point2D p) -
placingBlockForTurntable
public void placingBlockForTurntable(PositionableIcon icon, boolean isRightSide, double fromPoint, Object obj, Point2D p) -
setSignalMastsAtSlipFromMenu
public void setSignalMastsAtSlipFromMenu(@Nonnull LayoutSlip slip, @Nonnull String[] blocks, @Nonnull JFrame theFrame) -
setSignalMastsAtLayoutSlip
-
refreshSignalMastAtSlipComboBox
-
setSignalMastsAtLevelXingFromMenu
-
setSignalMastsAtLevelXing
-
refreshSignalMastAtXingComboBox
-
setSensorsAtTurnoutFromMenu
public void setSensorsAtTurnoutFromMenu(@Nonnull LayoutTurnout to, @Nonnull String[] blocks, @Nonnull MultiIconEditor theEditor, @Nonnull JFrame frame) -
setSensorsAtTurnout
-
setTurnoutSensor
<T extends LayoutTurnout> void setTurnoutSensor(T trackItem, Sensor newSensor, Sensor currSensor, LayoutEditorTools.BeanDetails<? extends NamedBean> beanDetail, LayoutTrack connect, Point2D coords, String position) Attached a sensor to a turnout block boundary. Supports both LayoutTurnout and LayoutSlip classes.- Type Parameters:
T- The specific type, a subtype of LayoutTurnout- Parameters:
trackItem- The turnout or slip that is being modified.newSensor- The sensor that is being added.currSensor- The sensor that might already be there, otherwise null.beanDetail- The BeanDetails object that contains the supporting data.connect- The track segment that is attached to this pointcoords- The track componennt coordinatesposition- Which of the four points is being changed- Since:
- 4.11.2
-
setSensorsAtLevelXingFromMenu
public void setSensorsAtLevelXingFromMenu(@Nonnull LevelXing xing, @Nonnull String[] blocks, @Nonnull MultiIconEditor theEditor, @Nonnull JFrame theFrame) -
setSensorsAtLevelXing
-
setLevelXingSensor
void setLevelXingSensor(Sensor newSensor, Sensor currSensor, LayoutEditorTools.BeanDetails<? extends NamedBean> beanDetail, LayoutTrack connect, Point2D coords, String position) Attached a sensor to a level crossing block boundary.- Parameters:
newSensor- The sensor that is being added.currSensor- The sensor that might already be there, otherwise null.beanDetail- The BeanDetails object that contains the supporting data.connect- The track segment that is attached to this pointcoords- The track componennt coordinatesposition- Which of the four points is being changed- Since:
- 4.11.2
-
setSensorsAtSlipFromMenu
public void setSensorsAtSlipFromMenu(@Nonnull LayoutSlip slip, @Nonnull String[] blocks, @Nonnull MultiIconEditor theEditor, @Nonnull JFrame theFrame) -
setSensorsAtSlip
-
setSignalsAtSlipFromMenu
public void setSignalsAtSlipFromMenu(@Nonnull LayoutSlip ls, @Nonnull MultiIconEditor theEditor, @Nonnull JFrame theFrame) -
setSignalsAtSlip
-
getSignalHeadIcon
get a signal head icon for the given signal head- Parameters:
signalName- name of a signal head.- Returns:
- a SignalHeadIcon for the signal.
-
addLayoutTurnoutSignalHeadInfoToMenu
-
addBlockBoundarySignalHeadInfoToMenu
protected Boolean addBlockBoundarySignalHeadInfoToMenu(@Nonnull PositionablePoint inPositionablePoint, @Nonnull JMenu inMenu) -
addLevelXingSignalHeadInfoToMenu
-
addLayoutSlipSignalHeadInfoToMenu
protected Boolean addLayoutSlipSignalHeadInfoToMenu(@Nonnull LayoutTurnout inLayoutTurnout, @Nonnull JMenu inMenu)
-