previousY = (int) previousClickPoint.getY();
}
// If a given tool is active then update the AGI picture.
if (editStatus.isFillActive()) {
picture.fill(x, y);
if (editStatus.isFirstClick()) {
picture.addPictureCode(PictureCodeType.DRAW_FILL);
}
picture.addPictureCode(PictureCodeType.FILL_POINT_DATA, x, y);
} else if (editStatus.isLineActive()) {