Package sim.display

Class Display2D.FieldPortrayal2DHolder

java.lang.Object
sim.display.Display2D.FieldPortrayal2DHolder
Enclosing class:
Display2D

public class Display2D.FieldPortrayal2DHolder extends Object
Holds all the relevant information for a given FieldPortrayal.
  • Field Details

    • bounds

      public Rectangle2D.Double bounds
      The translation and scale of the FieldPortrayal. Presently this is always 0,0 translation and 1.0 scale, but we'll allow the user to change this soon.
    • portrayal

      public FieldPortrayal2D portrayal
      The portrayal proper
    • name

      public String name
      The name of the portrayal, as shown in the Layers menu on the Display2D window
  • Method Details

    • toString

      public String toString()
      Returns the portrayal's name in the Layers menu
      Overrides:
      toString in class Object