sim.portrayal.simple
Class TrailedPortrayal2D.TrailDrawInfo2D

java.lang.Object
  extended by sim.portrayal.DrawInfo2D
      extended by sim.portrayal.network.EdgeDrawInfo2D
          extended by sim.portrayal.simple.TrailedPortrayal2D.TrailDrawInfo2D
Enclosing class:
TrailedPortrayal2D

public static class TrailedPortrayal2D.TrailDrawInfo2D
extends EdgeDrawInfo2D

A special version of DrawInfo2D which adds additional information useful for drawing your own trails. Instances of this class are what will be sent to the "trail" SimplePortrayal2D object when it is called upon to draw a trail segment.

The TrailDrawInfo2D adds two additional items beyond the standard DrawInfo2D stuff:


Field Summary
 double value
          A value from 1.0 to 0.0 indicating how far "back in time" this segment is supposed to be.
 
Fields inherited from class sim.portrayal.network.EdgeDrawInfo2D
secondPoint
 
Fields inherited from class sim.portrayal.DrawInfo2D
clip, draw, location, precise, selected
 
Constructor Summary
TrailedPortrayal2D.TrailDrawInfo2D(DrawInfo2D other, java.awt.geom.Point2D.Double secondPoint)
           
TrailedPortrayal2D.TrailDrawInfo2D(EdgeDrawInfo2D other)
           
TrailedPortrayal2D.TrailDrawInfo2D(java.awt.geom.Rectangle2D.Double draw, java.awt.geom.Rectangle2D.Double clip, java.awt.geom.Point2D.Double secondPoint)
           
 
Method Summary
 
Methods inherited from class sim.portrayal.network.EdgeDrawInfo2D
toString
 
Methods inherited from class sim.portrayal.DrawInfo2D
equals
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public double value
A value from 1.0 to 0.0 indicating how far "back in time" this segment is supposed to be.

Constructor Detail

TrailedPortrayal2D.TrailDrawInfo2D

public TrailedPortrayal2D.TrailDrawInfo2D(java.awt.geom.Rectangle2D.Double draw,
                                          java.awt.geom.Rectangle2D.Double clip,
                                          java.awt.geom.Point2D.Double secondPoint)

TrailedPortrayal2D.TrailDrawInfo2D

public TrailedPortrayal2D.TrailDrawInfo2D(DrawInfo2D other,
                                          java.awt.geom.Point2D.Double secondPoint)

TrailedPortrayal2D.TrailDrawInfo2D

public TrailedPortrayal2D.TrailDrawInfo2D(EdgeDrawInfo2D other)