@Override public void addNotify () { super.addNotify (); start (); }
@Override public void removeNotify () { stop (); super.removeNotify (); } };
/** * Initiate. * * @param context * {@link OfficeStartFigureContext}. */ public StandardOfficeStartFigure(OfficeStartFigureContext context) { Ellipse figure = new Ellipse(); figure.setBackgroundColor(StandardOfficeFloorColours.BLACK()); figure.setOpaque(true); figure.setOutline(false); figure.setSize(15, 15); this.setFigure(figure); }
this.isPublic = new Ellipse(); this.isPublic.setBackgroundColor(colour); this.isPublic.setForegroundColor(colour); this.isPublic.setOpaque(true); this.isPublic.setSize(6, 6); container.add(this.isPublic);
public EllipseController ( final SymbolController controller, final org.eclipse.scada.vi.model.Ellipse element, final ResourceManager manager ) { super ( controller, manager ); final PrecisionRectangle rect = new PrecisionRectangle (); if ( element.getSize () != null ) { rect.setPreciseSize ( element.getSize ().getWidth (), element.getSize ().getHeight () ); } this.figure = new Ellipse () { @Override public void addNotify () { super.addNotify (); start (); } @Override public void removeNotify () { stop (); super.removeNotify (); } }; this.figure.setBounds ( rect ); controller.addElement ( element, this ); applyCommon ( element ); }
this.isPublicFigure = null; } else { this.isPublicFigure = new Ellipse(); this.isPublicFigure.setSize(6, 6); this.isPublicFigure.setBackgroundColor(StandardOfficeFloorColours.BLACK());
Ellipse point = new Ellipse(); point.setBackgroundColor(colour); point.setForegroundColor(colour); point.setAlpha(100); point.setOpaque(true); point.setSize(SIZE, SIZE);
public EllipseController ( final SymbolController controller, final org.eclipse.scada.vi.model.Ellipse element, final ResourceManager manager ) { super ( controller, manager ); final PrecisionRectangle rect = new PrecisionRectangle (); if ( element.getSize () != null ) { rect.setPreciseSize ( element.getSize ().getWidth (), element.getSize ().getHeight () ); } this.figure = new Ellipse () { @Override public void addNotify () { super.addNotify (); start (); } @Override public void removeNotify () { stop (); super.removeNotify (); } }; this.figure.setBounds ( rect ); controller.addElement ( element, this ); applyCommon ( element ); }
this.isPublicFigure = null; } else { this.isPublicFigure = new Ellipse(); this.isPublicFigure.setSize(6, 6); this.isPublicFigure.setBackgroundColor(StandardOfficeFloorColours
@Override public void removeNotify () { stop (); super.removeNotify (); } };
@Override public void addNotify () { super.addNotify (); start (); }