mxImageShape (JGraph X 2.1.0.7 API Specification)
Date: 2013-07-31

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JGraph X 2.1.0.7
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Constructor Summary
`mxImageShape()`

Method Summary
`Color` | `getFillColor(mxGraphics2DCanvas canvas, mxCellState state)`
`Rectangle` | `getImageBounds(mxGraphics2DCanvas canvas, mxCellState state)`
`String` | `getImageForStyle(mxGraphics2DCanvas canvas, mxCellState state)`
`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`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### mxImageShape

    public mxImageShape()

Method Detail

### paintShape

    public void paintShape(mxGraphics2DCanvas canvas,
                           mxCellState state)

  Specified by:
    `paintShape` in interface `mxIShape`
  Overrides:
    `paintShape` in class `mxRectangleShape`

### getImageBounds

    public Rectangle getImageBounds(mxGraphics2DCanvas canvas,
                                    mxCellState state)

### hasGradient

    public boolean hasGradient(mxGraphics2DCanvas canvas,
                               mxCellState state)

  Overrides:
    `hasGradient` in class `mxBasicShape`

### getImageForStyle

    public String getImageForStyle(mxGraphics2DCanvas canvas,
                                   mxCellState state)

### getFillColor

    public Color getFillColor(mxGraphics2DCanvas canvas,
                              mxCellState state)

  Overrides:
    `getFillColor` in class `mxBasicShape`

### getStrokeColor

    public Color getStrokeColor(mxGraphics2DCanvas canvas,
                                mxCellState state)

  Overrides:
    `getStrokeColor` in class `mxBasicShape`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JGraph X 2.1.0.7
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (c) 2010 Gaudenz Alder. All rights reserved.