当前位置: 首页>>代码示例>>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;未经允许,请勿转载。