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
- Direct Known Subclasses:
- CustomCanvas.SwingCanvas
public class mxInteractiveCanvas extends mxGraphics2DCanvas
-
-
Field Summary
-
Fields inherited from class com.mxgraph.canvas.mxGraphics2DCanvas
IMAGE_SCALING, TEXT_SHAPE_DEFAULT, TEXT_SHAPE_HTML
-
Fields inherited from class com.mxgraph.canvas.mxBasicCanvas
DEFAULT_IMAGEBASEPATH, PRESERVE_IMAGE_ASPECT
-
-
Constructor Summary
Constructors Constructor and Description mxInteractiveCanvas()mxInteractiveCanvas(java.awt.image.ImageObserver imageObserver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleancontains(mxGraphComponent graphComponent, java.awt.Rectangle rect, mxCellState state)java.awt.image.ImageObservergetImageObserver()booleanhitSwimlaneContent(mxGraphComponent graphComponent, mxCellState swimlane, int x, int y)Returns true if the given point is inside the content area of the given swimlane.booleanintersects(mxGraphComponent graphComponent, java.awt.Rectangle rect, mxCellState state)voidsetImageObserver(java.awt.image.ImageObserver value)-
Methods inherited from class com.mxgraph.canvas.mxGraphics2DCanvas
createFillPaint, createStroke, createTemporaryGraphics, drawCell, drawImage, drawImage, drawLabel, fillShape, fillShape, getGraphics, getRendererPane, getShape, getTextShape, paintPolyline, paintRectangle, putShape, putTextShape, setGraphics
-
Methods inherited from class com.mxgraph.canvas.mxBasicCanvas
flushImageCache, getImageBasePath, getImageForStyle, getScale, getTranslate, isDrawLabels, loadImage, setDrawLabels, setImageBasePath, setScale, setTranslate
-
-
-
-
Constructor Detail
-
mxInteractiveCanvas
public mxInteractiveCanvas()
-
mxInteractiveCanvas
public mxInteractiveCanvas(java.awt.image.ImageObserver imageObserver)
-
-
Method Detail
-
setImageObserver
public void setImageObserver(java.awt.image.ImageObserver value)
-
getImageObserver
public java.awt.image.ImageObserver getImageObserver()
-
contains
public boolean contains(mxGraphComponent graphComponent, java.awt.Rectangle rect, mxCellState state)
-
intersects
public boolean intersects(mxGraphComponent graphComponent, java.awt.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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG