Java Code Examples for java.awt.event.AdjustmentEvent#getValue()
The following examples show how to use
java.awt.event.AdjustmentEvent#getValue() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MapLayout.java From MeteoInfo with GNU Lesser General Public License v3.0 | 6 votes |
public void onScrollValueChanged(AdjustmentEvent e) { if (e.getSource() == _vScrollBar) { //_vScrollBar.setValue(e.getValue()); //this._yShift = - this._vScrollBar.getValue(); int y = -e.getValue(); if (y == 1) { y = 0; } this._pageLocation.Y = y; } if (e.getSource() == _hScrollBar) { //_hScrollBar.setValue(e.getValue()); //this._xShift = - this._hScrollBar.getValue(); int x = -e.getValue(); if (x == 1) { x = 0; } this._pageLocation.X = x; } //this.paintGraphics(); this.repaintNew(); //this.repaint(); }
Example 2
Source File: LWScrollBarPeer.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override public void adjustmentValueChanged(final AdjustmentEvent e) { final int value = e.getValue(); synchronized (getDelegateLock()) { if (currentValue == value) { return; } currentValue = value; } getTarget().setValueIsAdjusting(e.getValueIsAdjusting()); getTarget().setValue(value); postEvent(new AdjustmentEvent(getTarget(), e.getID(), e.getAdjustmentType(), value, e.getValueIsAdjusting())); }
Example 3
Source File: TiledImageViewerContainer.java From WorldPainter with GNU General Public License v3.0 | 5 votes |
@Override public void adjustmentValueChanged(AdjustmentEvent e) { if (programmaticChange) { return; } programmaticChange = true; try { if (e.getSource() == horizontalScrollbar) { int dx = e.getValue() - previousHorizontalValue; if (dx != 0) { previousHorizontalValue = e.getValue(); view.moveBy(dx, 0); if (! e.getValueIsAdjusting()) { updateScrollBars(); } } } else if (e.getSource() == verticalScrollbar) { int dy = e.getValue() - previousVerticalValue; if (dy != 0) { previousVerticalValue = e.getValue(); view.moveBy(0, dy); if (! e.getValueIsAdjusting()) { updateScrollBars(); } } } } finally { programmaticChange = false; } }
Example 4
Source File: AppStoreListBuilder.java From raccoon4 with Apache License 2.0 | 5 votes |
@Override public void adjustmentValueChanged(AdjustmentEvent e) { if (e.getSource() instanceof JScrollBar) { JScrollBar bar = (JScrollBar) e.getSource(); if (e.getValue() > (bar.getMaximum() - bar.getModel().getExtent()) * 0.85f) { if (!loading && !padded) { globals.get(PlayManager.class).moreApps(); } } } }
Example 5
Source File: LWScrollBarPeer.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
@Override public void adjustmentValueChanged(final AdjustmentEvent e) { final int value = e.getValue(); synchronized (getDelegateLock()) { if (currentValue == value) { return; } currentValue = value; } getTarget().setValueIsAdjusting(e.getValueIsAdjusting()); getTarget().setValue(value); postEvent(new AdjustmentEvent(getTarget(), e.getID(), e.getAdjustmentType(), value, e.getValueIsAdjusting())); }
Example 6
Source File: LWScrollBarPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@Override public void adjustmentValueChanged(final AdjustmentEvent e) { final int value = e.getValue(); synchronized (getDelegateLock()) { if (currentValue == value) { return; } currentValue = value; } getTarget().setValueIsAdjusting(e.getValueIsAdjusting()); getTarget().setValue(value); postEvent(new AdjustmentEvent(getTarget(), e.getID(), e.getAdjustmentType(), value, e.getValueIsAdjusting())); }
Example 7
Source File: JHexView.java From binnavi with Apache License 2.0 | 5 votes |
@Override public void adjustmentValueChanged(final AdjustmentEvent event) { if (event.getSource() == m_scrollbar) { m_firstRow = event.getValue(); } else { m_firstColumn = event.getValue(); } repaint(); }
Example 8
Source File: LWScrollBarPeer.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
@Override public void adjustmentValueChanged(final AdjustmentEvent e) { final int value = e.getValue(); synchronized (getDelegateLock()) { if (currentValue == value) { return; } currentValue = value; } getTarget().setValueIsAdjusting(e.getValueIsAdjusting()); getTarget().setValue(value); postEvent(new AdjustmentEvent(getTarget(), e.getID(), e.getAdjustmentType(), value, e.getValueIsAdjusting())); }
Example 9
Source File: LWScrollBarPeer.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Override public void adjustmentValueChanged(final AdjustmentEvent e) { final int value = e.getValue(); synchronized (getDelegateLock()) { if (currentValue == value) { return; } currentValue = value; } getTarget().setValueIsAdjusting(e.getValueIsAdjusting()); getTarget().setValue(value); postEvent(new AdjustmentEvent(getTarget(), e.getID(), e.getAdjustmentType(), value, e.getValueIsAdjusting())); }
Example 10
Source File: LWScrollBarPeer.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Override public void adjustmentValueChanged(final AdjustmentEvent e) { final int value = e.getValue(); synchronized (getDelegateLock()) { if (currentValue == value) { return; } currentValue = value; } getTarget().setValueIsAdjusting(e.getValueIsAdjusting()); getTarget().setValue(value); postEvent(new AdjustmentEvent(getTarget(), e.getID(), e.getAdjustmentType(), value, e.getValueIsAdjusting())); }
Example 11
Source File: LWScrollBarPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@Override public void adjustmentValueChanged(final AdjustmentEvent e) { final int value = e.getValue(); synchronized (getDelegateLock()) { if (currentValue == value) { return; } currentValue = value; } getTarget().setValueIsAdjusting(e.getValueIsAdjusting()); getTarget().setValue(value); postEvent(new AdjustmentEvent(getTarget(), e.getID(), e.getAdjustmentType(), value, e.getValueIsAdjusting())); }
Example 12
Source File: LWScrollBarPeer.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override public void adjustmentValueChanged(final AdjustmentEvent e) { final int value = e.getValue(); synchronized (getDelegateLock()) { if (currentValue == value) { return; } currentValue = value; } getTarget().setValueIsAdjusting(e.getValueIsAdjusting()); getTarget().setValue(value); postEvent(new AdjustmentEvent(getTarget(), e.getID(), e.getAdjustmentType(), value, e.getValueIsAdjusting())); }
Example 13
Source File: LWScrollBarPeer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Override public void adjustmentValueChanged(final AdjustmentEvent e) { final int value = e.getValue(); synchronized (getDelegateLock()) { if (currentValue == value) { return; } currentValue = value; } getTarget().setValueIsAdjusting(e.getValueIsAdjusting()); getTarget().setValue(value); postEvent(new AdjustmentEvent(getTarget(), e.getID(), e.getAdjustmentType(), value, e.getValueIsAdjusting())); }
Example 14
Source File: LWScrollBarPeer.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override public void adjustmentValueChanged(final AdjustmentEvent e) { final int value = e.getValue(); synchronized (getDelegateLock()) { if (currentValue == value) { return; } currentValue = value; } getTarget().setValueIsAdjusting(e.getValueIsAdjusting()); getTarget().setValue(value); postEvent(new AdjustmentEvent(getTarget(), e.getID(), e.getAdjustmentType(), value, e.getValueIsAdjusting())); }
Example 15
Source File: LWScrollBarPeer.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Override public void adjustmentValueChanged(final AdjustmentEvent e) { final int value = e.getValue(); synchronized (getDelegateLock()) { if (currentValue == value) { return; } currentValue = value; } getTarget().setValueIsAdjusting(e.getValueIsAdjusting()); getTarget().setValue(value); postEvent(new AdjustmentEvent(getTarget(), e.getID(), e.getAdjustmentType(), value, e.getValueIsAdjusting())); }
Example 16
Source File: LWScrollBarPeer.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Override public void adjustmentValueChanged(final AdjustmentEvent e) { final int value = e.getValue(); synchronized (getDelegateLock()) { if (currentValue == value) { return; } currentValue = value; } getTarget().setValueIsAdjusting(e.getValueIsAdjusting()); getTarget().setValue(value); postEvent(new AdjustmentEvent(getTarget(), e.getID(), e.getAdjustmentType(), value, e.getValueIsAdjusting())); }
Example 17
Source File: LWScrollBarPeer.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
@Override public void adjustmentValueChanged(final AdjustmentEvent e) { final int value = e.getValue(); synchronized (getDelegateLock()) { if (currentValue == value) { return; } currentValue = value; } getTarget().setValueIsAdjusting(e.getValueIsAdjusting()); getTarget().setValue(value); postEvent(new AdjustmentEvent(getTarget(), e.getID(), e.getAdjustmentType(), value, e.getValueIsAdjusting())); }
Example 18
Source File: bug8044371.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public void adjustmentValueChanged(AdjustmentEvent e) { System.out.println( "adjustmentValueChanged: " + e.getValue()); lastAdjust = e.getValue(); }