本文整理匯總了Java中org.eclipse.draw2d.IFigure.setBorder方法的典型用法代碼示例。如果您正苦於以下問題:Java IFigure.setBorder方法的具體用法?Java IFigure.setBorder怎麽用?Java IFigure.setBorder使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.eclipse.draw2d.IFigure
的用法示例。
在下文中一共展示了IFigure.setBorder方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: handleIllustration
import org.eclipse.draw2d.IFigure; //導入方法依賴的package包/類
private void handleIllustration(GraphNode source, IFigure sourceFig, GraphNode target, IFigure targetFig, ReferenceModel reference) {
if(source.getData() instanceof ReferenceModel &&
target.getData() instanceof ArrayModel &&
targetFig instanceof ArrayPrimitiveFigure2) {
ReferenceModel r = (ReferenceModel) source.getData();
if(r.hasIndexVars()) {
IllustrationBorder b = new IllustrationBorder(r, (ArrayPrimitiveFigure2) targetFig);
targetFig.setBorder(b);
}
}
else if(source.getData() instanceof ArrayReferenceModel &&
target.getData() instanceof ArrayPrimitiveModel) {
ArrayReferenceModel array = (ArrayReferenceModel) source.getData();
targetFig.setBorder(new IllustrationBorder(reference, (ArrayPrimitiveFigure2) targetFig));
}
}
示例2: handleIllustration
import org.eclipse.draw2d.IFigure; //導入方法依賴的package包/類
private void handleIllustration(IReferenceModel reference, IFigure targetFig, ExceptionType exception) {
if(targetFig instanceof AbstractArrayFigure) {
if(reference.hasIndexVars()) {
IllustrationBorder b = new IllustrationBorder(reference, (AbstractArrayFigure<?>) targetFig, exception);
targetFig.setBorder(b);
}
else {
targetFig.setBorder(new MarginBorder(IllustrationBorder.getInsets(targetFig, targetFig instanceof ArrayPrimitiveFigure)));
}
}
}
示例3: handleIllustration
import org.eclipse.draw2d.IFigure; //導入方法依賴的package包/類
private boolean handleIllustration(IReferenceModel reference, IFigure targetFig) {
if(targetFig instanceof AbstractArrayFigure) {
if(reference.hasIndexVars()) {
IllustrationBorder b = new IllustrationBorder(reference, (AbstractArrayFigure<?>) targetFig);
targetFig.setBorder(b);
return true;
}
else
targetFig.setBorder(null);
}
return false;
}