sim.portrayal
Interface Portrayal2D

All Superinterfaces:
Portrayal, java.io.Serializable
All Known Implementing Classes:
CircledPortrayal2D, ContinuousPortrayal2D, FastHexaObjectGridPortrayal2D, FastHexaValueGridPortrayal2D, FastObjectGridPortrayal2D, FastValueGridPortrayal2D, FieldPortrayal2D, HexagonalPortrayal2D, HexaObjectGridPortrayal2D, HexaSparseGridPortrayal2D, HexaValueGridPortrayal2D, ImagePortrayal2D, LabelledPortrayal2D, NetworkPortrayal2D, ObjectGridPortrayal2D, OrientedPortrayal2D, OvalPortrayal2D, RectanglePortrayal2D, ShapePortrayal2D, SimpleEdgePortrayal2D, SimplePortrayal2D, SparseGridPortrayal2D, TransformedPortrayal2D, ValueGridPortrayal2D, ValuePortrayal2D

public interface Portrayal2D
extends Portrayal

The basic 2D portrayal interface. It adds the draw method in the 2D context.


Method Summary
 void draw(java.lang.Object object, java.awt.Graphics2D graphics, DrawInfo2D info)
          Draw a portrayed object centered at the origin in info, and with the given scaling factors.
 
Methods inherited from interface sim.portrayal.Portrayal
getInspector, getName, getStatus, setSelected
 

Method Detail

draw

void draw(java.lang.Object object,
          java.awt.Graphics2D graphics,
          DrawInfo2D info)
Draw a portrayed object centered at the origin in info, and with the given scaling factors. It is possible that object is null.