本文整理汇总了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();
}
}
示例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();
}
}
示例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());
}
}
示例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();
}
示例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();
}
}
示例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()));
}
示例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();
}
}
示例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);
}
}
示例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();
}
}
示例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();
}
}
示例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);
}
}
示例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);
}
}
示例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();
}
示例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();
}
示例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();
}