@Override public BasicSplitPaneDivider createDefaultDivider() { return new SubstanceSplitPaneDivider(this); } }
/** * Uninstalls this divider. */ private void uninstall() { // uninstalling // fix for defect 109 - memory leak on changing skin this.removeMouseListener(this.substanceRolloverListener); this.removeMouseMotionListener(this.substanceRolloverListener); this.substanceRolloverListener = null; if (this.substancePropertyChangeListener != null) { // System.out.println("Unregistering " + this.hashCode() + ":" // + this.substancePropertyChangeListener.hashCode() // + " from " + this.splitPane.hashCode()); this.splitPane .removePropertyChangeListener(this.substancePropertyChangeListener); this.substancePropertyChangeListener = null; } this.stateTransitionTracker.unregisterModelListeners(); }
public void propertyChange(PropertyChangeEvent evt) { if ("enabled".equals(evt.getPropertyName())) { boolean isEnabled = splitPane.isEnabled(); gripModel.setEnabled(isEnabled); if (leftButton != null) leftButton.setEnabled(isEnabled); if (rightButton != null) rightButton.setEnabled(isEnabled); setEnabled(isEnabled); } } };
this.uninstall(); this.addMouseListener(this.substanceRolloverListener); this.addMouseMotionListener(this.substanceRolloverListener); uninstall();
.getComponentFontSize(this), 40, 1, 3, false); if (this.splitPane.getOrientation() == JSplitPane.HORIZONTAL_SPLIT) { int thumbHeight = this.getHeight(); if (thumbHeight >= minSizeForGripPresence) { int gripHeight = thumbHeight / 4; gripHeight = maxGripSize; int thumbWidth = this.getWidth(); int thumbWidth = this.getWidth(); if (thumbWidth >= minSizeForGripPresence) { int gripWidth = thumbWidth / 4; gripWidth = maxGripSize; int thumbHeight = this.getHeight();
divider.isEnabled()); dotGraphics.setColor(markColor); dotGraphics.fillOval(0, 0, bumpDotDiameter, bumpDotDiameter);
this.uninstall(); this.addMouseListener(this.substanceRolloverListener); this.addMouseMotionListener(this.substanceRolloverListener); uninstall();
.getComponentFontSize(this), 40, 1, 3, false); if (this.splitPane.getOrientation() == JSplitPane.HORIZONTAL_SPLIT) { int thumbHeight = this.getHeight(); if (thumbHeight >= minSizeForGripPresence) { int gripHeight = thumbHeight / 4; gripHeight = maxGripSize; int thumbWidth = this.getWidth(); int thumbWidth = this.getWidth(); if (thumbWidth >= minSizeForGripPresence) { int gripWidth = thumbWidth / 4; gripWidth = maxGripSize; int thumbHeight = this.getHeight();
divider.isEnabled()); dotGraphics.setColor(markColor); dotGraphics.fillOval(0, 0, bumpDotDiameter, bumpDotDiameter);
/** * Uninstalls this divider. */ private void uninstall() { // uninstalling // fix for defect 109 - memory leak on changing skin this.removeMouseListener(this.substanceRolloverListener); this.removeMouseMotionListener(this.substanceRolloverListener); this.substanceRolloverListener = null; if (this.substancePropertyChangeListener != null) { // System.out.println("Unregistering " + this.hashCode() + ":" // + this.substancePropertyChangeListener.hashCode() // + " from " + this.splitPane.hashCode()); this.splitPane .removePropertyChangeListener(this.substancePropertyChangeListener); this.substancePropertyChangeListener = null; } this.stateTransitionTracker.unregisterModelListeners(); }
@Override public void propertyChange(PropertyChangeEvent evt) { if ("enabled".equals(evt.getPropertyName())) { boolean isEnabled = splitPane.isEnabled(); gripModel.setEnabled(isEnabled); if (leftButton != null) leftButton.setEnabled(isEnabled); if (rightButton != null) rightButton.setEnabled(isEnabled); setEnabled(isEnabled); } } };
@Override public BasicSplitPaneDivider createDefaultDivider() { return new SubstanceSplitPaneDivider(this); } }