com.mxgraph.swing.view
Class mxInteractiveCanvas
java.lang.Object
com.mxgraph.canvas.mxBasicCanvas
com.mxgraph.canvas.mxGraphics2DCanvas
com.mxgraph.swing.view.mxInteractiveCanvas
- All Implemented Interfaces:
- mxICanvas
public class mxInteractiveCanvas
- extends mxGraphics2DCanvas
Methods inherited from class com.mxgraph.canvas.mxGraphics2DCanvas |
createArrow, drawActor, drawArrow, drawCloud, drawConnector, drawCylinder, drawEdge, drawHexagon, drawHtmlText, drawImage, drawLabel, drawLine, drawLine, drawMarker, drawOval, drawPath, drawPlainText, drawPolygon, drawRect, drawRhombus, drawShape, drawTriangle, drawVertex, getArcSize, getFillPaint, getGraphics, loadImage, setGraphics |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mxInteractiveCanvas
public mxInteractiveCanvas()
contains
public boolean contains(mxGraphComponent graphComponent,
Rectangle rect,
mxCellState state)
intersects
public boolean intersects(mxGraphComponent graphComponent,
Rectangle rect,
mxCellState state)
hitSwimlaneContent
public boolean hitSwimlaneContent(mxGraphComponent graphComponent,
mxCellState swimlane,
int x,
int y)
- Returns true if the given point is inside the content area of the given
swimlane. (The content area of swimlanes is transparent to events.) This
implementation does not check if the given state is a swimlane, it is
assumed that the caller has checked this before using this method.
Copyright (c) 2008 Gaudenz Alder. All rights reserved.