Lines Matching refs:label

494      * Returns true if all the labels from the label table have the same
497 * @return true if all the labels from the label table have the
511 JComponent label = (JComponent) elements.nextElement();
512 Dimension pref = label.getPreferredSize();
513 int labelBaseline = label.getBaseline(pref.width,
853 * Calculates the label rectangle.
931 * Returns the width of the widest label.
932 * @return the width of the widest label
941 JComponent label = (JComponent) dictionary.get(keys.nextElement());
942 widest = Math.max( label.getPreferredSize().width, widest );
949 * Returns the height of the tallest label.
950 * @return the height of the tallest label
959 JComponent label = (JComponent) dictionary.get(keys.nextElement());
960 tallest = Math.max( label.getPreferredSize().height, tallest );
967 * Returns the width of the highest value label.
968 * @return the width of the highest value label
971 Component label = getHighestValueLabel();
974 if ( label != null ) {
975 width = label.getPreferredSize().width;
982 * Returns the width of the lowest value label.
983 * @return the width of the lowest value label
986 Component label = getLowestValueLabel();
989 if ( label != null ) {
990 width = label.getPreferredSize().width;
997 * Returns the height of the highest value label.
998 * @return the height of the highest value label
1001 Component label = getHighestValueLabel();
1004 if ( label != null ) {
1005 height = label.getPreferredSize().height;
1012 * Returns the height of the lowest value label.
1013 * @return the height of the lowest value label
1016 Component label = getLowestValueLabel();
1019 if ( label != null ) {
1020 height = label.getPreferredSize().height;
1043 * Returns the biggest value that has an entry in the label table.
1045 * @return biggest value that has an entry in the label table, or
1073 * Returns the smallest value that has an entry in the label table.
1075 * @return smallest value that has an entry in the label table, or
1104 * Returns the label that corresponds to the highest slider value in the
1105 * label table.
1107 * @return the label that corresponds to the highest slider value in the
1108 * label table
1120 * Returns the label that corresponds to the lowest slider value in the
1121 * label table.
1123 * @return the label that corresponds to the lowest slider value in the
1124 * label table
1396 JComponent label = (JComponent) dictionary.get(key);
1397 label.setEnabled(enabled);
1399 if (label instanceof JLabel) {
1400 Icon icon = label.isEnabled() ? ((JLabel) label).getIcon() : ((JLabel) label).getDisabledIcon();
1411 paintHorizontalLabel( g, value, label );
1418 label.getPreferredSize().width;
1421 paintVerticalLabel( g, value, label );
1431 * Called for every label in the label table. Used to draw the labels for
1437 * @param label the component label in the label table that needs to be
1441 protected void paintHorizontalLabel( Graphics g, int value, Component label ) {
1443 int labelLeft = labelCenter - (label.getPreferredSize().width / 2);
1445 label.paint( g );
1450 * Called for every label in the label table. Used to draw the labels for
1456 * @param label the component label in the label table that needs to be
1460 protected void paintVerticalLabel( Graphics g, int value, Component label ) {
1462 int labelTop = labelCenter - (label.getPreferredSize().height / 2);
1464 label.paint( g );