public class mxScaledLabelShape extends com.mxgraph.shape.mxRectangleShape
We re-used the JGraphX classes as far as we could. It turned out we only need to recalculate the image bounds to have them scaling with the cell size.
| Modifier and Type | Field and Description |
|---|---|
static String |
SHAPE_NAME |
| Constructor and Description |
|---|
mxScaledLabelShape() |
| Modifier and Type | Method and Description |
|---|---|
void |
paintShape(com.mxgraph.canvas.mxGraphics2DCanvas canvas,
com.mxgraph.view.mxCellState state) |
getArcSizeconfigureGraphics, createShape, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadowpublic static final String SHAPE_NAME
public void paintShape(com.mxgraph.canvas.mxGraphics2DCanvas canvas, com.mxgraph.view.mxCellState state)
paintShape in interface com.mxgraph.shape.mxIShapepaintShape in class com.mxgraph.shape.mxRectangleShapeCopyright © 2010–2024 TrackMate. All rights reserved.