T
- The type of image the rendered can write topublic abstract class AbstractRenderer<T> extends Object implements ConnectedComponentProcessor
Modifier and Type | Field and Description |
---|---|
protected T |
colour
The colour the connected component will be written in
|
protected Image<T,?> |
image
The image that the rendered will write to
|
Constructor and Description |
---|
AbstractRenderer(Image<T,?> image,
T colour)
Default constructor that takes the image to write to and the
colour to draw in.
|
AbstractRenderer(int width,
int height,
T colour)
Constructor that creates a new image into which to render the
connected components and a colour to draw in.
|
Modifier and Type | Method and Description |
---|---|
T |
getColour()
Returns the colour that the components will be drawn in.
|
Image<T,?> |
getImage()
Returns the image that is being rendered on.
|
void |
setColour(T colour)
Set the colour that the components will be drawn in.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
process
public AbstractRenderer(Image<T,?> image, T colour)
image
- The image to write tocolour
- The colour to write inpublic AbstractRenderer(int width, int height, T colour)
width
- The width of the image to createheight
- The height of the image to createcolour
- The colour to draw inpublic T getColour()
public void setColour(T colour)
colour
- the colour to draw components.