*
* @return the created record.
*/
public MfRecord getRecord()
{
final MfRecord record = new MfRecord(RECORD_SIZE);
final Rectangle bounds = getBounds();
final Point start = getStartingIntersection();
final Point end = getEndingIntersection();
record.setParam(PARAM_LEFT_POS, (int) bounds.getX());
record.setParam(PARAM_TOP_POS, (int) bounds.getY());
record.setParam(PARAM_RIGHT_POS, (int) (bounds.getX() + bounds.getWidth()));
record.setParam(PARAM_BOTTOM_POS, (int) (bounds.getY() + bounds.getHeight()));
record.setParam(PARAM_Y_START_POS, (int) (start.getY()));
record.setParam(PARAM_X_START_POS, (int) (start.getX()));
record.setParam(PARAM_Y_END_POS, (int) (end.getY()));
record.setParam(PARAM_X_END_POS, (int) (end.getX()));
return record;
}