Uses of Class
net.kolls.railworld.RailSegment

Packages that use RailSegment
net.kolls.railworld Provides for basic status and operation of quantities needed for both play and editing. 
net.kolls.railworld.car Various types of cars which are supported by Rail World. 
net.kolls.railworld.edit Components related to the map editor module. 
net.kolls.railworld.io File I/O support for maps and games. 
net.kolls.railworld.opening Classes used to start the game. 
net.kolls.railworld.play Classes used for playing Rail World. 
net.kolls.railworld.segment Rail segments available. 
 

Uses of RailSegment in net.kolls.railworld
 

Fields in net.kolls.railworld declared as RailSegment
protected  RailSegment[] RailSegment.dests
          Various connections to this segment.
 RailSegment[] RailCanvas.la
          The rail segments.
 RailSegment CLoc.orig
          The origin RailSegment.
 RailSegment CLoc.r
          The current RailSegment.
 

Methods in net.kolls.railworld that return RailSegment
abstract  RailSegment RailSegment.dest(RailSegment source)
          Each rail segment must at the very least tell us where it comes from and where it goes, currently.
 RailSegment RailSegment.getDest(int dest)
          Returns a given destination RailSegment.
 

Methods in net.kolls.railworld that return types with arguments of type RailSegment
 java.util.ArrayList<RailSegment> RailSegment.destNZ(RailSegment source)
          Finds the first non-zero length RailSegment going away from the source.
 java.util.Set<RailSegment> Car.segs()
          For the current Car, returns the segments that the Car occupies, if any.
 

Methods in net.kolls.railworld with parameters of type RailSegment
protected abstract  SegmentEditPoint RailSegment.createSEP(int ptIdx, RailSegment attach)
          Given a point index in the pts array and possibly a railsegment to attach, return a segmenteditpoint if such attachment is possible.
abstract  RailSegment RailSegment.dest(RailSegment source)
          Each rail segment must at the very least tell us where it comes from and where it goes, currently.
 java.util.ArrayList<RailSegment> RailSegment.destNZ(RailSegment source)
          Finds the first non-zero length RailSegment going away from the source.
abstract  java.awt.geom.Point2D RailSegment.getPoint(RailSegment start, double myPos)
           
 SegmentEditPoint RailSegment.nearEditPoint(java.awt.geom.Point2D loc, RailSegment attach)
          Given a point, find out if it is near one of our edit handles (z=5).
 void RailSegment.setDest(int point, boolean ifNotNull, RailSegment value)
          Updates one of the connecting segments to this segment.
 int RailSegment.update(RailSegment test, RailSegment newValue)
          Updates a connection from a given segment to a new one.
 

Constructors in net.kolls.railworld with parameters of type RailSegment
CLoc(RailSegment cur, RailSegment start, double p)
          Constructs a CLoc given the three essentials.
RailCanvas(java.awt.image.BufferedImage s, RailSegment[] lines, MiniViewer mini)
          Construct a new rail canvas
RailFrame(RailSegment[] lines, java.awt.image.BufferedImage source, java.lang.String tbnoun)
          Create a rail frame.
 

Uses of RailSegment in net.kolls.railworld.car
 

Methods in net.kolls.railworld.car that return types with arguments of type RailSegment
 java.util.Set<RailSegment> CachedCar.segs()
           
 java.util.Set<RailSegment> AbstractCar.segs()
           
 

Uses of RailSegment in net.kolls.railworld.edit
 

Fields in net.kolls.railworld.edit declared as RailSegment
 RailSegment[] SegmentEditPoint.myr
          Segments involved in this edit point.
 

Methods in net.kolls.railworld.edit that return RailSegment
abstract  RailSegment SegmentEditPoint.anchor(RailSegment r)
          Attachs a segment to this edit point.
 RailSegment SegmentEditPoint.getSegment()
          Returns the railsegment this edit point is associated with.
 

Methods in net.kolls.railworld.edit with parameters of type RailSegment
abstract  RailSegment SegmentEditPoint.anchor(RailSegment r)
          Attachs a segment to this edit point.
 

Constructors in net.kolls.railworld.edit with parameters of type RailSegment
EditCanvas(java.awt.image.BufferedImage s, RailSegment[] lines, MiniViewer mini)
          Construct an edit canvas with a given source image, some segments, and a mini viewer.
EditFrame(RailSegment[] lines, java.awt.image.BufferedImage source, MetaData md)
          Create an edit frame.
SegmentEditPoint(RailSegment[] segs, int ptIndex, java.awt.Color col)
          Create a segment edit point.
 

Uses of RailSegment in net.kolls.railworld.io
 

Methods in net.kolls.railworld.io that return RailSegment
static RailSegment[] YardReader.read(java.io.File f, MetaData toBeFilled)
          Reads a valid Yard Duty file.
static RailSegment[] RWMReader.read(java.io.File f, MetaData toBeFilled)
          Reads from an RWM file and returns the rail segments and updates the given metadata.
static RailSegment[] RWMReader.read(java.net.URL f, MetaData toBeFilled)
          Reads from an RWM file and returns the rail segments.
 

Methods in net.kolls.railworld.io with parameters of type RailSegment
static void RWMWriter.write(RailSegment[] la, MetaData md, java.io.File f)
          Saves rail segments and associated metadata in the RWM format.
static void RWGWriter.write(RailSegment[] la, Trains trs, ScriptManager sm, MetaData md, java.io.File f)
          Saves the current game state (trains, dynamic track configuration, visual orientation) to a Rail World Game file.
 

Uses of RailSegment in net.kolls.railworld.opening
 

Methods in net.kolls.railworld.opening that return RailSegment
 RailSegment[] MapLoader.getSegments()
           
 

