public void saveNotePadMeta( NotePadMeta note, ObjectId id_transformation ) throws KettleException {
try {
Point location = note.getLocation();
int x = location == null ? -1 : location.x;
int y = location == null ? -1 : location.y;
note.setObjectId( insertNote(
note.getNote(), x, y, note.getWidth(), note.getHeight(), note.getFontName(), note.getFontSize(), note
.isFontBold(), note.isFontItalic(), note.getFontColorRed(), note.getFontColorGreen(), note
.getFontColorBlue(), note.getBackGroundColorRed(), note.getBackGroundColorGreen(), note
.getBackGroundColorBlue(), note.getBorderColorRed(), note.getBorderColorGreen(), note
.getBorderColorBlue(), note.isDrawShadow() ) );
} catch ( KettleDatabaseException dbe ) {
throw new KettleException( "Unable to save notepad in repository (id_transformation="
+ id_transformation + ")", dbe );
}
}