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

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

origin: net.imagej/ij

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

public int map() {
  return(((Scrollbar)getSource()).getOrientation());
}}));}
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: openmicroscopy/bioformats

public void selectLine(int index) {
 //int ys = panel.getFontMetrics(getFont()).getHeight() + 2;
 //int y = ys * (index + 1) + 2;  // absolute y coordinate
 //int totalHeight = ys * panel.getLineCount();
 Scrollbar ss = null;
 Component[] components = panel.getComponents();
 for (int i=0; i<components.length; i++) {
  if (components[i] instanceof Scrollbar) {
   Scrollbar s = (Scrollbar) components[i];
   if (s.getOrientation() == Scrollbar.VERTICAL) {
    ss = s;
   }
  }
 }
 //int height = panel.getHeight();
 // convert absolute y value to scrollbar and relative y coordinates
 int min = ss.getMinimum();
 int scrollValue = min + index;
 ss.setValue(scrollValue);
 panel.adjustmentValueChanged(null);
}
origin: org.netbeans.modules/org-netbeans-modules-form

  @Override
  public Dimension getMinimumSize() {
    Scrollbar target =(Scrollbar) _target;
    return target.getOrientation() == Scrollbar.HORIZONTAL ?
      new Dimension(3 * FakePeerUtils.SCROLL_W, FakePeerUtils.SCROLL_H) :
      new Dimension(FakePeerUtils.SCROLL_W, 3 * FakePeerUtils.SCROLL_H);
  }
}
origin: net.imagej/ij

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

public int getOrientation() {
  return bar.getOrientation();
}
public int getUnitIncrement() {
java.awtScrollbargetOrientation

Popular methods of Scrollbar

  • addAdjustmentListener
  • getValue
  • setValue
  • <init>
  • getMaximum
  • getMinimum
  • 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)