本文整理汇总了Java中org.eclipse.draw2d.RectangleFigure.setLineStyle方法的典型用法代码示例。如果您正苦于以下问题:Java RectangleFigure.setLineStyle方法的具体用法?Java RectangleFigure.setLineStyle怎么用?Java RectangleFigure.setLineStyle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.draw2d.RectangleFigure
的用法示例。
在下文中一共展示了RectangleFigure.setLineStyle方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createDragSourceFeedbackFigure
import org.eclipse.draw2d.RectangleFigure; //导入方法依赖的package包/类
/**
* Creates the figure used for feedback.
*
* @return the new feedback figure
*/
protected IFigure createDragSourceFeedbackFigure() {
// Use a ghost rectangle for feedback
RectangleFigure r = new RectangleFigure();
FigureUtilities.makeGhostShape(r);
r.setLineStyle(Graphics.LINE_DOT);
r.setForegroundColor(ColorConstants.white);
r.setBounds(getInitialFeedbackBounds());
addFeedback(r);
return r;
}
示例2: createDragSourceFeedbackFigure
import org.eclipse.draw2d.RectangleFigure; //导入方法依赖的package包/类
/**
* Creates the figure used for feedback.
*
* @return the new feedback figure
*/
protected IFigure createDragSourceFeedbackFigure() {
// Use a ghost rectangle for feedback
RectangleFigure r = new ElementFeedbackFigure();
// FigureUtilities.makeGhostShape(r);
r.setLineStyle(Graphics.LINE_DOT);
r.setForegroundColor(ColorConstants.black);
r.setBounds(getInitialFeedbackBounds().resize(-1, -1));// new Rectangle(ifb.x, ifb.y, ifb.width -100,
// ifb.height));
addFeedback(r);
return r;
}
示例3: createDragSourceFeedbackFigure
import org.eclipse.draw2d.RectangleFigure; //导入方法依赖的package包/类
@Override
protected IFigure createDragSourceFeedbackFigure() {
// Use a ghost rectangle for feedback
RectangleFigure r = new RectangleFigure();
r.setFill(false);
r.setLineStyle(Graphics.LINE_DOT);
r.setForegroundColor(ColorConstants.black);
r.setLineWidth(1);
r.setBounds(getInitialFeedbackBounds());
addFeedback(r);
return r;
}
示例4: createDragSourceFeedbackFigure
import org.eclipse.draw2d.RectangleFigure; //导入方法依赖的package包/类
/**
* Creates the figure used for feedback.
*
* @return the new feedback figure
*/
protected IFigure createDragSourceFeedbackFigure() {
// Use a ghost rectangle for feedback
RectangleFigure r = new RectangleFigure();
FigureUtilities.makeGhostShape(r);
r.setLineStyle(Graphics.LINE_DOT);
r.setForegroundColor(ColorConstants.white);
r.setBounds(getInitialFeedbackBounds());
addFeedback(r);
return r;
}