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 ); } } ); }
@Override public void refreshVisuals() { Shape rect = (Shape) getFigure(); if (Display.getCurrent() != null) { setupFigure(rect); rect.invalidate(); rect.repaint(); } }
/** * Sets the line width. * * @param width the line width. */ public void setLineWidthEx(int width) { if (width < 0) { width = 1; } ((Shape) getPrimaryShape()).setLineWidth(width); }
private void setTri ( final Shape tri, final String string ) { tri.setOutline ( isActive ( string ) ); }
@Override public Shape getPropertyFigure () { return this.figure; }
@Override protected Shape getPropertyFigure () { return this.figure; }
/** * @generated */ protected void setLineWidth(int width) { if (primaryShape instanceof Shape) { ((Shape) primaryShape).setLineWidth(width); } }
/** * @generated */ protected void setLineType(int style) { if (primaryShape instanceof Shape) { ((Shape) primaryShape).setLineStyle(style); } }