當前位置: 首頁>>代碼示例>>Java>>正文


Java AdjustmentEvent.getValue方法代碼示例

本文整理匯總了Java中java.awt.event.AdjustmentEvent.getValue方法的典型用法代碼示例。如果您正苦於以下問題:Java AdjustmentEvent.getValue方法的具體用法?Java AdjustmentEvent.getValue怎麽用?Java AdjustmentEvent.getValue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在java.awt.event.AdjustmentEvent的用法示例。


在下文中一共展示了AdjustmentEvent.getValue方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: adjustmentValueChanged

import java.awt.event.AdjustmentEvent; //導入方法依賴的package包/類
/**
 * Method description
 * 
 * @see
 * @param objPadjustmentEvent
 */
@Override final public void adjustmentValueChanged(AdjustmentEvent objPadjustmentEvent) {

	final byte bytLpreviousValue = this.objGcontrolJFrame.getControlValue(Constants.bytS_BYTE_LOCAL_SPEED);
	final byte bytLcurrentValue = (byte) objPadjustmentEvent.getValue();
	if (bytLcurrentValue != bytLpreviousValue) {
		this.objGcontrolJFrame.saveControlValue(Constants.bytS_BYTE_LOCAL_SPEED, bytLcurrentValue);

		// TODO : si pas de doRestartJuggling
		// this.objGcontrolJFrame.setSpeedControls();
		// this.objGcontrolJFrame.doAddAction(Constants.intS_ACTION_INIT_TITLES | Constants.intS_ACTION_INIT_ANIMATION_PROPERTIES);

		Tools.debug("SpeedJScrollBar.adjustmentValueChanged(): ControlJFrame.doRestartJuggling()");
		this.objGcontrolJFrame.doRestartJuggling();
	}
}
 
開發者ID:jugglemaster,項目名稱:JuggleMasterPro,代碼行數:22,代碼來源:SpeedJScrollBar.java

示例2: adjustmentValueChanged

import java.awt.event.AdjustmentEvent; //導入方法依賴的package包/類
/**
 * Method description
 * 
 * @see
 * @param objPadjustmentEvent
 */
@Override final public void adjustmentValueChanged(AdjustmentEvent objPadjustmentEvent) {

	Tools.debug("StrobeJScrollBar.adjustmentValueChanged()");
	final byte bytLcurrentValue = (byte) objPadjustmentEvent.getValue();
	final byte bytLpreviousValue = this.objGcontrolJFrame.getControlValue(Constants.bytS_BYTE_LOCAL_STROBE);
	if (bytLcurrentValue != bytLpreviousValue) {
		this.objGcontrolJFrame.saveControlValue(Constants.bytS_BYTE_LOCAL_STROBE, bytLcurrentValue);
		if ((this.objGcontrolJFrame.isControlSelected(Constants.bytS_BOOLEAN_LOCAL_FLASH) || this.objGcontrolJFrame.isControlSelected(Constants.bytS_BOOLEAN_LOCAL_ROBOT))
			&& this.objGcontrolJFrame.isControlSelected(Constants.bytS_BOOLEAN_LOCAL_BALLS)
			&& this.objGcontrolJFrame.getControlValue(Constants.bytS_BYTE_LOCAL_BALLS_TRAIL) == Constants.bytS_BYTE_LOCAL_BALLS_TRAIL_FULL) {
			this.objGcontrolJFrame.doAddAction(Constants.intS_ACTION_INIT_TITLES | Constants.intS_ACTION_CLEAR_ANIMATION_IMAGE
												| Constants.intS_ACTION_RECREATE_JUGGLER_TRAILS_IMAGES
												| Constants.intS_ACTION_RECREATE_BALLS_TRAILS_IMAGES);
		}
		this.objGcontrolJFrame.setStrobeControls();
	}
}
 
開發者ID:jugglemaster,項目名稱:JuggleMasterPro,代碼行數:24,代碼來源:StrobeJScrollBar.java

示例3: adjustmentValueChanged

