/** * Returns <code>true</code> if the passed figure is a line figure, <code>false</code> otherwise. * * @param fig The param. * @return See above. */ private boolean lineFigure(ROIFigure fig) { if (fig instanceof MeasureLineFigure || fig instanceof MeasureLineConnectionFigure) return true; if (fig instanceof MeasureBezierFigure) { MeasureBezierFigure bFig = (MeasureBezierFigure) fig; if (!bFig.isClosed()) return true; } return false; }
/** * Returns <code>true</code> if the passed figure is an area figure, <code>false</code> otherwise. * * @param fig The param. * @return See above. */ private boolean areaFigure(ROIFigure fig) { if (fig instanceof MeasureEllipseFigure || fig instanceof MeasureRectangleFigure) return true; if (fig instanceof MeasureBezierFigure) { MeasureBezierFigure bFig = (MeasureBezierFigure) fig; if (bFig.isClosed()) return true; } return false; }