Scrollbar.getMaximum
Code IndexAdd Codota to your IDE (free)

Best code snippets using java.awt.Scrollbar.getMaximum(Showing top 7 results out of 315)

origin: net.imagej/ij

public int getMaximum() {
  return bar.getMaximum();
}
public int getMinimum() {
origin: org.netbeans/jemmy

public int map() {
  return(((Scrollbar)getSource()).getMaximum());
}}));}
origin: openmicroscopy/bioformats

 @Override
 public void run() {
  while (isVisible()) {
   int ms = 200;
   if (anim) {
    int c = imp.getChannel();
    int z = imp.getSlice();
    int t = imp.getFrame() + 1;
    int sizeT = tSlider.getMaximum() - 1;
    if (t > sizeT) t = 1;
    imp.setPosition(c, z, t);
    syncSliders();
    int fps = ((Number) fpsSpin.getValue()).intValue();
    ms = 1000 / fps;
   }
   try {
    Thread.sleep(ms);
   }
   catch (InterruptedException exc) { }
  }
 }
}.start();
origin: org.netbeans.modules/org-netbeans-modules-form

@Override
public void paint(Graphics g) {
  Scrollbar target = (Scrollbar) _target;
  Dimension sz = target.getSize();
  int scrollRange = target.getMaximum() - target.getMinimum();
  int scrollValue = target.getValue() - target.getMinimum();
  int thumbAmount = target.getVisibleAmount();
  g.setColor(target.getBackground());
  FakePeerUtils.drawScrollbar(g,
                0, 0, sz.width, sz.height,
                target.getOrientation(),
                target.isEnabled(),
                true,
                scrollValue,
                thumbAmount,
                scrollRange);
}
origin: mabe02/lanterna

scrollModelUpdateBySystem = true;
int value = scrollBar.getValue();
int maximum = scrollBar.getMaximum();
int visibleAmount = scrollBar.getVisibleAmount();
if(scrollBar.getMaximum() != maximum) {
  scrollBar.setMaximum(maximum);
origin: net.imagej/ij

public int getMaximum() {
  return bar.getMaximum();
}
public int getMinimum() {
origin: net.imagej/ij

public int getMaximum() {
  return bar.getMaximum();
}
public int getMinimum() {
java.awtScrollbargetMaximum

Popular methods of Scrollbar

  • addAdjustmentListener
  • getValue
  • setValue
  • <init>
  • getMinimum
  • getOrientation
  • getVisibleAmount
  • removeAdjustmentListener
  • setMaximum
  • setUnitIncrement
  • setVisibleAmount
  • setBlockIncrement
  • setVisibleAmount,
  • setBlockIncrement,
  • setEnabled,
  • setMinimum,
  • addKeyListener,
  • getBlockIncrement,
  • getUnitIncrement,
  • isEnabled,
  • setFocusable

Popular classes and methods

  • getContentResolver (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onCreateOptionsMenu (Activity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JLabel (javax.swing)

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)