Ejemplo n.º 1
0
 /** Reset the layout constraint, and revalidate the content pane */
 protected void refreshVisuals() {
   TableFigure tableFigure = (TableFigure) getFigure();
   Point location = tableFigure.getLocation();
   SchemaDiagramPart parent = (SchemaDiagramPart) getParent();
   Rectangle constraint = new Rectangle(location.x, location.y, -1, -1);
   parent.setLayoutConstraint(this, tableFigure, constraint);
 }
Ejemplo n.º 2
0
 /** handles change in bounds, to be overridden by subclass */
 protected void handleBoundsChange(PropertyChangeEvent evt) {
   TableFigure tableFigure = (TableFigure) getFigure();
   Rectangle constraint = (Rectangle) evt.getNewValue();
   SchemaDiagramPart parent = (SchemaDiagramPart) getParent();
   parent.setLayoutConstraint(this, tableFigure, constraint);
 }