public class mxInteractiveCanvas extends mxGraphics2DCanvas
Modifier and Type | Field and Description |
---|---|
protected java.awt.image.ImageObserver |
imageObserver |
g, IMAGE_SCALING, rendererPane, shapes, TEXT_SHAPE_DEFAULT, TEXT_SHAPE_HTML, textShapes
DEFAULT_IMAGEBASEPATH, drawLabels, imageBasePath, imageCache, PRESERVE_IMAGE_ASPECT, scale, translate
Constructor and Description |
---|
mxInteractiveCanvas() |
mxInteractiveCanvas(java.awt.image.ImageObserver imageObserver) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(mxGraphComponent graphComponent,
java.awt.Rectangle rect,
mxCellState state) |
protected void |
drawImageImpl(java.awt.Image image,
int x,
int y)
Overrides graphics call to use image observer.
|
java.awt.image.ImageObserver |
getImageObserver() |
protected java.awt.Dimension |
getImageSize(java.awt.Image image)
Returns the size for the given image.
|
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.
|
boolean |
intersects(mxGraphComponent graphComponent,
java.awt.Rectangle rect,
mxCellState state) |
void |
setImageObserver(java.awt.image.ImageObserver value) |
createFillPaint, createStroke, createTemporaryGraphics, drawCell, drawImage, drawImage, drawLabel, fillShape, fillShape, getGraphics, getRendererPane, getShape, getTextShape, paintPolyline, paintRectangle, putShape, putTextShape, setGraphics
flushImageCache, getImageBasePath, getImageForStyle, getScale, getTranslate, isDrawLabels, loadImage, setDrawLabels, setImageBasePath, setScale, setTranslate
public mxInteractiveCanvas()
public mxInteractiveCanvas(java.awt.image.ImageObserver imageObserver)
public void setImageObserver(java.awt.image.ImageObserver value)
public java.awt.image.ImageObserver getImageObserver()
protected void drawImageImpl(java.awt.Image image, int x, int y)
drawImageImpl
in class mxGraphics2DCanvas
protected java.awt.Dimension getImageSize(java.awt.Image image)
getImageSize
in class mxGraphics2DCanvas
public boolean contains(mxGraphComponent graphComponent, java.awt.Rectangle rect, mxCellState state)
public boolean intersects(mxGraphComponent graphComponent, java.awt.Rectangle rect, mxCellState state)
public boolean hitSwimlaneContent(mxGraphComponent graphComponent, mxCellState swimlane, int x, int y)
Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.