/** * Creates a new instance of <code>JXBusyLabel</code> initialized to the arbitrary size and using default circular progress indicator. * @param dim Preferred size of the label. */ public JXBusyLabel(Dimension dim) { super(); this.setPreferredSize(dim); // Initialize the BusyPainter. getBusyPainter(); }
/** * Sets direction of rotation. <code>Direction.RIGHT</code> is the default * value. Direction is taken from the very top point so <code>Direction.RIGHT</code> enables rotation clockwise. * @param dir Direction of rotation. */ public void setDirection(BusyPainter.Direction dir) { direction = dir; getBusyPainter().setDirection(dir); }
/** * Creates a new instance of <code>JXBusyLabel</code> initialized to the arbitrary size and using default circular progress indicator. * @param dim Preferred size of the label. */ public JXBusyLabel(Dimension dim) { super(); this.setPreferredSize(dim); // Initialize the BusyPainter. getBusyPainter(); }
/** * Sets direction of rotation. <code>Direction.RIGHT</code> is the default * value. Direction is taken from the very top point so <code>Direction.RIGHT</code> enables rotation clockwise. * @param dir Direction of rotation. */ public void setDirection(BusyPainter.Direction dir) { direction = dir; getBusyPainter().setDirection(dir); }
/** * Sets direction of rotation. <code>Direction.RIGHT</code> is the default * value. Direction is taken from the very top point so <code>Direction.RIGHT</code> enables rotation clockwise. * @param dir Direction of rotation. */ public void setDirection(BusyPainter.Direction dir) { direction = dir; getBusyPainter().setDirection(dir); }
/** * Creates a new instance of <code>JXBusyLabel</code> initialized to the arbitrary size and using default circular progress indicator. * @param dim Preferred size of the label. */ public JXBusyLabel(Dimension dim) { super(); this.setPreferredSize(dim); // Initialize the BusyPainter. getBusyPainter(); }
/** * Creates a new instance of <code>JXBusyLabel</code> initialized to the arbitrary size and using default circular progress indicator. * @param dim Preferred size of the label. */ public JXBusyLabel(Dimension dim) { super(); this.setPreferredSize(dim); // Initialize the BusyPainter. getBusyPainter(); }
/** * Sets direction of rotation. <code>Direction.RIGHT</code> is the default * value. Direction is taken from the very top point so <code>Direction.RIGHT</code> enables rotation clockwise. * @param dir Direction of rotation. */ public void setDirection(BusyPainter.Direction dir) { direction = dir; getBusyPainter().setDirection(dir); }
/** * Sets direction of rotation. <code>Direction.RIGHT</code> is the default * value. Direction is taken from the very top point so <code>Direction.RIGHT</code> enables rotation clockwise. * @param dir Direction of rotation. */ public void setDirection(Direction dir) { direction = dir; getBusyPainter().setDirection(dir); }
/** * Creates a new instance of <code>JXBusyLabel</code> initialized to the arbitrary size and using default circular progress indicator. * @param dim Preferred size of the label. */ public JXBusyLabel(Dimension dim) { super(); this.setPreferredSize(dim); // Initialize the BusyPainter. getBusyPainter(); }
private void stopAnimation() { if (busy != null) { busy.stop(); getBusyPainter().setFrame(-1); repaint(); busy = null; } }
private void stopAnimation() { if (busy != null) { busy.stop(); getBusyPainter().setFrame(-1); repaint(); busy = null; } }
private void stopAnimation() { if (busy != null) { busy.stop(); getBusyPainter().setFrame(-1); repaint(); busy = null; } }
private void stopAnimation() { if (busy != null) { busy.stop(); getBusyPainter().setFrame(-1); repaint(); busy = null; } }
private void stopAnimation() { if (busy != null) { busy.stop(); getBusyPainter().setFrame(-1); repaint(); busy = null; } }
private void startAnimation() { if(busy != null) { stopAnimation(); } busy = new Timer(delay, new ActionListener() { BusyPainter busyPainter = getBusyPainter(); int frame = busyPainter.getPoints(); public void actionPerformed(ActionEvent e) { frame = (frame+1)%busyPainter.getPoints(); busyPainter.setFrame(direction == Direction.LEFT ? busyPainter.getPoints() - frame : frame); frameChanged(); } }); busy.start(); }
private void startAnimation() { if(busy != null) { stopAnimation(); } busy = new Timer(delay, new ActionListener() { BusyPainter busyPainter = getBusyPainter(); int frame = busyPainter.getPoints(); @Override public void actionPerformed(ActionEvent e) { frame = (frame+1)%busyPainter.getPoints(); busyPainter.setFrame(direction == BusyPainter.Direction.LEFT ? busyPainter.getPoints() - frame : frame); frameChanged(); } }); busy.start(); }
private void startAnimation() { if(busy != null) { stopAnimation(); } busy = new Timer(delay, new ActionListener() { BusyPainter busyPainter = getBusyPainter(); int frame = busyPainter.getPoints(); @Override public void actionPerformed(ActionEvent e) { frame = (frame+1)%busyPainter.getPoints(); busyPainter.setFrame(direction == BusyPainter.Direction.LEFT ? busyPainter.getPoints() - frame : frame); frameChanged(); } }); busy.start(); }
private void startAnimation() { if(busy != null) { stopAnimation(); } busy = new Timer(delay, new ActionListener() { BusyPainter busyPainter = getBusyPainter(); int frame = busyPainter.getPoints(); @Override public void actionPerformed(ActionEvent e) { frame = (frame+1)%busyPainter.getPoints(); busyPainter.setFrame(direction == BusyPainter.Direction.LEFT ? busyPainter.getPoints() - frame : frame); frameChanged(); } }); busy.start(); }
private void startAnimation() { if(busy != null) { stopAnimation(); } busy = new Timer(delay, new ActionListener() { BusyPainter busyPainter = getBusyPainter(); int frame = busyPainter.getPoints(); @Override public void actionPerformed(ActionEvent e) { frame = (frame+1)%busyPainter.getPoints(); busyPainter.setFrame(direction == BusyPainter.Direction.LEFT ? busyPainter.getPoints() - frame : frame); frameChanged(); } }); busy.start(); }