graphlab.gui.plugins.main.core.actions.zoom
Class SetCenter

java.lang.Object
  extended by graphlab.main.core.action.AbstractAction
      extended by graphlab.gui.plugins.main.core.actions.zoom.SetCenter
All Implemented Interfaces:
Action, Notifiable

public class SetCenter
extends AbstractAction

author: Reza Mohammadi


Field Summary
 
Fields inherited from class graphlab.main.core.action.AbstractAction
listeningEvents
 
Constructor Summary
SetCenter(BlackBoard bb)
           
 
Method Summary
static java.awt.Point getCenter(Graph graph)
           
static void moveCenter(Graph graph, int dx, int dy)
           
 void performJob(java.lang.String name)
          like Action
static void setCenter(Graph graph, double x, double y)
           
 
Methods inherited from class graphlab.main.core.action.AbstractAction
disable, doJob, enable, getBlackBoard, isEnable, setBlackBoard
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetCenter

public SetCenter(BlackBoard bb)
Method Detail

performJob

public void performJob(java.lang.String name)
Description copied from class: AbstractAction
like Action

Specified by:
performJob in class AbstractAction

moveCenter

public static void moveCenter(Graph graph,
                              int dx,
                              int dy)

getCenter

public static java.awt.Point getCenter(Graph graph)

setCenter

public static void setCenter(Graph graph,
                             double x,
                             double y)