Lines Matching refs:progressBar

59     protected JProgressBar progressBar;  field in BasicProgressBarUI
152 progressBar = (JProgressBar)c; in installUI()
155 if (progressBar.isIndeterminate()) { in installUI()
161 if (progressBar.isIndeterminate()) { in uninstallUI()
166 progressBar = null; in uninstallUI()
173 LookAndFeel.installProperty(progressBar, "opaque", Boolean.TRUE); in installDefaults()
174 LookAndFeel.installBorder(progressBar,"ProgressBar.border"); in installDefaults()
175 LookAndFeel.installColorsAndFont(progressBar, in installDefaults()
190 LookAndFeel.uninstallBorder(progressBar); in uninstallDefaults()
199 progressBar.addChangeListener(changeListener); in installListeners()
202 progressBar.addPropertyChangeListener(getHandler()); in installListeners()
262 progressBar.removeChangeListener(changeListener); in uninstallListeners()
263 progressBar.removePropertyChangeListener(getHandler()); in uninstallListeners()
278 if (progressBar.isStringPainted() && in getBaseline()
279 progressBar.getOrientation() == JProgressBar.HORIZONTAL) { in getBaseline()
280 FontMetrics metrics = progressBar. in getBaseline()
281 getFontMetrics(progressBar.getFont()); in getBaseline()
282 Insets insets = progressBar.getInsets(); in getBaseline()
303 if (progressBar.isStringPainted() && in getBaselineResizeBehavior()
304 progressBar.getOrientation() == JProgressBar.HORIZONTAL) { in getBaselineResizeBehavior()
325 Dimension horizDim = (Dimension)DefaultLookup.get(progressBar, this, in getPreferredInnerHorizontal()
339 Dimension vertDim = (Dimension)DefaultLookup.get(progressBar, this, in getPreferredInnerVertical()
387 if (progressBar.isStringPainted()) { in getCellLength()
414 if (progressBar.isStringPainted()) { in getCellSpacing()
444 BoundedRangeModel model = progressBar.getModel(); in getAmountFull()
447 if (progressBar.getOrientation() == JProgressBar.HORIZONTAL) { in getAmountFull()
449 progressBar.getPercentComplete()); in getAmountFull()
452 progressBar.getPercentComplete()); in getAmountFull()
463 if (progressBar.isIndeterminate()) { in paint()
512 if (progressBar.getOrientation() == JProgressBar.HORIZONTAL) { in getBox()
541 if (progressBar.getOrientation() == JProgressBar.HORIZONTAL) { in updateSizes()
566 if (progressBar.getOrientation() == JProgressBar.HORIZONTAL) { in getGenericBox()
645 Insets b = progressBar.getInsets(); // area for border in paintIndeterminate()
646 int barRectWidth = progressBar.getWidth() - (b.right + b.left); in paintIndeterminate()
647 int barRectHeight = progressBar.getHeight() - (b.top + b.bottom); in paintIndeterminate()
658 g2.setColor(progressBar.getForeground()); in paintIndeterminate()
664 if (progressBar.isStringPainted()) { in paintIndeterminate()
665 if (progressBar.getOrientation() == JProgressBar.HORIZONTAL) { in paintIndeterminate()
698 Insets b = progressBar.getInsets(); // area for border in paintDeterminate()
699 int barRectWidth = progressBar.getWidth() - (b.right + b.left); in paintDeterminate()
700 int barRectHeight = progressBar.getHeight() - (b.top + b.bottom); in paintDeterminate()
712 g2.setColor(progressBar.getForeground()); in paintDeterminate()
714 if (progressBar.getOrientation() == JProgressBar.HORIZONTAL) { in paintDeterminate()
757 if (progressBar.isStringPainted()) { in paintDeterminate()
779 if (progressBar.getOrientation() == JProgressBar.HORIZONTAL) { in paintString()
780 if (BasicGraphicsUtils.isLeftToRight(progressBar)) { in paintString()
781 if (progressBar.isIndeterminate()) { in paintString()
795 if (progressBar.isIndeterminate()) { in paintString()
827 String progressString = progressBar.getString(); in paintString()
828 g2.setFont(progressBar.getFont()); in paintString()
833 if (progressBar.getOrientation() == JProgressBar.HORIZONTAL) { in paintString()
835 SwingUtilities2.drawString(progressBar, g2, progressString, in paintString()
839 SwingUtilities2.drawString(progressBar, g2, progressString, in paintString()
845 g2.setFont(progressBar.getFont().deriveFont(rotate)); in paintString()
848 SwingUtilities2.drawString(progressBar, g2, progressString, in paintString()
852 SwingUtilities2.drawString(progressBar, g2, progressString, in paintString()
876 FontMetrics fontSizer = SwingUtilities2.getFontMetrics(progressBar, g, in getStringPlacement()
877 progressBar.getFont()); in getStringPlacement()
878 int stringWidth = SwingUtilities2.stringWidth(progressBar, fontSizer, in getStringPlacement()
881 if (progressBar.getOrientation() == JProgressBar.HORIZONTAL) { in getStringPlacement()
897 Insets border = progressBar.getInsets(); in getPreferredSize()
898 FontMetrics fontSizer = progressBar.getFontMetrics( in getPreferredSize()
899 progressBar.getFont()); in getPreferredSize()
901 if (progressBar.getOrientation() == JProgressBar.HORIZONTAL) { in getPreferredSize()
904 if (progressBar.isStringPainted()) { in getPreferredSize()
906 String progString = progressBar.getString(); in getPreferredSize()
908 progressBar, fontSizer, progString); in getPreferredSize()
926 if (progressBar.isStringPainted()) { in getPreferredSize()
927 String progString = progressBar.getString(); in getPreferredSize()
935 progressBar, fontSizer, progString); in getPreferredSize()
952 Dimension pref = getPreferredSize(progressBar); in getMinimumSize()
953 if (progressBar.getOrientation() == JProgressBar.HORIZONTAL) { in getMinimumSize()
962 Dimension pref = getPreferredSize(progressBar); in getMaximumSize()
963 if (progressBar.getOrientation() == JProgressBar.HORIZONTAL) { in getMaximumSize()
1015 progressBar.repaint(); in setAnimationIndex()
1037 progressBar.repaint(nextPaintRect); in setAnimationIndex()
1039 progressBar.repaint(); in setAnimationIndex()
1049 componentInnards = SwingUtilities.calculateInnerArea(progressBar, in sizeChanged()
1103 repaintInterval = DefaultLookup.getInt(progressBar, in initRepaintInterval()
1127 cycleTime = DefaultLookup.getInt(progressBar, this, in initCycleTime()
1174 progressBar.addHierarchyListener(getHandler()); in initIndeterminateValues()
1177 if (progressBar.isDisplayable()) { in initIndeterminateValues()
1185 if (progressBar.isDisplayable()) { in cleanUpIndeterminateValues()
1197 progressBar.removeHierarchyListener(getHandler()); in cleanUpIndeterminateValues()
1203 if ((progressBar.getOrientation() == JProgressBar.HORIZONTAL) && in initAnimationIndex()
1204 (BasicGraphicsUtils.isLeftToRight(progressBar))) { in initAnimationIndex()
1314 BoundedRangeModel model = progressBar.getModel(); in stateChanged()
1327 progressBar.repaint(); in stateChanged()
1335 if (progressBar.isIndeterminate()) { in propertyChange()
1341 progressBar.repaint(); in propertyChange()
1348 if (progressBar.isIndeterminate()) { in hierarchyChanged()
1349 if (progressBar.isDisplayable()) { in hierarchyChanged()