javax.swing.JSlider.setValueIsAdjusting()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(93)

本文整理了Java中javax.swing.JSlider.setValueIsAdjusting()方法的一些代码示例,展示了JSlider.setValueIsAdjusting()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JSlider.setValueIsAdjusting()方法的具体详情如下:
包路径:javax.swing.JSlider
类名称:JSlider
方法名:setValueIsAdjusting

JSlider.setValueIsAdjusting介绍

暂无

代码示例

代码示例来源:origin: igvteam/igv

@Override
public void mouseReleased(MouseEvent e) {
  lowerDragging = false;
  upperDragging = false;
  slider.setValueIsAdjusting(false);
  super.mouseReleased(e);
}

代码示例来源:origin: lbalazscs/Pixelitor

@Override
public void mouseReleased(MouseEvent e) {
  updateSliderValue(e);
  slider.setValueIsAdjusting(false);
}
@Override

代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime-swing-widget

@Override
public void mouseClicked(MouseEvent e) {
  // set the value
  int value = getSliderValue(e);
  JSlider slider = (JSlider) e.getComponent();
  slider.setValueIsAdjusting(true);
  slider.setValue(value);
  slider.setValueIsAdjusting(false);
  showToolTip(e);
  e.consume();
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets

@Override
public void mouseClicked(MouseEvent e) {
  // set the value
  int value = getSliderValue(e);
  JSlider slider = (JSlider) e.getComponent();
  slider.setValueIsAdjusting(true);
  slider.setValue(value);
  slider.setValueIsAdjusting(false);
  showToolTip(e);
  e.consume();
}

代码示例来源:origin: org.gephi/ui-components

@Override
public void mouseReleased(MouseEvent e) {
  lowerDragging = false;
  upperDragging = false;
  slider.setValueIsAdjusting(false);
  super.mouseReleased(e);
}

代码示例来源:origin: org.gephi/ui-components

@Override
public void mouseReleased(MouseEvent e) {
  lowerDragging = false;
  upperDragging = false;
  slider.setValueIsAdjusting(false);
  super.mouseReleased(e);
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets

@Override
public void mouseWheelMoved(MouseWheelEvent e) {
  JSlider slider = (JSlider) e.getComponent();
  // compute new value
  int nb = e.getWheelRotation();
  int value = slider.getValue() - nb;
  // set the value
  slider.setValueIsAdjusting(true);
  slider.setValue(value);
  slider.setValueIsAdjusting(false);
  e.consume();
}

代码示例来源:origin: lbalazscs/Pixelitor

@Override
public void mousePressed(MouseEvent e) {
  slider.setValueIsAdjusting(true);
  updateSliderValue(e);
}
private void updateSliderValue(MouseEvent e) {

代码示例来源:origin: org.gephi/ui-components

@Override
public void mouseDragged(MouseEvent e) {
  if (!slider.isEnabled()) {
    return;
  }
  currentMouseX = e.getX();
  currentMouseY = e.getY();
  if (lowerDragging) {
    slider.setValueIsAdjusting(true);
    moveLowerThumb();
  } else if (upperDragging) {
    slider.setValueIsAdjusting(true);
    moveUpperThumb();
  }
}

代码示例来源:origin: igvteam/igv

@Override
public void mouseDragged(MouseEvent e) {
  if (!slider.isEnabled()) {
    return;
  }
  currentMouseX = e.getX();
  currentMouseY = e.getY();
  if (lowerDragging) {
    slider.setValueIsAdjusting(true);
    moveLowerThumb();
  } else if (upperDragging) {
    slider.setValueIsAdjusting(true);
    moveUpperThumb();
  }
}

代码示例来源:origin: org.gephi/ui-components

@Override
public void mouseDragged(MouseEvent e) {
  if (!slider.isEnabled()) {
    return;
  }
  currentMouseX = e.getX();
  currentMouseY = e.getY();
  if (lowerDragging) {
    slider.setValueIsAdjusting(true);
    moveLowerThumb();
  } else if (upperDragging) {
    slider.setValueIsAdjusting(true);
    moveUpperThumb();
  }
}

代码示例来源:origin: com.synaptix/SynaptixSwing

public void mouseReleased(MouseEvent e) {
  if (!slider.isEnabled()) {
    return;
  }
  offset = 0;
  scrollTimer.stop();
  // This is the way we have to determine snap-to-ticks. It's
  // hard to explain but since ChangeEvents don't give us any
  // idea what has changed we don't have a way to stop the thumb
  // bounds from being recalculated. Recalculating the thumb
  // bounds moves the thumb over the current value (i.e., snapping
  // to the ticks).
  if (slider.getSnapToTicks() /* || slider.getSnapToValue() */) {
    isDragging = false;
    slider.setValueIsAdjusting(false);
  } else {
    slider.setValueIsAdjusting(false);
    isDragging = false;
  }
  slider.repaint();
}

代码示例来源:origin: com.synaptix/SynaptixSwing

public void mouseReleased(MouseEvent e) {
  if (!slider.isEnabled()) {
    return;
  }
  offset = 0;
  scrollTimer.stop();
  // This is the way we have to determine snap-to-ticks. It's
  // hard to explain but since ChangeEvents don't give us any
  // idea what has changed we don't have a way to stop the thumb
  // bounds from being recalculated. Recalculating the thumb
  // bounds moves the thumb over the current value (i.e., snapping
  // to the ticks).
  if (slider.getSnapToTicks() /* || slider.getSnapToValue() */) {
    isDragging = false;
    slider.setValueIsAdjusting(false);
  } else {
    slider.setValueIsAdjusting(false);
    isDragging = false;
  }
  slider.repaint();
}

代码示例来源:origin: khuxtable/seaglass

slider.setValueIsAdjusting(true);

代码示例来源:origin: com.synaptix/SynaptixSwing

slider.setValueIsAdjusting(true);

代码示例来源:origin: com.synaptix/SynaptixSwing

slider.setValueIsAdjusting(true);

代码示例来源:origin: com.synaptix/SynaptixSwing

slider.setValueIsAdjusting(true);

代码示例来源:origin: com.synaptix/SynaptixSwing

slider.setValueIsAdjusting(true);

代码示例来源:origin: org.xworker/xworker_core

comp.setValueIsAdjusting(valueIsAdjusting);

相关文章

JSlider类方法