public void setBlockIncrement(int b) { bar.setBlockIncrement(b); } public void setMaximum(int max) {
/** * Sets the block increment for this scroll bar. * * <P>The block increment is the value that is added (subtracted) when * the user activates the block increment area of the scroll bar, * generally through a mouse or keyboard gesture that the scroll bar * receives as an adjustment event. * * <P>This is a version to be used by The ImgScrollPane class only. * * @param v the amount by which to increment or decrement the scroll * bar's value. * */ void setBlockIncrementI(int v) { super.setBlockIncrement(v); }
@Override public void setBlockIncrement(final int b) { bar.setBlockIncrement(b); }
public void setBlockIncrement(int b) { bar.setBlockIncrement(b); } public void setMaximum(int max) {
/** * Sets the block increment for this scroll bar. * * <P>The block increment is the value that is added (subtracted) when * the user activates the block increment area of the scroll bar, * generally through a mouse or keyboard gesture that the scroll bar * receives as an adjustment event. * * <P>This is a version to be used by The ImgScrollPane class only. * * @param v the amount by which to increment or decrement the scroll * bar's value. * */ void setBlockIncrementI(int v) { super.setBlockIncrement(v); }
/** * Sets 'a' as vertical Scrollbar. * The Browser becomes an AdjustmentListener of this scrollbar. */ public void setVerticalScrollbar(Scrollbar a) { vscroll = a; vscroll.addAdjustmentListener(this); vscroll.setMaximum(visibleItemCount); vscroll.setVisibleAmount(visibleItemCount); vscroll.setBlockIncrement(visibleItemCount); }
protected static Scrollbar makeDummySlider() { Scrollbar scrollbar = new Scrollbar(Scrollbar.HORIZONTAL, 1, 1, 1, 2); scrollbar.setFocusable(false); scrollbar.setUnitIncrement(1); scrollbar.setBlockIncrement(1); scrollbar.setEnabled(false); return scrollbar; }
/** * Sets 'a' as horizontal Scrollbar. * The Browser becomes an AdjustmentListener of this scrollbar. */ public void setHorizontalScrollbar(Scrollbar a) { hscroll = a; hscroll.addAdjustmentListener(this); int myWidth = getSize().width-HMARGIN*2; hscroll.setMaximum(myWidth); hscroll.setVisibleAmount(myWidth); hscroll.setBlockIncrement(20); }
protected static Scrollbar makeDummySlider() { Scrollbar scrollbar = new Scrollbar(Scrollbar.HORIZONTAL, 1, 1, 1, 2); scrollbar.setFocusable(false); scrollbar.setUnitIncrement(1); scrollbar.setBlockIncrement(1); scrollbar.setEnabled(false); return scrollbar; }
cScroll.setBlockIncrement(1); int blockIncrement = Math.max(z / 10, 1); zScroll.setUnitIncrement(1); zScroll.setBlockIncrement(blockIncrement); int blockIncrement = Math.max(t / 10, 1); tScroll.setUnitIncrement(1); tScroll.setBlockIncrement(blockIncrement);
cScroll.setBlockIncrement(1); int blockIncrement = Math.max(z / 10, 1); zScroll.setUnitIncrement(1); zScroll.setBlockIncrement(blockIncrement); int blockIncrement = Math.max(t / 10, 1); tScroll.setUnitIncrement(1); tScroll.setBlockIncrement(blockIncrement);