當前位置: 首頁>>代碼示例>>Java>>正文


Java NoteFigure類代碼示例

本文整理匯總了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);
}
 
開發者ID:roundrop,項目名稱:ermasterr,代碼行數:10,代碼來源:NoteEditorLocator.java

示例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;
}
 
開發者ID:roundrop,項目名稱:ermasterr,代碼行數:12,代碼來源:NoteEditPart.java

示例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());
}
 
開發者ID:roundrop,項目名稱:ermasterr,代碼行數:12,代碼來源:NoteEditPart.java

示例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();
}
 
開發者ID:roundrop,項目名稱:ermasterr,代碼行數:15,代碼來源:RemovedNoteEditPart.java

示例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);
}
 
開發者ID:kozake,項目名稱:ermaster-k,代碼行數:11,代碼來源:NoteEditorLocator.java

示例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;
}
 
開發者ID:kozake,項目名稱:ermaster-k,代碼行數:12,代碼來源:NoteEditPart.java

示例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());
}
 
開發者ID:kozake,項目名稱:ermaster-k,代碼行數:12,代碼來源:NoteEditPart.java

示例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();
}
 
開發者ID:kozake,項目名稱:ermaster-k,代碼行數:15,代碼來源:RemovedNoteEditPart.java


注:本文中的org.insightech.er.editor.view.figure.NoteFigure類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。