auc.simulator.simitems
Class SimField

java.lang.Object
  |
  +--auc.simulator.simitems.SimItemAdapter
        |
        +--auc.simulator.simitems.SimField
All Implemented Interfaces:
SimItem

public class SimField
extends SimItemAdapter

Field representation in the simulator.


Fields inherited from class auc.simulator.simitems.SimItemAdapter
mAction, mBounds, mCoordProvider, mDraggable, mName, mSelectionPoint
 
Constructor Summary
SimField(CoordManageable coordProvider, Field field)
          Constructs a field for the simulator.
 
Method Summary
 void displaySelected()
          Displays the selected sub-field of the field as a separate field.
 Field getDisplayedField()
          Returns the currently displayed field on the simulator.
 Field getField()
          Returns the data object field for this simulator field.
 void paint(java.awt.Graphics g)
          Drawing routine for this simulator field.
 void paintSelection(java.awt.Graphics g)
          Drawing routine for the simulator field selection.
 void selectSubItem()
          Selects a field given the last mouse press point.
 void setField(Field field)
          Sets the data object field for this simulator field.
 void setFieldDrawingArea(FieldDrawingArea fieldDrawingArea)
          Sets the field drawing area for the simulated field.
 void up()
          Goes up the hierarchy in the field display area.
 
Methods inherited from class auc.simulator.simitems.SimItemAdapter
getBounds, getCenterPoint, getCoordManager, getName, getSelectionBounds, isDraggable, isSelected, performAction, setAction, setBounds, setDraggable, setName, setSelected, setSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimField

public SimField(CoordManageable coordProvider,
                Field field)
Constructs a field for the simulator.
Parameters:
coordProvider - the component on which the field will be drawn.
field - the field data object.
Method Detail

setFieldDrawingArea

public void setFieldDrawingArea(FieldDrawingArea fieldDrawingArea)
Sets the field drawing area for the simulated field.
Parameters:
fieldDrawingArea - field drawing area for this simulated field.

setField

public void setField(Field field)
Sets the data object field for this simulator field.
Parameters:
field - the data object field.

getField

public Field getField()
Returns the data object field for this simulator field.
Returns:
the data object field.

getDisplayedField

public Field getDisplayedField()
Returns the currently displayed field on the simulator.
Returns:
the data object of the currently displayed field.

paint

public void paint(java.awt.Graphics g)
Drawing routine for this simulator field.
Overrides:
paint in class SimItemAdapter
Parameters:
g - Graphics context for drawing.

paintSelection

public void paintSelection(java.awt.Graphics g)
Drawing routine for the simulator field selection.
Overrides:
paintSelection in class SimItemAdapter
Parameters:
g - Graphics context for drawing.

selectSubItem

public void selectSubItem()
Selects a field given the last mouse press point.
Overrides:
selectSubItem in class SimItemAdapter

displaySelected

public void displaySelected()
Displays the selected sub-field of the field as a separate field.

up

public void up()
Goes up the hierarchy in the field display area.