import java.awt.event.AdjustmentEvent; //導入方法依賴的package包/類
public void adjustmentValueChanged(AdjustmentEvent e)
{
	if ( isAllowEvent )
	{
		if ( e.getValue() == -1 )
		{
			jsHour.setValue(23);
			return;
		}
		else if ( e.getValue() == 24 )
		{
			jsHour.setValue(0);
			return;
		}
		
		setHour(e.getValue());
	}
}
 
開發者ID:HY-ZhengWei,項目名稱:hy.common.ui,代碼行數:19,代碼來源:JTimePanel.java

示例4: onScrollValueChanged

import java.awt.event.AdjustmentEvent; //導入方法依賴的package包/類
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.repaint();
}
 
開發者ID:meteoinfo,項目名稱:MeteoInfoLib,代碼行數:23,代碼來源:MapLayout.java

示例5: adjustmentValueChanged

import java.awt.event.AdjustmentEvent; //導入方法依賴的package包/類
@Override
public void adjustmentValueChanged(AdjustmentEvent e) {
    int value = e.getValue();
    JScrollBar scrollBar = (JScrollBar) e.getSource();
    if (!scrolling && scrollBar.isEnabled()) {
        Point viewTranslation = canvas.getViewTranslation();
        if (e.getSource() == Atid.getRoot().getDrawingBoard().getHorizontalScrollBar()) {
            viewTranslation = new Point(-value, viewTranslation.getY());
        }
        if (e.getSource() == Atid.getRoot().getDrawingBoard().getVerticalScrollBar()) {
            viewTranslation = new Point(viewTranslation.getX(), -value);
        }
        canvas.setViewTranslation(viewTranslation);
        canvas.repaint();
    }
}
 
開發者ID:lucenacaio,項目名稱:AtidDesktop,代碼行數:17,代碼來源:ScrollingFeature.java

示例6: adjustmentValueChanged

import java.awt.event.AdjustmentEvent; //導入方法依賴的package包/類
@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()));
}
 
開發者ID:SunburstApps,項目名稱:OpenJSharp,代碼行數:16,代碼來源:LWScrollBarPeer.java

示例7: adjustmentValueChanged

import java.awt.event.AdjustmentEvent; //導入方法依賴的package包/類
/**
 * Method description
 * 
 * @see
 * @param objPadjustmentEvent
 */
@Override final public void adjustmentValueChanged(AdjustmentEvent objPadjustmentEvent) {

	final byte bytLpreviousValue = this.objGcontrolJFrame.getControlValue(Constants.bytS_BYTE_LOCAL_FLUIDITY);
	final byte bytLcurrentValue = (byte) objPadjustmentEvent.getValue();
	if (bytLcurrentValue != bytLpreviousValue) {
		this.objGcontrolJFrame.saveControlValue(Constants.bytS_BYTE_LOCAL_FLUIDITY, bytLcurrentValue);

		// TODO : Si pas de doRestartJuggling
		// this.objGcontrolJFrame.setFluidityJLabels();
		// this.objGcontrolJFrame.setTitles();
		Tools.debug("FluidityJScrollBar.adjustmentValueChanged(): ControlJFrame.doRestartJuggling()");
		this.objGcontrolJFrame.doRestartJuggling();
	}
}
 
開發者ID:jugglemaster,項目名稱:JuggleMasterPro,代碼行數:21,代碼來源:FluidityJScrollBar.java

示例8: adjustmentValueChanged

import java.awt.event.AdjustmentEvent; //導入方法依賴的package包/類
/**
 * Method description
 * 
 * @see
 * @param objPadjustmentEvent
 */
