001    // GraphLab Project: http://graphlab.sharif.edu
002    // Copyright (C) 2008 Mathematical Science Department of Sharif University of Technology
003    // Distributed under the terms of the GNU General Public License (GPL): http://www.gnu.org/licenses/
004    
005    package graphlab.plugins.main.select;
006    
007    import graphlab.graph.graph.GraphPoint;
008    import graphlab.graph.graph.VertexModel;
009    
010    /**
011     * @author Azin Azadi
012     */
013    public class ScaleInSelection extends ScaleOutSelection {
014        public String getName() {
015            return "Scale In Selection";
016        }
017    
018        public String getDescription() {
019            return "Expands the selection";
020        }
021    
022        protected void setNewLocation(VertexModel v, GraphPoint loc, double x, double y) {
023            v.setLocation(new GraphPoint(loc.x + x * 1.25, loc.y + y * 1.25));
024        }
025    }