예제 #1
0
  /** @see prefuse.visual.VisualItem#validateBounds() */
  public Rectangle2D validateBounds() {
    if (isValidated()) return getBounds();

    Visualization v = getVisualization();

    // set the new bounds from the renderer and validate
    getRenderer().setBounds(this);
    setValidated(true);

    // report damage from the new bounds and return
    Rectangle2D bounds = getBounds();
    v.damageReport(this, bounds);
    return bounds;
  }