src/main/java/com/mxgraph/shape/mxSwimlaneShape.java
protected mxGraphicsCanvas2D configureCanvas(mxGraphics2DCanvas canvas,
			mxCellState state, mxGraphicsCanvas2D c)
	{
		c.setShadow(hasShadow(canvas, state));
		c.setStrokeColor(mxUtils.getString(state.getStyle(),
				mxConstants.STYLE_STROKECOLOR, mxConstants.NONE));
		c.setStrokeWidth(mxUtils.getInt(state.getStyle(),
				mxConstants.STYLE_STROKEWIDTH, 1));
		c.setDashed(mxUtils.isTrue(state.getStyle(), mxConstants.STYLE_DASHED,
				false));

		String fill = mxUtils.getString(state.getStyle(),
				mxConstants.STYLE_FILLCOLOR, mxConstants.NONE);
		String gradient = mxUtils.getString(state.getStyle(),
				mxConstants.STYLE_GRADIENTCOLOR, mxConstants.NONE);

		if (!mxConstants.NONE.equals(fill)
				&& !mxConstants.NONE.equals(gradient))
		{
			mxRectangle b = getGradientBounds(canvas, state);
			c.setGradient(fill, gradient, b.getX(), b.getY(), b.getWidth(), b
					.getHeight(), mxUtils.getString(state.getStyle(),
					mxConstants.STYLE_GRADIENT_DIRECTION,
					mxConstants.DIRECTION_NORTH), 1, 1);
		}
		else
		{
			c.setFillColor(fill);
		}

		return c;
	}
/**
	 * Helper method to configure the given wrapper canvas.
	 */
Helper method to configure the given wrapper canvas.
Helper method to configure the given wrapper canvas .
protected mxGraphicsCanvas2D configureCanvas(mxGraphics2DCanvas canvas,
			mxCellState state, mxGraphicsCanvas2D c)
	{
		c.setShadow(hasShadow(canvas, state));
		c.setStrokeColor(mxUtils.getString(state.getStyle(),
				mxConstants.STYLE_STROKECOLOR, mxConstants.NONE));
		c.setStrokeWidth(mxUtils.getInt(state.getStyle(),
				mxConstants.STYLE_STROKEWIDTH, 1));
		c.setDashed(mxUtils.isTrue(state.getStyle(), mxConstants.STYLE_DASHED,
				false));
		String fill = mxUtils.getString(state.getStyle(),
				mxConstants.STYLE_FILLCOLOR, mxConstants.NONE);
		String gradient = mxUtils.getString(state.getStyle(),
				mxConstants.STYLE_GRADIENTCOLOR, mxConstants.NONE);
		if (!mxConstants.NONE.equals(fill)
				&& !mxConstants.NONE.equals(gradient))
		{
			mxRectangle b = getGradientBounds(canvas, state);
			c.setGradient(fill, gradient, b.getX(), b.getY(), b.getWidth(), b
					.getHeight(), mxUtils.getString(state.getStyle(),
					mxConstants.STYLE_GRADIENT_DIRECTION,
					mxConstants.DIRECTION_NORTH), 1, 1);
		}
		else
		{
			c.setFillColor(fill);
		}
		return c;
	}
protected mxGraphicsCanvas2D configureCanvas ( mxGraphics2DCanvas canvas , mxCellState state , mxGraphicsCanvas2D c ) { c . setShadow ( hasShadow ( canvas , state ) ) ; c . setStrokeColor ( mxUtils . getString ( state . getStyle ( ) , mxConstants . STYLE_STROKECOLOR , mxConstants . NONE ) ) ; c . setStrokeWidth ( mxUtils . getInt ( state . getStyle ( ) , mxConstants . STYLE_STROKEWIDTH , 1 ) ) ; c . setDashed ( mxUtils . isTrue ( state . getStyle ( ) , mxConstants . STYLE_DASHED , false ) ) ; String fill = mxUtils . getString ( state . getStyle ( ) , mxConstants . STYLE_FILLCOLOR , mxConstants . NONE ) ; String gradient = mxUtils . getString ( state . getStyle ( ) , mxConstants . STYLE_GRADIENTCOLOR , mxConstants . NONE ) ; if ( ! mxConstants . NONE . equals ( fill ) && ! mxConstants . NONE . equals ( gradient ) ) { mxRectangle b = getGradientBounds ( canvas , state ) ; c . setGradient ( fill , gradient , b . getX ( ) , b . getY ( ) , b . getWidth ( ) , b . getHeight ( ) , mxUtils . getString ( state . getStyle ( ) , mxConstants . STYLE_GRADIENT_DIRECTION , mxConstants . DIRECTION_NORTH ) , 1 , 1 ) ; } else { c . setFillColor ( fill ) ; } return c ; }
Helper method to configure the given wrapper canvas.
Helper method to configure the given wrapper canvas .