本文整理汇总了Java中org.eclipse.draw2d.Shape类的典型用法代码示例。如果您正苦于以下问题:Java Shape类的具体用法?Java Shape怎么用?Java Shape使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Shape类属于org.eclipse.draw2d包,在下文中一共展示了Shape类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: activate
import org.eclipse.draw2d.Shape; //导入依赖的package包/类
private void activate ( final String tag, final Shape shape )
{
shape.addMouseListener ( new MouseListener.Stub () {
@Override
public void mouseReleased ( final MouseEvent me )
{
GenericLevelPresets.this.triggerAction ( tag );
}
} );
}
示例2: refreshVisuals
import org.eclipse.draw2d.Shape; //导入依赖的package包/类
@Override
public void refreshVisuals() {
Shape rect = (Shape) getFigure();
if (Display.getCurrent() != null) {
setupFigure(rect);
rect.invalidate();
rect.repaint();
}
}
示例3: setLineWidthEx
import org.eclipse.draw2d.Shape; //导入依赖的package包/类
/**
* Sets the line width.
*
* @param width the line width.
*/
public void setLineWidthEx(int width) {
if (width < 0) {
width = 1;
}
((Shape) getPrimaryShape()).setLineWidth(width);
}
示例4: setTri
import org.eclipse.draw2d.Shape; //导入依赖的package包/类
private void setTri ( final Shape tri, final String string )
{
tri.setOutline ( isActive ( string ) );
}
示例5: getPropertyFigure
import org.eclipse.draw2d.Shape; //导入依赖的package包/类
@Override
public Shape getPropertyFigure ()
{
return this.figure;
}
示例6: getPropertyFigure
import org.eclipse.draw2d.Shape; //导入依赖的package包/类
@Override
protected Shape getPropertyFigure ()
{
return this.figure;
}
示例7: setLineWidth
import org.eclipse.draw2d.Shape; //导入依赖的package包/类
/**
* @generated
*/
protected void setLineWidth(int width) {
if (primaryShape instanceof Shape) {
((Shape) primaryShape).setLineWidth(width);
}
}
示例8: setLineType
import org.eclipse.draw2d.Shape; //导入依赖的package包/类
/**
* @generated
*/
protected void setLineType(int style) {
if (primaryShape instanceof Shape) {
((Shape) primaryShape).setLineStyle(style);
}
}