public class mxInteractiveCanvas extends mxGraphics2DCanvas
Modifier and Type | Field and Description |
---|---|
protected 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(ImageObserver imageObserver) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(mxGraphComponent graphComponent,
Rectangle rect,
mxCellState state) |
protected void |
drawImageImpl(Image image,
int x,
int y)
Overrides graphics call to use image observer.
|
ImageObserver |
getImageObserver() |
protected Dimension |
getImageSize(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,
Rectangle rect,
mxCellState state) |
void |
setImageObserver(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
protected ImageObserver imageObserver
public mxInteractiveCanvas()
public mxInteractiveCanvas(ImageObserver imageObserver)
public void setImageObserver(ImageObserver value)
public ImageObserver getImageObserver()
protected void drawImageImpl(Image image, int x, int y)
drawImageImpl
in class mxGraphics2DCanvas
protected Dimension getImageSize(Image image)
getImageSize
in class mxGraphics2DCanvas
public boolean contains(mxGraphComponent graphComponent, Rectangle rect, mxCellState state)
public boolean intersects(mxGraphComponent graphComponent, 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.