Package jmri.jmrit.display.layoutEditor
Class LayoutEditorFindItems
- java.lang.Object
-
- jmri.jmrit.display.layoutEditor.LayoutEditorFindItems
-
public final class LayoutEditorFindItems extends java.lang.Object
A collection of tools to find various objects within the layout model(s) (temporary) Consider renaming to LayoutModelFindItems, or even merge to LayoutModels
-
-
Constructor Summary
Constructors Constructor Description LayoutEditorFindItems(LayoutModels models)
-
Method Summary
-
-
-
Constructor Detail
-
LayoutEditorFindItems
public LayoutEditorFindItems(LayoutModels models)
-
-
Method Detail
-
findTrackSegmentByName
public TrackSegment findTrackSegmentByName(java.lang.String name)
-
findPositionablePointByName
public PositionablePoint findPositionablePointByName(java.lang.String name)
-
findPositionablePointAtTrackSegments
public PositionablePoint findPositionablePointAtTrackSegments(TrackSegment tr1, TrackSegment tr2)
-
findPositionableLinkPoint
public PositionablePoint findPositionableLinkPoint(LayoutBlock blk1)
-
findTrackSegmentByBlock
public java.util.ArrayList<TrackSegment> findTrackSegmentByBlock(java.lang.String name)
Returns an array list of track segments matching the block name.- Parameters:
name
- block name.- Returns:
- array of segments, may be null.
-
findPositionablePointByEastBoundSignal
public PositionablePoint findPositionablePointByEastBoundSignal(java.lang.String signalName)
-
findPositionablePointByWestBoundSignal
public PositionablePoint findPositionablePointByWestBoundSignal(java.lang.String signalName)
-
findPositionablePointByWestBoundBean
public PositionablePoint findPositionablePointByWestBoundBean(NamedBean bean)
-
findPositionablePointByEastBoundBean
public PositionablePoint findPositionablePointByEastBoundBean(NamedBean bean)
-
findPositionablePointByWestBoundSignalMast
public PositionablePoint findPositionablePointByWestBoundSignalMast(java.lang.String signalMastName)
-
findPositionablePointByBean
public PositionablePoint findPositionablePointByBean(NamedBean bean)
-
findLayoutTurnoutBySignalMast
@CheckReturnValue public LayoutTurnout findLayoutTurnoutBySignalMast(java.lang.String signalMastName) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
findLayoutTurnoutByBean
@CheckReturnValue public LayoutTurnout findLayoutTurnoutByBean(@CheckForNull NamedBean bean)
-
findLayoutTurnoutBySensor
@CheckReturnValue public LayoutTurnout findLayoutTurnoutBySensor(java.lang.String sensorName) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
findLevelXingBySignalMast
public LevelXing findLevelXingBySignalMast(java.lang.String signalMastName) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
findLevelXingBySensor
public LevelXing findLevelXingBySensor(java.lang.String sensorName) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
findLevelXingByBean
public LevelXing findLevelXingByBean(NamedBean bean)
-
findLayoutSlipByBean
public LayoutSlip findLayoutSlipByBean(NamedBean bean)
-
findLayoutSlipBySignalMast
public LayoutSlip findLayoutSlipBySignalMast(java.lang.String signalMastName) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
findLayoutSlipBySensor
public LayoutSlip findLayoutSlipBySensor(java.lang.String sensorName) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
findPositionablePointByEastBoundSensor
public PositionablePoint findPositionablePointByEastBoundSensor(java.lang.String sensorName)
-
findPositionablePointByWestBoundSensor
public PositionablePoint findPositionablePointByWestBoundSensor(java.lang.String sensorName)
-
findLayoutTurnoutByName
@CheckReturnValue public LayoutTurnout findLayoutTurnoutByName(java.lang.String name)
-
findLayoutTurnoutByTurnoutName
@CheckReturnValue public LayoutTurnout findLayoutTurnoutByTurnoutName(java.lang.String turnoutName)
-
findLevelXingByName
public LevelXing findLevelXingByName(java.lang.String name)
-
findLayoutSlipByName
public LayoutSlip findLayoutSlipByName(java.lang.String name)
-
findLayoutTurntableByName
public LayoutTurntable findLayoutTurntableByName(java.lang.String name)
-
findLayoutShapeByName
public LayoutShape findLayoutShapeByName(java.lang.String name)
-
findObjectByName
public LayoutTrack findObjectByName(java.lang.String name)
find object by name- Parameters:
name
- the name of the object that you are looking for- Returns:
- object the named object
-
uniqueName
public java.lang.String uniqueName(java.lang.String inPrefix, int inStartIndex)
Determine the first unused object name...- Parameters:
inPrefix
- ...with this prefix...inStartIndex
- ...and this starting index...- Returns:
- the first unused object name
-
uniqueName
public java.lang.String uniqueName(java.lang.String inPrefix)
Determine the first unused object name...- Parameters:
inPrefix
- ...with this prefix...- Returns:
- the first unused object name
-
-