Constructors in net.kolls.railworld.opening with parameters of type RailSegment
MapLoader(RailSegment[] la, MetaData mmd)
          Protected constructor.
 

Uses of RailSegment in net.kolls.railworld.play
 

Constructors in net.kolls.railworld.play with parameters of type RailSegment
PlayCanvas(java.awt.image.BufferedImage s, RailSegment[] lines, MiniViewer mini)
          Create a play canvas.
PlayFrame(RailSegment[] lines, java.awt.image.BufferedImage source, MetaData md, ScriptManager sm)
          Create a new play frame.
TrainCreator(RailSegment[] lines, PlayFrame pf, ScriptManager trainNotify)
          Shows the train creator window.
 

Uses of RailSegment in net.kolls.railworld.segment
 

Subclasses of RailSegment in net.kolls.railworld.segment
 class Crossing
          At-grade crossing.
 class Curve
          A curved track segment represented using a cubic curve.
 class EESegment
          Entrance/Exit segment.
 class FourWay
          Track crossing itself without switching capabilities.
 class HiddenLUSegment
          A hidden load/unload segment.
 class HiddenSegment
          A hidden segment.
 class Label
          A label for displaying text.
 class LUSegment
          Load/unload segment.
 class Signal
          Provides a signal to indicate whether a train should proceed.
 class Switch
          Provides a Y connector which can be toggled by the user to route trains.
 class TrackSegment
          A regular, straight-line segment of track.
 

Methods in net.kolls.railworld.segment that return RailSegment
 RailSegment TrackSegment.TSEP.anchor(RailSegment r)
           
 RailSegment Curve.CSEP.anchor(RailSegment r)
           
static RailSegment[] Signal.createSignals(RailSegment[] lines)
          Generates signals at switches and four ways in a reasonable way.
 RailSegment TrackSegment.dest(RailSegment source)
           
 RailSegment Switch.dest(RailSegment src)
           
 RailSegment Signal.dest(RailSegment source)
           
 RailSegment Label.dest(RailSegment source)
           
 RailSegment FourWay.dest(RailSegment source)
           
 RailSegment EESegment.dest(RailSegment source)
           
 RailSegment Curve.dest(RailSegment source)
           
 

Methods in net.kolls.railworld.segment with parameters of type RailSegment
 RailSegment TrackSegment.TSEP.anchor(RailSegment r)
           
 RailSegment Curve.CSEP.anchor(RailSegment r)
           
 SegmentEditPoint TrackSegment.createSEP(int ptIdx, RailSegment anchor)
           
 SegmentEditPoint Switch.createSEP(int ptIdx, RailSegment anchor)
           
 SegmentEditPoint Signal.createSEP(int ptIdx, RailSegment attach)
           
 SegmentEditPoint Label.createSEP(int ptIdx, RailSegment attach)
           
 SegmentEditPoint FourWay.createSEP(int ptIdx, RailSegment anchor)
           
 SegmentEditPoint EESegment.createSEP(int ptIdx, RailSegment anchor)
           
protected  SegmentEditPoint Curve.createSEP(int ptIdx, RailSegment attach)
           
static RailSegment[] Signal.createSignals(RailSegment[] lines)
          Generates signals at switches and four ways in a reasonable way.
 RailSegment TrackSegment.dest(RailSegment source)
           
 RailSegment Switch.dest(RailSegment src)
           
 RailSegment Signal.dest(RailSegment source)
           
 RailSegment Label.dest(RailSegment source)
           
 RailSegment FourWay.dest(RailSegment source)
           
 RailSegment EESegment.dest(RailSegment source)
           
 RailSegment Curve.dest(RailSegment source)
           
 java.awt.geom.Point2D TrackSegment.getPoint(RailSegment start, double myPos)
           
 java.awt.geom.Point2D Switch.getPoint(RailSegment s, double pos)
           
 java.awt.geom.Point2D Signal.getPoint(RailSegment start, double myPos)
           
 java.awt.geom.Point2D Label.getPoint(RailSegment start, double myPos)
           
 java.awt.geom.Point2D FourWay.getPoint(RailSegment s, double pos)
           
 java.awt.geom.Point2D EESegment.getPoint(RailSegment start, double myPos)
           
 java.awt.geom.Point2D Curve.getPoint(RailSegment start, double myPos)
           
 

Constructors in net.kolls.railworld.segment with parameters of type RailSegment
Crossing(RailSegment bg, RailSegment en, java.awt.geom.Line2D crds)
          Create a crossing.
Curve.CSEP(Curve t, RailSegment an, int pt)
          Construct a curve segment edit point.
Curve(RailSegment bg, RailSegment en, java.awt.geom.QuadCurve2D crds)
          Create a new curve segment.
EESegment(RailSegment bg, RailSegment en, java.awt.geom.Line2D crds, java.lang.String lbl)
          Construct an entry/exit segment
FourWay(RailSegment ba, RailSegment ena, RailSegment bb, RailSegment enb, java.awt.geom.Point2D pos)
          Create a four way crossing
HiddenLUSegment(RailSegment bg, RailSegment en, java.awt.geom.Line2D crds, Car[] accept, boolean drawAccept)
           
HiddenSegment(RailSegment bg, RailSegment en, java.awt.geom.Line2D crds)
          Create a hidden segment
LUSegment(RailSegment bg, RailSegment en, java.awt.geom.Line2D crds, Car[] accept, boolean drawAccept)
          Create a load/unload segment.
Signal(RailSegment begin, RailSegment end)
          Create a signal.
Switch(RailSegment bg, RailSegment en1, RailSegment en2, java.awt.geom.Point2D pos)
          Create a switch.
TrackSegment(RailSegment bg, RailSegment en, java.awt.geom.Line2D crds)
          Create a track segment.