org.vectomatic.client.rep.controller
Class ContextualMenuVisitor

java.lang.Object
  extended by org.vectomatic.client.rep.controller.ContextualMenuVisitor
All Implemented Interfaces:
IShapeVisitor

public class ContextualMenuVisitor
extends Object
implements IShapeVisitor

Shape visitor implementation to set the items in the contextual menu depending on the selection


Constructor Summary
ContextualMenuVisitor(DeleteController deleteController, UngroupController ungroupController, GroupController groupController, OrderingController orderingController, DrawingView view)
           
 
Method Summary
 com.google.gwt.user.client.ui.MenuBar getContextualMenu(ShapeSelection selection)
           
 void visitEllipse(Ellipse ellipse)
           
 void visitPath(Path path)
           
 void visitPolyline(Polyline polyline)
           
 void visitRect(Rect rect)
           
 void visitShapeGroup(ShapeGroup group)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextualMenuVisitor

public ContextualMenuVisitor(DeleteController deleteController,
                             UngroupController ungroupController,
                             GroupController groupController,
                             OrderingController orderingController,
                             DrawingView view)
Method Detail

getContextualMenu

public com.google.gwt.user.client.ui.MenuBar getContextualMenu(ShapeSelection selection)

visitEllipse

public void visitEllipse(Ellipse ellipse)
Specified by:
visitEllipse in interface IShapeVisitor

visitPolyline

public void visitPolyline(Polyline polyline)
Specified by:
visitPolyline in interface IShapeVisitor

visitRect

public void visitRect(Rect rect)
Specified by:
visitRect in interface IShapeVisitor

visitShapeGroup

public void visitShapeGroup(ShapeGroup group)
Specified by:
visitShapeGroup in interface IShapeVisitor

visitPath

public void visitPath(Path path)
Specified by:
visitPath in interface IShapeVisitor


Copyright © 2010. All Rights Reserved.