jmri.jmrit.display.layoutEditor
Class LayoutEditorTools

Show UML class diagram
java.lang.Object
  extended by jmri.jmrit.display.layoutEditor.LayoutEditorTools

public class LayoutEditorTools
extends Object

Layout Editor Tools provides tools making use of layout connectivity available in Layout Editor panels.

The tools in this module are accessed via the Tools menu in Layout Editor.


Nested Class Summary
(package private) static class LayoutEditorTools.BeanDetails
           
 
Field Summary
(package private)  double adjust
           
(package private)  int awayright
           
(package private)  Border blackline
           
(package private)  LayoutEditorTools.BeanDetails eastBoundSensor
           
(package private)  LayoutEditorTools.BeanDetails eastSignalMast
           
(package private) static org.slf4j.Logger log
           
(package private)  int offSetFromPoint
           
(package private) static ResourceBundle rb
           
(package private) static ResourceBundle rbean
           
(package private)  JFrame sensorSlipFrame
           
(package private)  JPanel sensorSlipPanel
           
(package private)  JPanel sensorTurnoutPanel
           
(package private)  JFrame sensorXingFrame
           
(package private)  JPanel sensorXingPanel
           
(package private)  boolean setSensorsOpen
           
(package private)  boolean setSignalMastsOpen
           
(package private)  JPanel signalMastLayoutSlipPanel
           
(package private)  JPanel signalMastLevelXingPanel
           
(package private)  JPanel signalMastTurnoutPanel
           
(package private)  LayoutEditorTools.BeanDetails slipSensorA
           
(package private)  LayoutEditorTools.BeanDetails slipSensorB
           
(package private)  LayoutEditorTools.BeanDetails slipSensorC
           
(package private)  LayoutEditorTools.BeanDetails slipSensorD
           
(package private)  LayoutEditorTools.BeanDetails slipSignalMastA
           
(package private)  LayoutEditorTools.BeanDetails slipSignalMastB
           
(package private)  LayoutEditorTools.BeanDetails slipSignalMastC
           
(package private)  LayoutEditorTools.BeanDetails slipSignalMastD
           
(package private)  boolean turnoutMastFromMenu
           
(package private)  LayoutEditorTools.BeanDetails turnoutSensorA
           
(package private)  LayoutEditorTools.BeanDetails turnoutSensorB
           
(package private)  SensorIcon turnoutSensorBlockIcon
           
(package private)  LayoutEditorTools.BeanDetails turnoutSensorC
           
(package private)  LayoutEditorTools.BeanDetails turnoutSensorD
           
(package private)  boolean turnoutSensorFromMenu
           
(package private)  LayoutEditorTools.BeanDetails turnoutSignalMastA
           
(package private)  LayoutEditorTools.BeanDetails turnoutSignalMastB
           
(package private)  LayoutEditorTools.BeanDetails turnoutSignalMastC
           
(package private)  LayoutEditorTools.BeanDetails turnoutSignalMastD
           
(package private)  List<NamedBean> usedMasts
           
(package private)  LayoutEditorTools.BeanDetails westBoundSensor
           
(package private)  LayoutEditorTools.BeanDetails westSignalMast
           
(package private)  LayoutEditorTools.BeanDetails xingSensorA
           
(package private)  LayoutEditorTools.BeanDetails xingSensorB
           
(package private)  LayoutEditorTools.BeanDetails xingSensorC
           
(package private)  LayoutEditorTools.BeanDetails xingSensorD
           
(package private)  LayoutEditorTools.BeanDetails xingSignalMastA
           
(package private)  LayoutEditorTools.BeanDetails xingSignalMastB
           
(package private)  LayoutEditorTools.BeanDetails xingSignalMastC
           
(package private)  LayoutEditorTools.BeanDetails xingSignalMastD
           
 
Constructor Summary
LayoutEditorTools(LayoutEditor thePanel)
           
 
Method Summary
(package private)  void createListUsedSignalMasts()
           
