uchicago.src.sim.gui
Class RectItem
java.lang.Object
|
+--uchicago.src.sim.gui.DrawableItem
|
+--uchicago.src.sim.gui.RectItem
- All Implemented Interfaces:
- NonGridDrawable
- Direct Known Subclasses:
- RectNetworkItem, RectNode
- public abstract class RectItem
- extends DrawableItem
A rectangular shaped DrawableItem.
- See Also:
DrawableItem
| Fields inherited from class uchicago.src.sim.gui.DrawableItem |
allowResizing, borderColor, borderWidth, color, font, height, hollow, label, labelColor, recalc, stroke, width |
|
Method Summary |
void |
calcSize(SimGraphics g)
Calculates the true size of this object including the border width. |
boolean |
contains(Point p)
Does this RectItem contain Point p? |
void |
draw(SimGraphics g)
Draws this item using the specified context. |
| Methods inherited from class uchicago.src.sim.gui.DrawableItem |
allowResizing, getBorderColor, getBorderWidth, getColor, getFont, getHeight, getLabelColor, getWidth, isHollow, setBorderColor, setBorderWidth, setColor, setFont, setHeight, setHollow, setLabel, setLabelColor, setSize, setSize, setWidth |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RectItem
public RectItem()
calcSize
public void calcSize(SimGraphics g)
- Calculates the true size of this object including the border width.
- Overrides:
calcSize in class DrawableItem
draw
public void draw(SimGraphics g)
- Draws this item using the specified context.
contains
public boolean contains(Point p)
- Does this RectItem contain Point p?
- Parameters:
p - the point to test for
- Returns:
- true if this does contain p, false otherwise
Bug reports and feature requests to RePast