Lines Matching refs:progressBar

71     protected JProgressBar progressBar;
80 progressBar = (JProgressBar)c;
89 progressBar = null;
93 progressBar.setOpaque(false);
94 LookAndFeel.installBorder(progressBar, "ProgressBar.border");
95 LookAndFeel.installColorsAndFont(progressBar, "ProgressBar.background", "ProgressBar.foreground", "ProgressBar.font");
100 LookAndFeel.uninstallBorder(progressBar);
104 progressBar.addChangeListener(this); // Listen for changes in the progress bar's data
105 progressBar.addPropertyChangeListener(this); // Listen for changes between determinate and indeterminate state
106 progressBar.addAncestorListener(this);
107 AquaUtilControlSize.addSizePropertyListener(progressBar);
111 AquaUtilControlSize.removeSizePropertyListener(progressBar);
112 progressBar.removeAncestorListener(this);
113 progressBar.removePropertyChangeListener(this);
114 progressBar.removeChangeListener(this);
118 progressBar.repaint();
124 if (!progressBar.isIndeterminate()) return;
127 if (progressBar.isDisplayable()) {
134 progressBar.repaint();
145 if (!progressBar.isIndeterminate()) return;
146 if (progressBar.isDisplayable()) {
160 if (progressBar.isIndeterminate()) {
173 painter.state.setValue(checkValue(progressBar.getPercentComplete()));
183 final Insets i = progressBar.getInsets();
184 final int width = progressBar.getWidth() - (i.right + i.left);
185 final int height = progressBar.getHeight() - (i.bottom + i.top);
189 if (!progressBar.getComponentOrientation().isLeftToRight()) {
193 g2.translate(-progressBar.getWidth(), 0);
195 painter.paint(g, progressBar, i.left, i.top, width, height);
198 if (progressBar.isStringPainted() && !progressBar.isIndeterminate()) {
213 final String progressString = progressBar.getString();
214 g2.setFont(progressBar.getFont());
220 SwingUtilities2.drawString(progressBar, g2, progressString, renderLocation.x, renderLocation.y);
225 g2.translate(-progressBar.getHeight(), 0);
230 SwingUtilities2.drawString(progressBar, g2, progressString, renderLocation.x, renderLocation.y);
244 final FontMetrics fontSizer = progressBar.getFontMetrics(progressBar.getFont());
271 final FontMetrics metrics = progressBar.getFontMetrics(progressBar.getFont());
274 final Insets insets = progressBar.getInsets();
284 if (!progressBar.isStringPainted()) return size;
287 final String progString = progressBar.getString();
308 if (!progressBar.isStringPainted()) return size;
311 final String progString = progressBar.getString();
330 final Dimension pref = getPreferredSize(progressBar);
348 final Dimension pref = getPreferredSize(progressBar);
377 int height = progressBar.getHeight();
378 int width = progressBar.getWidth();
415 return progressBar.getOrientation() == SwingConstants.HORIZONTAL;
419 if (progressBar.isIndeterminate()) return;
426 final BoundedRangeModel model = progressBar.getModel();
436 progressBar.repaint();
440 progressBar.repaint(repaintRect);