new NotePadMeta( "This is a generated slave transformation.\nIt will be run on slave server: " + slaveServer, 0, 0, -1, -1 ); transMeta.addNote( slaveNote ); new NotePadMeta( "This is a generated master transformation.\nIt will be run on server: " + getMasterServer(), 0, 0, -1, -1 ); transMeta.addNote( masterNote );
private void ok() { notePadMeta = new NotePadMeta(); if ( wDesc.getText() != null ) { notePadMeta.setNote( wDesc.getText() ); } if ( wFontName.getText() != null ) { notePadMeta.setFontName( wFontName.getText() ); } notePadMeta.setFontSize( wFontSize.getSelection() ); notePadMeta.setFontBold( wFontBold.getSelection() ); notePadMeta.setFontItalic( wFontItalic.getSelection() ); // font color notePadMeta.setFontColorRed( wFontColor.getBackground().getRed() ); notePadMeta.setFontColorGreen( wFontColor.getBackground().getGreen() ); notePadMeta.setFontColorBlue( wFontColor.getBackground().getBlue() ); // background color notePadMeta.setBackGroundColorRed( wBackGroundColor.getBackground().getRed() ); notePadMeta.setBackGroundColorGreen( wBackGroundColor.getBackground().getGreen() ); notePadMeta.setBackGroundColorBlue( wBackGroundColor.getBackground().getBlue() ); // border color notePadMeta.setBorderColorRed( wBorderColor.getBackground().getRed() ); notePadMeta.setBorderColorGreen( wBorderColor.getBackground().getGreen() ); notePadMeta.setBorderColorBlue( wBorderColor.getBackground().getBlue() ); notePadMeta.setDrawShadow( wDrawShadow.getSelection() ); dispose(); }
public void newNote() { String title = BaseMessages.getString( PKG, "JobGraph.Dialog.EditNote.Title" ); NotePadDialog dd = new NotePadDialog( jobMeta, shell, title ); NotePadMeta n = dd.open(); if ( n != null ) { NotePadMeta npi = new NotePadMeta( n.getNote(), lastclick.x, lastclick.y, ConstUI.NOTE_MIN_SIZE, ConstUI.NOTE_MIN_SIZE, n .getFontName(), n.getFontSize(), n.isFontBold(), n.isFontItalic(), n.getFontColorRed(), n .getFontColorGreen(), n.getFontColorBlue(), n.getBackGroundColorRed(), n.getBackGroundColorGreen(), n .getBackGroundColorBlue(), n.getBorderColorRed(), n.getBorderColorGreen(), n.getBorderColorBlue(), n .isDrawShadow() ); jobMeta.addNote( npi ); spoon.addUndoNew( jobMeta, new NotePadMeta[] { npi }, new int[] { jobMeta.indexOfNote( npi ) } ); redraw(); } }
public void newNote() { selectionRegion = null; String title = BaseMessages.getString( PKG, "TransGraph.Dialog.NoteEditor.Title" ); NotePadDialog dd = new NotePadDialog( transMeta, shell, title ); NotePadMeta n = dd.open(); if ( n != null ) { NotePadMeta npi = new NotePadMeta( n.getNote(), lastclick.x, lastclick.y, ConstUI.NOTE_MIN_SIZE, ConstUI.NOTE_MIN_SIZE, n .getFontName(), n.getFontSize(), n.isFontBold(), n.isFontItalic(), n.getFontColorRed(), n .getFontColorGreen(), n.getFontColorBlue(), n.getBackGroundColorRed(), n.getBackGroundColorGreen(), n .getBackGroundColorBlue(), n.getBorderColorRed(), n.getBorderColorGreen(), n.getBorderColorBlue(), n .isDrawShadow() ); transMeta.addNote( npi ); spoon.addUndoNew( transMeta, new NotePadMeta[] { npi }, new int[] { transMeta.indexOfNote( npi ) } ); redraw(); } }
String xml = getString( noteNode, PROP_XML ); jobMeta .addNote( new NotePadMeta( XMLHandler.getSubNode( XMLHandler.loadXMLString( xml ), NotePadMeta.XML_TAG ) ) );
for ( int i = 0; i < nrnotes; i++ ) { Node notepadnode = XMLHandler.getSubNodeByNr( notepadsnode, "notepad", i ); NotePadMeta ni = new NotePadMeta( notepadnode ); notes.add( ni );
notes[i] = new NotePadMeta( noteNode ); Point p = notes[i].getLocation(); notes[i].setLocation( p.x + offset.x, p.y + offset.y );
BaseMessages.getString( PKG, "Spoon.RipDB.Monitor.Note3" ) + tables[i] + BaseMessages.getString( PKG, "Spoon.RipDB.Monitor.Note4" ) + targetDbInfo + "]"; NotePadMeta ni = new NotePadMeta( note, 150, 10, -1, -1 ); transMeta.addNote( ni );
String xml = getString( noteNode, PROP_XML ); transMeta .addNote( new NotePadMeta( XMLHandler.getSubNode( XMLHandler.loadXMLString( xml ), NotePadMeta.XML_TAG ) ) );
public NotePadMeta loadNotePadMeta( ObjectId id_note ) throws KettleException { NotePadMeta note = new NotePadMeta(); try { note.setObjectId( id_note );
for ( int i = 0; i < nrnotes; i++ ) { Node notepadnode = XMLHandler.getSubNodeByNr( notepadsnode, NotePadMeta.XML_TAG, i ); NotePadMeta ni = new NotePadMeta( notepadnode ); notes.add( ni );
NotePadMeta ni = new NotePadMeta( note, 150, 10, -1, -1 ); meta.addNote( ni );
/** * Loads a NotePadMeta object from a CWM model using the supplied CWM Description object * * @param cwm * @param cwmDescription * @return a newly created NotePadMeta object */ public NotePadMeta getNotePadMeta( CWM cwm, CwmDescription cwmDescription ) { NotePadMeta notePadMeta = new NotePadMeta(); // The text notePadMeta.setNote( cwmDescription.getBody() ); // The position & dimensions notePadMeta.setLocation( cwm.getPositionX( cwmDescription ), cwm.getPositionY( cwmDescription ) ); notePadMeta.setWidth( cwm.getPositionWidth( cwmDescription ) ); notePadMeta.setHeight( cwm.getPositionHeight( cwmDescription ) ); return notePadMeta; }