(package private)  Point eastToWest(Point2D p, PositionableIcon l, boolean right, double fromPoint)
           
 void finalizeBlockBossLogic()
           
 SignalHead getHeadFromName(String str)
          Returns a SignalHead given a name
 LayoutTurnout getLayoutTurnoutFromTurnout(Turnout turnout, boolean requireDoubleXover, String str, JFrame theFrame)
          Returns the layout turnout corresponding to a given turnout.
 SignalHead getNextSignalFromObject(TrackSegment track, Object object, String headName, JmriJFrame frame)
           
 Sensor getSensorFromEntry(String sensorName, boolean requireEntry, JmriJFrame frame)
          Returns the Sensor corresponding to an entry field in the specified dialog.
 SensorIcon getSensorIcon(String sensorName)
           
 SignalHead getSignalHeadFromEntry(JTextField signalName, boolean requireEntry, JmriJFrame frame)
          Returns the SignalHead corresponding to an entry field in the specified dialog.
 SignalHeadIcon getSignalHeadIcon(String signalName)
           
 SignalMast getSignalMastFromEntry(String signalMastName, boolean requireEntry, JmriJFrame frame)
          Returns the SignalMast corresponding to an entry field in the specified dialog.
 boolean initializeBlockBossLogic(String signalHeadName)
           
 boolean isAtWestEndOfAnchor(TrackSegment t, PositionablePoint p)
           
 boolean isHeadAssignedAnywhere(SignalHead head)
          Returns true if the specified Signal Head is assigned to an object on the panel, regardless of whether an icon is displayed or not
 boolean isHeadOnPanel(SignalHead head)
          Returns true if an icon for the specified SignalHead is on the panel
 boolean isSensorAssignedAnywhere(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 With sensors we do allow the same sensor to be allocated in both directions.
 boolean isSensorOnPanel(Sensor sensor)
           
 boolean isSignalMastAssignedAnywhere(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
 boolean isSignalMastOnPanel(SignalMast signalMast)
           
(package private)  Point northEastToSouthWest(Point2D p, PositionableIcon l, int oldWidth, int oldHeight, double angle, boolean right, double fromPoint)
          come back to this as its a bit tight to the rail on SM110 need re checking
(package private)  Point northToSouth(Point2D p, PositionableIcon l, boolean right, double fromPoint)
           
(package private)  Point northWestToSouthEast(Point2D p, PositionableIcon l, int oldWidth, int oldHeight, double angledeg, boolean right, double fromPoint)
           
 boolean reachedEndBumper()
           
(package private)  void refreshSignalMastAtBoundaryComboBox()
           
(package private)  void refreshSignalMastAtSlipComboBox()
           
(package private)  void refreshSignalMastAtTurnoutComboBox()
           
(package private)  void refreshSignalMastAtXingComboBox()
           
 void removeAssignment(Sensor sensor)
           
 void removeAssignment(SignalHead head)
          Removes the assignment of the specified SignalHead to either a turnout, a positionable point, or a level crossing wherever it is assigned
 void removeAssignment(SignalMast mast)
           
 void removeSensorAssignment(Sensor sensor)
          Removes the assignment of the specified Sensor to either a turnout, a positionable point, or a level crossing wherever it is assigned
 void removeSensorFromPanel(Sensor sensor)
          Removes the Sensor object from the panel and from assignment to any turnout, positionable point, or level crossing
 void removeSignalHeadFromPanel(String signalName)
          Removes the SignalHead with the specified name from the panel and from assignment to any turnout, positionable point, or level crossing
 void removeSignalMastAssignment(SignalMast signalMast)
          Removes the assignment of the specified SignalMast to either a turnout, a positionable point, or a level crossing wherever it is assigned
 void removeSignalMastFromPanel(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)  boolean sensorAssignedElseWhere(String sensor)
           
 void set3WayFromMenu(String aName, String bName, MultiIconEditor theEditor, JFrame theFrame)
           
 void setIconOnPanel(PositionableIcon l, int rotation, int xLoc, int yLoc)
           
 void setIconOnPanel(PositionableIcon l, int rotation, Point p)
           
(package private)  void setIconOnPanel(TrackSegment t, PositionableIcon l, boolean eastbound, Point2D p, Point2D pt2, boolean side, double fromPoint)
           
 void setSensorsAtBlockBoundary(MultiIconEditor theEditor, JFrame theFrame)
           
 void setSensorsAtBlockBoundaryFromMenu(PositionablePoint p, MultiIconEditor theEditor, JFrame theFrame)
           
 void setSensorsAtLevelXing(MultiIconEditor theEditor, JFrame theFrame)
           
 void setSensorsAtLevelXingFromMenu(LevelXing xing, String[] blocks, MultiIconEditor theEditor, JFrame theFrame)
           
 void setSensorsAtSlip(MultiIconEditor theEditor, JFrame theFrame)
           
 void setSensorsAtSlipFromMenu(LayoutSlip slip, String[] blocks, MultiIconEditor theEditor, JFrame theFrame)
           
 void setSensorsAtTurnoutFromMenu(LayoutTurnout to, String[] blocks, MultiIconEditor theEditor, JFrame frame)
           
 void setSensorsAtTurnouts(JFrame frame)
           
 void setSignalAtEdgeConnector(PositionablePoint p, MultiIconEditor theEditor, JFrame theFrame)
           
 void setSignalHeadOnPanel(int rotation, String headName, int xLoc, int yLoc)
          Places a signal head icon on the panel after rotation at the designated place, with all with all icons taken care of.
 void setSignalMastsAtBlockBoundary()
           
 void setSignalMastsAtBlockBoundaryFromMenu(PositionablePoint p)
           
 void setSignalMastsAtLayoutSlip(JFrame theFrame)
           
 void setSignalMastsAtLevelXing(JFrame theFrame)
           
 void setSignalMastsAtLevelXingFromMenu(LevelXing xing, String[] blocks, JFrame theFrame)
           
 void setSignalMastsAtSlipFromMenu(LayoutSlip slip, String[] blocks, JFrame theFrame)
           
 void setSignalMastsAtTurnoutFromMenu(LayoutTurnout to, String[] blocks)
           
 void setSignalMastsAtTurnouts()
           
 void setSignalsAt3WayTurnout(MultiIconEditor theEditor, JFrame theFrame)
           
 void setSignalsAtBlockBoundary(MultiIconEditor theEditor, JFrame theFrame)
           
 void setSignalsAtBlockBoundaryFromMenu(PositionablePoint p, MultiIconEditor theEditor, JFrame theFrame)
           
 void setSignalsAtLevelXing(MultiIconEditor theEditor, JFrame theFrame)
           
 void setSignalsAtLevelXingFromMenu(LevelXing xing, MultiIconEditor theEditor, JFrame theFrame)
           
 void setSignalsAtSlip(MultiIconEditor theEditor, JFrame theFrame)
           
 void setSignalsAtTToTTurnouts(MultiIconEditor theEditor, JFrame theFrame)
           
 void setSignalsAtTurnout(MultiIconEditor theEditor, JFrame theFrame)
           
 void setSignalsAtTurnoutFromMenu(LayoutTurnout to, MultiIconEditor theEditor, JFrame theFrame)
           
 void setSignalsAtXoverTurnout(MultiIconEditor theEditor, JFrame theFrame)
           
 void setSignalsAtXoverTurnoutFromMenu(LayoutTurnout to, MultiIconEditor theEditor, JFrame theFrame)
           
 void setSlipFromMenu(LayoutSlip ls, MultiIconEditor theEditor, JFrame theFrame)
           
 void setThroatToThroatFromMenu(LayoutTurnout to, String linkedTurnoutName, MultiIconEditor theEditor, JFrame theFrame)
           
(package private)  Point southEastToNorthWest(Point2D p, PositionableIcon l, int oldWidth, int oldHeight, double angleDeg, boolean right, double fromPoint)
           
(package private)  Point southToNorth(Point2D p, PositionableIcon l, boolean right, double fromPoint)
           
(package private)  Point southWestToNorthEast(Point2D p, PositionableIcon l, int oldWidth, int oldHeight, double angle, boolean right, double fromPoint)
           
 void updateBoundaryBasedSignalMastLogic(SignalMast oldBlock1SignalMast, SignalMast oldBlock2SignalMast, SignalMast block1BoundSignalMast, SignalMast block2BoundSignalMast)
           
(package private)  Point westToEast(Point2D p, PositionableIcon l, boolean right, double fromPoint)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rb

static final ResourceBundle rb

rbean

static final ResourceBundle rbean

westBoundSensor

LayoutEditorTools.BeanDetails westBoundSensor

eastBoundSensor

LayoutEditorTools.BeanDetails eastBoundSensor

eastSignalMast

LayoutEditorTools.BeanDetails eastSignalMast

westSignalMast

LayoutEditorTools.BeanDetails westSignalMast

adjust

double adjust

awayright

int awayright

offSetFromPoint

final int offSetFromPoint
See Also:
Constant Field Values

setSignalMastsOpen

boolean setSignalMastsOpen

turnoutMastFromMenu

boolean turnoutMastFromMenu

turnoutSignalMastA

LayoutEditorTools.BeanDetails turnoutSignalMastA

turnoutSignalMastB

LayoutEditorTools.BeanDetails turnoutSignalMastB

turnoutSignalMastC

LayoutEditorTools.BeanDetails turnoutSignalMastC

turnoutSignalMastD

LayoutEditorTools.BeanDetails turnoutSignalMastD

signalMastTurnoutPanel

JPanel signalMastTurnoutPanel

usedMasts

List<NamedBean> usedMasts

slipSignalMastA

LayoutEditorTools.BeanDetails slipSignalMastA

slipSignalMastB

LayoutEditorTools.BeanDetails slipSignalMastB

slipSignalMastC

LayoutEditorTools.BeanDetails slipSignalMastC

slipSignalMastD

LayoutEditorTools.BeanDetails slipSignalMastD

signalMastLayoutSlipPanel

JPanel signalMastLayoutSlipPanel

xingSignalMastA

LayoutEditorTools.BeanDetails xingSignalMastA

xingSignalMastB

LayoutEditorTools.BeanDetails xingSignalMastB

xingSignalMastC

LayoutEditorTools.BeanDetails xingSignalMastC

xingSignalMastD

LayoutEditorTools.BeanDetails xingSignalMastD

signalMastLevelXingPanel

JPanel signalMastLevelXingPanel

blackline

Border blackline

setSensorsOpen

boolean setSensorsOpen

turnoutSensorFromMenu

boolean turnoutSensorFromMenu

turnoutSensorA

LayoutEditorTools.BeanDetails turnoutSensorA

turnoutSensorB

LayoutEditorTools.BeanDetails turnoutSensorB

turnoutSensorC

LayoutEditorTools.BeanDetails turnoutSensorC

turnoutSensorD

LayoutEditorTools.BeanDetails turnoutSensorD

sensorTurnoutPanel

JPanel sensorTurnoutPanel

turnoutSensorBlockIcon

SensorIcon turnoutSensorBlockIcon

sensorXingFrame

JFrame sensorXingFrame

xingSensorA

LayoutEditorTools.BeanDetails xingSensorA

xingSensorB

LayoutEditorTools.BeanDetails xingSensorB

xingSensorC

LayoutEditorTools.BeanDetails xingSensorC

xingSensorD

LayoutEditorTools.BeanDetails xingSensorD

sensorXingPanel

JPanel sensorXingPanel

sensorSlipFrame

JFrame sensorSlipFrame

slipSensorA

LayoutEditorTools.BeanDetails slipSensorA

slipSensorB

LayoutEditorTools.BeanDetails slipSensorB

slipSensorC

LayoutEditorTools.BeanDetails slipSensorC

slipSensorD

LayoutEditorTools.BeanDetails slipSensorD

sensorSlipPanel

JPanel sensorSlipPanel

log

static org.slf4j.Logger log
Constructor Detail

LayoutEditorTools

public LayoutEditorTools(LayoutEditor thePanel)
Method Detail

setSignalsAtTurnoutFromMenu

public void setSignalsAtTurnoutFromMenu(LayoutTurnout to,
                                        MultiIconEditor theEditor,
                                        JFrame theFrame)

setSignalsAtTurnout

public void setSignalsAtTurnout(MultiIconEditor theEditor,
                                JFrame theFrame)

getLayoutTurnoutFromTurnout

public LayoutTurnout getLayoutTurnoutFromTurnout(Turnout turnout,
                                                 boolean requireDoubleXover,
                                                 String str,
                                                 JFrame theFrame)
Returns the layout turnout corresponding to a given turnout. If require double crossover is requested, and 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.


getSignalHeadFromEntry

public SignalHead getSignalHeadFromEntry(JTextField signalName,
                                         boolean requireEntry,
                                         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.


getHeadFromName

public SignalHead getHeadFromName(String str)
Returns a SignalHead given a name


setSignalHeadOnPanel

public void setSignalHeadOnPanel(int rotation,
                                 String headName,
                                 int xLoc,
                                 int yLoc)
Places a signal head icon on the panel after rotation at the designated place, with all with all icons taken care of.


isHeadOnPanel

public boolean isHeadOnPanel(SignalHead head)
Returns true if an icon for the specified SignalHead is on the panel


isHeadAssignedAnywhere

public boolean isHeadAssignedAnywhere(SignalHead head)
Returns true if the specified Signal Head is assigned to an object on the panel, regardless of whether an icon is displayed or not


removeAssignment

public void removeAssignment(SignalHead head)
Removes the assignment of the specified SignalHead to either a turnout, a positionable point, or a level crossing wherever it is assigned


removeSignalHeadFromPanel

public void removeSignalHeadFromPanel(String signalName)
Removes the SignalHead with the specified name from the panel and from assignment to any turnout, positionable point, or level crossing


initializeBlockBossLogic

public boolean initializeBlockBossLogic(String signalHeadName)

finalizeBlockBossLogic

public void finalizeBlockBossLogic()

getNextSignalFromObject

public SignalHead getNextSignalFromObject(TrackSegment track,
                                          Object object,
                                          String headName,
                                          JmriJFrame frame)

reachedEndBumper

public boolean reachedEndBumper()

isAtWestEndOfAnchor

public boolean isAtWestEndOfAnchor(TrackSegment t,
                                   PositionablePoint p)

setSignalsAtBlockBoundaryFromMenu

public void setSignalsAtBlockBoundaryFromMenu(PositionablePoint p,
                                              MultiIconEditor theEditor,
                                              JFrame theFrame)

setSignalsAtBlockBoundary

public void setSignalsAtBlockBoundary(MultiIconEditor theEditor,
                                      JFrame theFrame)

setSignalAtEdgeConnector

public void setSignalAtEdgeConnector(PositionablePoint p,
                                     MultiIconEditor theEditor,
                                     JFrame theFrame)

setSignalsAtXoverTurnoutFromMenu

public void setSignalsAtXoverTurnoutFromMenu(LayoutTurnout to,
                                             MultiIconEditor theEditor,
                                             JFrame theFrame)

setSignalsAtXoverTurnout

public void setSignalsAtXoverTurnout(MultiIconEditor theEditor,
                                     JFrame theFrame)

setSignalsAtLevelXingFromMenu

public void setSignalsAtLevelXingFromMenu(LevelXing xing,
                                          MultiIconEditor theEditor,
                                          JFrame theFrame)

setSignalsAtLevelXing

public void setSignalsAtLevelXing(MultiIconEditor theEditor,
                                  JFrame theFrame)

setThroatToThroatFromMenu

public void setThroatToThroatFromMenu(LayoutTurnout to,
                                      String linkedTurnoutName,
                                      MultiIconEditor theEditor,
                                      JFrame theFrame)

setSignalsAtTToTTurnouts

public void setSignalsAtTToTTurnouts(MultiIconEditor theEditor,
                                     JFrame theFrame)

set3WayFromMenu

public void set3WayFromMenu(String aName,
                            String bName,
                            MultiIconEditor theEditor,
                            JFrame theFrame)

setSignalsAt3WayTurnout

public void setSignalsAt3WayTurnout(MultiIconEditor theEditor,
                                    JFrame theFrame)

setSensorsAtBlockBoundaryFromMenu

public void setSensorsAtBlockBoundaryFromMenu(PositionablePoint p,
                                              MultiIconEditor theEditor,
                                              JFrame theFrame)

setSensorsAtBlockBoundary

public void setSensorsAtBlockBoundary(MultiIconEditor theEditor,
                                      JFrame theFrame)

getSensorFromEntry

public Sensor getSensorFromEntry(String sensorName,
                                 boolean requireEntry,
                                 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, and error message is sent. An error message also results if a sensor head with the entered name is not found in the SensorTable.


getSensorIcon

public SensorIcon getSensorIcon(String sensorName)

isSensorAssignedAnywhere

public boolean isSensorAssignedAnywhere(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 With sensors we do allow the same sensor to be allocated in both directions.


sensorAssignedElseWhere

boolean sensorAssignedElseWhere(String sensor)

removeSensorAssignment

public void removeSensorAssignment(Sensor sensor)
Removes the assignment of the specified Sensor to either a turnout, a positionable point, or a level crossing wherever it is assigned


removeSensorFromPanel

public void removeSensorFromPanel(Sensor sensor)
Removes the Sensor object from the panel and from assignment to any turnout, positionable point, or level crossing


isSensorOnPanel

public boolean isSensorOnPanel(Sensor sensor)

setSignalMastsAtBlockBoundaryFromMenu

public void setSignalMastsAtBlockBoundaryFromMenu(PositionablePoint p)

setSignalMastsAtBlockBoundary

public void setSignalMastsAtBlockBoundary()

getSignalMastFromEntry

public SignalMast getSignalMastFromEntry(String signalMastName,
                                         boolean requireEntry,
                                         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.


isSignalMastAssignedAnywhere

public boolean isSignalMastAssignedAnywhere(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


removeSignalMastAssignment

public void removeSignalMastAssignment(SignalMast signalMast)
Removes the assignment of the specified SignalMast to either a turnout, a positionable point, or a level crossing wherever it is assigned


removeSignalMastFromPanel

public void removeSignalMastFromPanel(SignalMast signalMast)
Removes the SignalMast with the specified name from the panel and from assignment to any turnout, positionable point, or level crossing


refreshSignalMastAtBoundaryComboBox

void refreshSignalMastAtBoundaryComboBox()

updateBoundaryBasedSignalMastLogic

public void updateBoundaryBasedSignalMastLogic(SignalMast oldBlock1SignalMast,
                                               SignalMast oldBlock2SignalMast,
                                               SignalMast block1BoundSignalMast,
                                               SignalMast block2BoundSignalMast)

setIconOnPanel

public void setIconOnPanel(PositionableIcon l,
                           int rotation,
                           Point p)

setIconOnPanel

public void setIconOnPanel(PositionableIcon l,
                           int rotation,
                           int xLoc,
                           int yLoc)

setIconOnPanel

void setIconOnPanel(TrackSegment t,
                    PositionableIcon l,
                    boolean eastbound,
                    Point2D p,
                    Point2D pt2,
                    boolean side,
                    double fromPoint)

southToNorth

Point southToNorth(Point2D p,
                   PositionableIcon l,
                   boolean right,
                   double fromPoint)

northToSouth

Point northToSouth(Point2D p,
                   PositionableIcon l,
                   boolean right,
                   double fromPoint)

westToEast

Point westToEast(Point2D p,
                 PositionableIcon l,
                 boolean right,
                 double fromPoint)

eastToWest

Point eastToWest(Point2D p,
                 PositionableIcon l,
                 boolean right,
                 double fromPoint)

northEastToSouthWest

Point northEastToSouthWest(Point2D p,
                           PositionableIcon l,
                           int oldWidth,
                           int oldHeight,
                           double angle,
                           boolean right,
                           double fromPoint)
come back to this as its a bit tight to the rail on SM110 need re checking


southWestToNorthEast

Point southWestToNorthEast(Point2D p,
                           PositionableIcon l,
                           int oldWidth,
                           int oldHeight,
                           double angle,
                           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

public boolean isSignalMastOnPanel(SignalMast signalMast)

setSignalMastsAtTurnoutFromMenu

public void setSignalMastsAtTurnoutFromMenu(LayoutTurnout to,
                                            String[] blocks)

createListUsedSignalMasts

void createListUsedSignalMasts()

refreshSignalMastAtTurnoutComboBox

void refreshSignalMastAtTurnoutComboBox()

setSignalMastsAtTurnouts

public void setSignalMastsAtTurnouts()

removeAssignment

public void removeAssignment(SignalMast mast)

setSignalMastsAtSlipFromMenu

public void setSignalMastsAtSlipFromMenu(LayoutSlip slip,
                                         String[] blocks,
                                         JFrame theFrame)

setSignalMastsAtLayoutSlip

public void setSignalMastsAtLayoutSlip(JFrame theFrame)

refreshSignalMastAtSlipComboBox

void refreshSignalMastAtSlipComboBox()

setSignalMastsAtLevelXingFromMenu

public void setSignalMastsAtLevelXingFromMenu(LevelXing xing,
                                              String[] blocks,
                                              JFrame theFrame)

setSignalMastsAtLevelXing

public void setSignalMastsAtLevelXing(JFrame theFrame)

refreshSignalMastAtXingComboBox

void refreshSignalMastAtXingComboBox()

setSensorsAtTurnoutFromMenu

public void setSensorsAtTurnoutFromMenu(LayoutTurnout to,
                                        String[] blocks,
                                        MultiIconEditor theEditor,
                                        JFrame frame)

setSensorsAtTurnouts

public void setSensorsAtTurnouts(JFrame frame)

removeAssignment

public void removeAssignment(Sensor sensor)

setSensorsAtLevelXingFromMenu

public void setSensorsAtLevelXingFromMenu(LevelXing xing,
                                          String[] blocks,
                                          MultiIconEditor theEditor,
                                          JFrame theFrame)

setSensorsAtLevelXing

public void setSensorsAtLevelXing(MultiIconEditor theEditor,
                                  JFrame theFrame)

setSensorsAtSlipFromMenu

public void setSensorsAtSlipFromMenu(LayoutSlip slip,
                                     String[] blocks,
                                     MultiIconEditor theEditor,
                                     JFrame theFrame)

setSensorsAtSlip

public void setSensorsAtSlip(MultiIconEditor theEditor,
                             JFrame theFrame)

setSlipFromMenu

public void setSlipFromMenu(LayoutSlip ls,
                            MultiIconEditor theEditor,
                            JFrame theFrame)

setSignalsAtSlip

public void setSignalsAtSlip(MultiIconEditor theEditor,
                             JFrame theFrame)

getSignalHeadIcon

public SignalHeadIcon getSignalHeadIcon(String signalName)


Copyright © 1997-2014 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads