com.rubecula.darwin.visualization
Class Painter_
java.lang.Object
com.rubecula.darwin.visualization.Painter_
- All Implemented Interfaces:
- Painter
- Direct Known Subclasses:
- Painter_ColoredCircle, Painter_PepperedMoth
public abstract class Painter_
- extends java.lang.Object
- implements Painter
Base methods and operations for implementers of Painter
.
Sub-classes of this type have life-span: permanent.
- Author:
- Robin Hillyard
Constructor Summary |
protected |
Painter_()
Protected base constructor for implementers of Painter |
Method Summary |
boolean |
isIdentify()
|
void |
paintBase(java.awt.Graphics g,
int width,
int height)
Base method: simply clears the rectangle defined by {0, 0, width, height}
to the (previously defined) background color. |
protected void |
paintIdentification(java.awt.Graphics g,
Avatar avatar,
java.awt.Point location)
|
void |
paintVisualization(VisualizationModel visualizationModel,
java.awt.Graphics g,
int width,
int height)
Method to paint visualization model which . |
void |
setIdentify(boolean identify)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Painter_
protected Painter_()
- Protected base constructor for implementers of
Painter
isIdentify
public boolean isIdentify()
- Specified by:
isIdentify
in interface Painter
- Returns:
- the identify
paintBase
public void paintBase(java.awt.Graphics g,
int width,
int height)
- Base method: simply clears the rectangle defined by {0, 0, width, height}
to the (previously defined) background color. /* (non-Javadoc)
- Specified by:
paintBase
in interface Painter
- Parameters:
g
- a graphics context, typically a buffered image.width
- the width of the area in which we may draw (0..width are legal
for x coordinates).height
- the height of the area in which we may draw (0..height are
legal for y coordinates).- See Also:
Painter.paintBase(java.awt.Graphics,
int, int)
paintVisualization
public void paintVisualization(VisualizationModel visualizationModel,
java.awt.Graphics g,
int width,
int height)
- Description copied from interface:
Painter
- Method to paint visualization model
which
. This method is
called (indirectly) by Visualizer_.paintComponent(Graphics)
method, once for each model.
- Specified by:
paintVisualization
in interface Painter
- See Also:
Painter.paintVisualization(com.rubecula.darwin.visualization.VisualizationModel,
java.awt.Graphics, int, int)
setIdentify
public void setIdentify(boolean identify)
- Specified by:
setIdentify
in interface Painter
- Parameters:
identify
- the identify to set
paintIdentification
protected void paintIdentification(java.awt.Graphics g,
Avatar avatar,
java.awt.Point location)
Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.