/** * Applies <code>change</code> to the attributes of the view and calls * update. * * @param change * a map of attribute changes to apply * @return the undo map that reverses this change */ public Map changeAttributes(GraphLayoutCache cache, Map change) { if (change != null) { Map undo = attributes.applyMap(change); update(cache); return undo; } return null; }
/** * Overrides the parent method to udpate the cached points. */ public void update(GraphLayoutCache cache) { super.update(cache); bounds = GraphConstants.getBounds(allAttributes); if (bounds == null) { bounds = allAttributes.createRect(defaultBounds); GraphConstants.setBounds(allAttributes, bounds); } groupBounds = null; }
super.update(cache);