|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.yworks.yfiles.server.tiles.servlet.action.ActionContext
This class implements an immutable object which contains the client side context for a server side action. This can include a graph, a set of nodes, whether a hit test instance is known to the client side and so on.
Constructor Summary | |
ActionContext(javax.servlet.http.HttpServletRequest request)
creates a new instance from the client side request. |
Method Summary | |
YDimension |
getClientSize()
returns the size of the client side canvas in view coordinates, if available. |
String |
getCustomParameter()
returns the custom parameter specified on the client side, if available. |
EdgeList |
getEdges()
returns the edges, which were specified on the client side. |
Graph2D |
getGraph()
returns the graph for the action, if available. |
String |
getGraphName()
returns the name of the graph for the action, if available. |
int |
getHitTypes()
returns the event mask of the hit test available at the client side or 0. |
YPoint |
getMousePosition()
returns the mouse position in world coordinates on the client side, if available. |
NodeList |
getNodes()
returns the nodes, which were specified on the client side. |
javax.servlet.http.HttpServletRequest |
getRequest()
returns the request that triggered the action. |
javax.servlet.http.HttpSession |
getSession()
returns the session of the request that triggered the action. |
ViewPort |
getViewPort()
returns the view port of the canvas on the client side, if available. |
boolean |
isCanvasPresent()
returns whether a canvas instance is available on the client side. |
boolean |
isHierarchyPresent()
returns whether a hierarchy manager is available at the client side. |
boolean |
isHitTestPresent()
returns whether a hit test is available at the client side. |
boolean |
isSelectionPresent()
returns whether a selection is available at the client side. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ActionContext(javax.servlet.http.HttpServletRequest request)
request
- a request for a custom server actionMethod Detail |
public javax.servlet.http.HttpSession getSession()
public javax.servlet.http.HttpServletRequest getRequest()
public String getGraphName()
public Graph2D getGraph()
public NodeList getNodes()
public EdgeList getEdges()
public YPoint getMousePosition()
null
public ViewPort getViewPort()
null
public YDimension getClientSize()
null
public String getCustomParameter()
null
public boolean isCanvasPresent()
public boolean isHierarchyPresent()
public boolean isHitTestPresent()
public boolean isSelectionPresent()
public int getHitTypes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |