Package com.mxgraph.shape
Class mxImageShape
- java.lang.Object
-
- com.mxgraph.shape.mxBasicShape
-
- com.mxgraph.shape.mxRectangleShape
-
- com.mxgraph.shape.mxImageShape
-
- All Implemented Interfaces:
mxIShape
- Direct Known Subclasses:
mxLabelShape
public class mxImageShape extends mxRectangleShape
A rectangular shape that contains a single image. See mxImageBundle for creating a lookup table with images which can then be referenced by key.
-
-
Constructor Summary
Constructors Constructor Description mxImageShape()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Color
getFillColor(mxGraphics2DCanvas canvas, mxCellState state)
java.awt.Rectangle
getImageBounds(mxGraphics2DCanvas canvas, mxCellState state)
java.lang.String
getImageForStyle(mxGraphics2DCanvas canvas, mxCellState state)
java.awt.Color
getStrokeColor(mxGraphics2DCanvas canvas, mxCellState state)
boolean
hasGradient(mxGraphics2DCanvas canvas, mxCellState state)
void
paintShape(mxGraphics2DCanvas canvas, mxCellState state)
-
Methods inherited from class com.mxgraph.shape.mxRectangleShape
getArcSize
-
Methods inherited from class com.mxgraph.shape.mxBasicShape
configureGraphics, createShape, getGradientBounds, hasShadow
-
-
-
-
Method Detail
-
paintShape
public void paintShape(mxGraphics2DCanvas canvas, mxCellState state)
- Specified by:
paintShape
in interfacemxIShape
- Overrides:
paintShape
in classmxRectangleShape
-
getImageBounds
public java.awt.Rectangle getImageBounds(mxGraphics2DCanvas canvas, mxCellState state)
-
hasGradient
public boolean hasGradient(mxGraphics2DCanvas canvas, mxCellState state)
- Overrides:
hasGradient
in classmxBasicShape
-
getImageForStyle
public java.lang.String getImageForStyle(mxGraphics2DCanvas canvas, mxCellState state)
-
getFillColor
public java.awt.Color getFillColor(mxGraphics2DCanvas canvas, mxCellState state)
- Overrides:
getFillColor
in classmxBasicShape
-
getStrokeColor
public java.awt.Color getStrokeColor(mxGraphics2DCanvas canvas, mxCellState state)
- Overrides:
getStrokeColor
in classmxBasicShape
-
-