@Override final public void adjustmentValueChanged(AdjustmentEvent objPadjustmentEvent) {

	Tools.debug("DefaultsJScrollBar.adjustmentValueChanged()");
	final byte bytLpreviousValue = this.objGcontrolJFrame.getControlValue(Constants.bytS_BYTE_LOCAL_DEFAULTS);
	final byte bytLcurrentValue = (byte) objPadjustmentEvent.getValue();
	if (bytLcurrentValue != bytLpreviousValue) {
		this.objGcontrolJFrame.saveControlValue(Constants.bytS_BYTE_LOCAL_DEFAULTS, bytLcurrentValue);
		this.objGcontrolJFrame.setDefaultsControls();
		this.objGcontrolJFrame.doAddAction(Constants.intS_ACTION_INIT_TITLES);
	}
}
 
開發者ID:jugglemaster,項目名稱:JuggleMasterPro,代碼行數:18,代碼來源:DefaultsJScrollBar.java

示例9: adjustmentValueChanged

import java.awt.event.AdjustmentEvent; //導入方法依賴的package包/類
/**
 * Method description
 * 
 * @see
 * @param objPadjustmentEvent
 */
@Override final public void adjustmentValueChanged(AdjustmentEvent objPadjustmentEvent) {
	final byte bytLpreviousValue = this.objGcontrolJFrame.getControlValue(Constants.bytS_BYTE_LOCAL_HEIGHT);
	final byte bytLcurrentValue = (byte) objPadjustmentEvent.getValue();
	if (bytLcurrentValue != bytLpreviousValue) {
		this.objGcontrolJFrame.saveControlValue(Constants.bytS_BYTE_LOCAL_HEIGHT, bytLcurrentValue);

		// TODO : si pas de doRestartJuggling
		// setHeightJLabels();
		// objPcontrolJFrame.doAddAction(Constants.intS_ACTION_INIT_TITLES);
		Tools.debug("HeightJScrollBar.adjustmentValueChanged(): ControlJFrame.doRestartJuggling()");
		this.objGcontrolJFrame.doRestartJuggling();
	}
}
 
開發者ID:jugglemaster,項目名稱:JuggleMasterPro,代碼行數:20,代碼來源:HeightJScrollBar.java

示例10: adjustmentValueChanged

import java.awt.event.AdjustmentEvent; //導入方法依賴的package包/類
/**
 * Method description
 * 
 * @see
 * @param objPadjustmentEvent
 */
@Override final public void adjustmentValueChanged(AdjustmentEvent objPadjustmentEvent) {
	// this.objGcontrolJFrame.log("Restart par DwellJScrollBar");
	final byte bytLpreviousValue = this.objGcontrolJFrame.getControlValue(Constants.bytS_BYTE_LOCAL_DWELL);
	final byte bytLcurrentValue = (byte) objPadjustmentEvent.getValue();
	if (bytLcurrentValue != bytLpreviousValue) {
		this.objGcontrolJFrame.saveControlValue(Constants.bytS_BYTE_LOCAL_DWELL, bytLcurrentValue);
		// this.objGcontrolJFrame.setDwellControls(); // TODO : Si pas de doRestartJuggling
		// this.objGcontrolJFrame.doAddAction(Constants.intS_ACTION_INIT_ANIMATION_PROPERTIES);
		// this.objGcontrolJFrame.setTitles();

		Tools.debug("DwellJScrollBar.adjustmentValueChanged(): ControlJFrame.doRestartJuggling()");
		this.objGcontrolJFrame.doRestartJuggling();
	}
}
 
開發者ID:jugglemaster,項目名稱:JuggleMasterPro,代碼行數:21,代碼來源:DwellJScrollBar.java

示例11: adjustmentValueChanged

import java.awt.event.AdjustmentEvent; //導入方法依賴的package包/類
/**
 * Method description
 * 
 * @see
 * @param objPadjustmentEvent
 */
@Override final public void adjustmentValueChanged(AdjustmentEvent objPadjustmentEvent) {

	Tools.debug("PreferenceByteGlobalJScrollBar.adjustmentValueChanged()");
	final byte bytLpreviousValue = this.objGpreferencesJDialog.bytGbyteGlobalAA[this.bytGpreferenceType][Constants.bytS_UNCLASS_CURRENT];
	final byte bytLcurrentValue = (byte) objPadjustmentEvent.getValue();
	if (bytLcurrentValue != bytLpreviousValue) {
		this.objGpreferencesJDialog.doApplyByteGlobalScrollChange(this.bytGpreferenceType, bytLcurrentValue);
	}
}
 
