本文整理匯總了Java中org.insightech.er.editor.view.figure.NoteFigure類的典型用法代碼示例。如果您正苦於以下問題:Java NoteFigure類的具體用法?Java NoteFigure怎麽用?Java NoteFigure使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
NoteFigure類屬於org.insightech.er.editor.view.figure包,在下文中一共展示了NoteFigure類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: relocate
import org.insightech.er.editor.view.figure.NoteFigure; //導入依賴的package包/類
@Override
public void relocate(final CellEditor cellEditor) {
final Text text = (Text) cellEditor.getControl();
final Rectangle rect = figure.getBounds().getCopy();
figure.translateToAbsolute(rect);
text.setBounds(rect.x + NoteFigure.RETURN_WIDTH, rect.y + NoteFigure.RETURN_WIDTH, rect.width - NoteFigure.RETURN_WIDTH * 2, rect.height - NoteFigure.RETURN_WIDTH * 2);
}
示例2: createFigure
import org.insightech.er.editor.view.figure.NoteFigure; //導入依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
protected IFigure createFigure() {
final NoteFigure noteFigure = new NoteFigure();
changeFont(noteFigure);
return noteFigure;
}
示例3: doRefreshVisuals
import org.insightech.er.editor.view.figure.NoteFigure; //導入依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
public void doRefreshVisuals() {
final Note note = (Note) getModel();
final NoteFigure figure = (NoteFigure) getFigure();
figure.setText(note.getText(), note.getColor());
}
示例4: refreshVisuals
import org.insightech.er.editor.view.figure.NoteFigure; //導入依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
protected void refreshVisuals() {
final RemovedNote removedNote = (RemovedNote) getModel();
final NoteFigure figure = (NoteFigure) getFigure();
final Note note = (Note) removedNote.getNodeElement();
figure.setText(note.getText(), note.getColor());
super.refreshVisuals();
}
示例5: relocate
import org.insightech.er.editor.view.figure.NoteFigure; //導入依賴的package包/類
public void relocate(CellEditor cellEditor) {
Text text = (Text) cellEditor.getControl();
Rectangle rect = this.figure.getBounds().getCopy();
this.figure.translateToAbsolute(rect);
text.setBounds(rect.x + NoteFigure.RETURN_WIDTH, rect.y
+ NoteFigure.RETURN_WIDTH, rect.width - NoteFigure.RETURN_WIDTH
* 2, rect.height - NoteFigure.RETURN_WIDTH * 2);
}
示例6: createFigure
import org.insightech.er.editor.view.figure.NoteFigure; //導入依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
protected IFigure createFigure() {
NoteFigure noteFigure = new NoteFigure();
this.changeFont(noteFigure);
return noteFigure;
}
示例7: doRefreshVisuals
import org.insightech.er.editor.view.figure.NoteFigure; //導入依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
public void doRefreshVisuals() {
Note note = (Note) this.getModel();
NoteFigure figure = (NoteFigure) this.getFigure();
figure.setText(note.getText(), note.getColor());
}
示例8: refreshVisuals
import org.insightech.er.editor.view.figure.NoteFigure; //導入依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
protected void refreshVisuals() {
RemovedNote removedNote = (RemovedNote) this.getModel();
NoteFigure figure = (NoteFigure) this.getFigure();
Note note = (Note) removedNote.getNodeElement();
figure.setText(note.getText(), note.getColor());
super.refreshVisuals();
}