refactored usage awt.Dimension to archimedes.geometry.Size