開發者ID:jugglemaster,項目名稱:JuggleMasterPro,代碼行數:16,代碼來源:PreferenceByteGlobalJScrollBar.java

示例12: adjustmentValueChanged

import java.awt.event.AdjustmentEvent; //導入方法依賴的package包/類
/**
 * Method description
 * 
 * @see
 * @param objPadjustmentEvent
 */
@Override final public void adjustmentValueChanged(AdjustmentEvent objPadjustmentEvent) {

	Tools.debug("PreferenceByteLocalJScrollBar.adjustmentValueChanged()");
	final byte bytLpreviousValue = this.objGpreferencesJDialog.bytGbyteLocalAA[this.bytGpreferenceType][Constants.bytS_UNCLASS_CURRENT];
	final byte bytLcurrentValue = (byte) objPadjustmentEvent.getValue();
	if (bytLcurrentValue != bytLpreviousValue) {
		this.objGpreferencesJDialog.doApplyByteLocalScrollChange(this.bytGpreferenceType, bytLcurrentValue);
	}
}
 
開發者ID:jugglemaster,項目名稱:JuggleMasterPro,代碼行數:16,代碼來源:PreferenceByteLocalJScrollBar.java

示例13: adjustmentValueChanged

import java.awt.event.AdjustmentEvent; //導入方法依賴的package包/類
@Override
public void adjustmentValueChanged(final AdjustmentEvent event) {
  if (event.getSource() == m_scrollbar) {
    m_firstRow = event.getValue();
  } else {
    m_firstColumn = event.getValue();
  }

  repaint();
}
 
開發者ID:google,項目名稱:binnavi,代碼行數:11,代碼來源:JHexView.java

示例14: adjustmentValueChanged

import java.awt.event.AdjustmentEvent; //導入方法依賴的package包/類
@Override
public void adjustmentValueChanged(final AdjustmentEvent e) {
	if (e.getValue() > lastValue) {
		// scrollbar has been dragged to the right
		repaint = true;
	}
	if (!e.getValueIsAdjusting() && repaint) {
		//Done scrolling - repaint if needed
		jScrollPane.repaint();
		repaint = false;
	}
	lastValue = e.getValue();
}
 
開發者ID:GoldenGnu,項目名稱:jwarframe,代碼行數:14,代碼來源:JAutoColumnTable.java

示例15: adjustmentValueChanged

import java.awt.event.AdjustmentEvent; //導入方法依賴的package包/類
@Override
public void adjustmentValueChanged(AdjustmentEvent evt) {
    Adjustable source = evt.getAdjustable();

    // getValueIsAdjusting() returns true if the user is currently
    // dragging the scrollbar's knob and has not picked a final value
    if (evt.getValueIsAdjusting()) {
        // The user is dragging the knob
        return;
    } else {
        ((Component) source).getParent().repaint();
    }

    // Determine the type of event
    int type = evt.getAdjustmentType();
    switch (type) {
        case AdjustmentEvent.UNIT_INCREMENT:
            // Scrollbar was increased by one unit
            break;
        case AdjustmentEvent.UNIT_DECREMENT:
            // Scrollbar was decreased by one unit
            break;
        case AdjustmentEvent.BLOCK_INCREMENT:
            // Scrollbar was increased by one block
            break;
        case AdjustmentEvent.BLOCK_DECREMENT:
            // Scrollbar was decreased by one block
            break;
        case AdjustmentEvent.TRACK:
            // The knob on the scrollbar was dragged
            break;
    }

    // Get current value
    int value = evt.getValue();
}
 
開發者ID:CIRDLES,項目名稱:ET_Redux,代碼行數:37,代碼來源:AliquotEditorDialog.java


注:本文中的java.awt.event.AdjustmentEvent.getValue方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。