Java Code Examples for org.eclipse.draw2d.IFigure#revalidate()
The following examples show how to use
org.eclipse.draw2d.IFigure#revalidate() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RootFigure.java From nebula with Eclipse Public License 2.0 | 5 votes |
private void removeFigure(IFigure figure) { final IFigure parent = figure.getParent(); parent.remove(figure); // TODO rather mark this area as damaged parent.revalidate(); }
Example 2
Source File: TableLayout.java From birt with Eclipse Public License 1.0 | 5 votes |
protected void setBoundsOfChild( IFigure parent, IFigure child, Rectangle bounds ) { parent.getClientArea( Rectangle.SINGLETON ); bounds.translate( Rectangle.SINGLETON.x, Rectangle.SINGLETON.y ); // comment out to force invalidation. // if ( !bounds.equals( child.getBounds( ) ) ) { child.setBounds( bounds ); if ( child.getLayoutManager( ) != null ) child.getLayoutManager( ).invalidate( ); child.revalidate( ); } }
Example 3
Source File: Animation.java From olca-app with Mozilla Public License 2.0 | 5 votes |
public static void end() { Iterator<IFigure> iter = initialStates.keySet().iterator(); while (iter.hasNext()) { IFigure f = iter.next(); f.revalidate(); f.setVisible(true); } initialStates = null; finalStates = null; PLAYBACK = false; viewport = null; }
Example 4
Source File: ProcessPart.java From olca-app with Mozilla Public License 2.0 | 5 votes |
@Override public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals(ProcessNode.CONNECTION)) refreshConnections(evt); else { GraphicalEditPart part = (GraphicalEditPart) getViewer().getContents(); IFigure figure = part.getFigure(); figure.revalidate(); } }
Example 5
Source File: RootFigure.java From nebula with Eclipse Public License 2.0 | 2 votes |
/** * Set a new constraint for a given figure. * * @param figure * figure to update * @param constraint * new constraint */ private void updateFigureConstraint(IFigure figure, Object constraint) { figure.getParent().getLayoutManager().setConstraint(figure, constraint); figure.revalidate(); }