/** * Returns the perimeter function for the given state. */ public mxPerimeterFunction getPerimeterFunction(mxCellState state) { Object perimeter = state.getStyle().get(mxConstants.STYLE_PERIMETER); // Converts string values to objects if (perimeter instanceof String) { String str = String.valueOf(perimeter); Object tmp = mxStyleRegistry.getValue(str); if (tmp == null) { tmp = mxUtils.eval(str); } perimeter = tmp; } if (perimeter instanceof mxPerimeterFunction) { return (mxPerimeterFunction) perimeter; } return null; }
/** * Returns the perimeter function for the given state. */ public mxPerimeterFunction getPerimeterFunction(mxCellState state) { Object perimeter = state.getStyle().get(mxConstants.STYLE_PERIMETER); // Converts string values to objects if (perimeter instanceof String) { String str = String.valueOf(perimeter); Object tmp = mxStyleRegistry.getValue(str); if (tmp == null) { tmp = mxUtils.eval(str); } perimeter = tmp; } if (perimeter instanceof mxPerimeterFunction) { return (mxPerimeterFunction) perimeter; } return null; }
Object tmp = mxStyleRegistry.getValue(str);
Object tmp = mxStyleRegistry.getValue(str);