/** * Updates the buffer (if one exists) and repaints the given cell state. */ public void redraw(mxCellState state) { if (state != null) { Rectangle dirty = state.getBoundingBox().getRectangle(); repaintTripleBuffer(new Rectangle(dirty)); dirty = SwingUtilities.convertRectangle(graphControl, dirty, this); repaint(dirty); } }
/** * Updates the buffer (if one exists) and repaints the given cell state. */ public void redraw(mxCellState state) { if (state != null) { Rectangle dirty = state.getBoundingBox().getRectangle(); repaintTripleBuffer(new Rectangle(dirty)); dirty = SwingUtilities.convertRectangle(graphControl, dirty, this); repaint(dirty); } }
if (state.getBoundingBox() != null) bbox = (mxRectangle) state.getBoundingBox().clone();
if (state.getBoundingBox() != null) bbox = (mxRectangle) state.getBoundingBox().clone();
mxRectangle box = state.getBoundingBox(); if (state.getBoundingBox().getX() < state.getX()) if (state.getBoundingBox().getY() < state.getY())
mxRectangle box = state.getBoundingBox(); if (state.getBoundingBox().getX() < state.getX()) if (state.getBoundingBox().getY() < state.getY())
/** * */ public void restoreState(mxCellState state, mxCellState from) { state.setLabelBounds(from.getLabelBounds()); state.setAbsolutePoints(from.getAbsolutePoints()); state.setOrigin(from.getOrigin()); state.setAbsoluteOffset(from.getAbsoluteOffset()); state.setBoundingBox(from.getBoundingBox()); state.setTerminalDistance(from.getTerminalDistance()); state.setSegments(from.getSegments()); state.setLength(from.getLength()); state.setX(from.getX()); state.setY(from.getY()); state.setWidth(from.getWidth()); state.setHeight(from.getHeight()); }
/** * */ public void restoreState(mxCellState state, mxCellState from) { state.setLabelBounds(from.getLabelBounds()); state.setAbsolutePoints(from.getAbsolutePoints()); state.setOrigin(from.getOrigin()); state.setAbsoluteOffset(from.getAbsoluteOffset()); state.setBoundingBox(from.getBoundingBox()); state.setTerminalDistance(from.getTerminalDistance()); state.setSegments(from.getSegments()); state.setLength(from.getLength()); state.setX(from.getX()); state.setY(from.getY()); state.setWidth(from.getWidth()); state.setHeight(from.getHeight()); }
mxRectangle tmp = state.getBoundingBox();
mxRectangle tmp = state.getBoundingBox();