Package 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
-
Field Summary
FieldsFields inherited from class com.mxgraph.canvas.mxGraphics2DCanvas
g, IMAGE_SCALING, rendererPane, shapes, TEXT_SHAPE_DEFAULT, TEXT_SHAPE_HTML, textShapesFields inherited from class com.mxgraph.canvas.mxBasicCanvas
DEFAULT_IMAGEBASEPATH, drawLabels, imageBasePath, imageCache, PRESERVE_IMAGE_ASPECT, scale, translate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(mxGraphComponent graphComponent, Rectangle rect, mxCellState state) protected voiddrawImageImpl(Image image, int x, int y) Overrides graphics call to use image observer.protected DimensiongetImageSize(Image image) Returns the size for the given image.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, Rectangle rect, mxCellState state) voidsetImageObserver(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, setGraphicsMethods inherited from class com.mxgraph.canvas.mxBasicCanvas
flushImageCache, getImageBasePath, getImageForStyle, getScale, getTranslate, isDrawLabels, loadImage, setDrawLabels, setImageBasePath, setScale, setTranslate
-
Field Details
-
imageObserver
-
-
Constructor Details
-
mxInteractiveCanvas
public mxInteractiveCanvas() -
mxInteractiveCanvas
-
-
Method Details
-
setImageObserver
-
getImageObserver
-
drawImageImpl
Overrides graphics call to use image observer.- Overrides:
drawImageImplin classmxGraphics2DCanvas
-
getImageSize
Returns the size for the given image.- Overrides:
getImageSizein classmxGraphics2DCanvas
-
contains
-
intersects
-
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.
-