public class SwingBoxesDrawer extends java.lang.Object implements BoxesDrawer
Constructor and Description |
---|
SwingBoxesDrawer() |
Modifier and Type | Method and Description |
---|---|
void |
draw(java.lang.Object graphicsContext,
Dim dimension,
BoxManager boxes,
boolean midBoxOnly,
java.util.Vector<java.lang.Integer> backgroundColors)
Draw boxes on a Graphics2D context.
|
public void draw(java.lang.Object graphicsContext, Dim dimension, BoxManager boxes, boolean midBoxOnly, java.util.Vector<java.lang.Integer> backgroundColors)
draw
in interface BoxesDrawer
graphicsContext
- the Graphics2D on which drawing is to take place.dimension
- the size of the overall grid of boxes.boxes
- the BoxManagermidBoxOnly
- whether only to draw the midBox.backgroundColors
- a list of background colors for the box list (a morph's phenotype may have a background color.)