/** * Fires a property change event for <code>drawLabels</code>. * * @param drawLabels the drawLabels to set */ public void setDrawLabels(boolean drawLabels) { boolean oldValue = this.drawLabels; this.drawLabels = drawLabels; repaintTripleBuffer(null); firePropertyChange("drawLabels", oldValue, drawLabels); }
/** * Fires a property change event for <code>antiAlias</code>. * * @param antiAlias the antiAlias to set */ public void setAntiAlias(boolean antiAlias) { boolean oldValue = this.antiAlias; this.antiAlias = antiAlias; repaintTripleBuffer(null); firePropertyChange("antiAlias", oldValue, antiAlias); }
/** * Fires a property change event for <code>drawLabels</code>. * * @param drawLabels the drawLabels to set */ public void setDrawLabels(boolean drawLabels) { boolean oldValue = this.drawLabels; this.drawLabels = drawLabels; repaintTripleBuffer(null); firePropertyChange("drawLabels", oldValue, drawLabels); }
/** * Fires a property change event for <code>antiAlias</code>. * * @param antiAlias the antiAlias to set */ public void setAntiAlias(boolean antiAlias) { boolean oldValue = this.antiAlias; this.antiAlias = antiAlias; repaintTripleBuffer(null); firePropertyChange("antiAlias", oldValue, antiAlias); }
/** * Creates the tripleBufferGraphics and tripleBuffer for the given * dimension and draws the complete graph onto the triplebuffer. * * @param width * @param height */ protected void createTripleBuffer(int width, int height) { try { tripleBuffer = mxUtils.createBufferedImage(width, height, null); tripleBufferGraphics = tripleBuffer.createGraphics(); // Repaints the complete buffer repaintTripleBuffer(null); } catch (OutOfMemoryError error) { log.log(Level.SEVERE, "Failed to create a triple buffer", error); } }
/** * Creates the tripleBufferGraphics and tripleBuffer for the given * dimension and draws the complete graph onto the triplebuffer. * * @param width * @param height */ protected void createTripleBuffer(int width, int height) { try { tripleBuffer = mxUtils.createBufferedImage(width, height, null); tripleBufferGraphics = tripleBuffer.createGraphics(); // Repaints the complete buffer repaintTripleBuffer(null); } catch (OutOfMemoryError error) { // ignore } }
repaintTripleBuffer(null); repaintClip.setHeight(repaintClip.getHeight() * scale); repaintTripleBuffer(repaintClip.getRectangle());
repaintTripleBuffer(null); repaintClip.setHeight(repaintClip.getHeight() * scale); repaintTripleBuffer(repaintClip.getRectangle());