Searched refs:hsb (Results 1 - 12 of 12) sorted by relevance

/openjdk7/jdk/test/javax/swing/JColorChooser/
H A DTest4193384.java50 float[] hsb = new float[3];
55 Color.RGBtoHSB(color.getRed(), color.getGreen(), color.getBlue(), hsb);
56 if (!color.equals(Color.getHSBColor(hsb[0], hsb[1], hsb[2]))) {
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/motif/
H A DMotifScrollPaneUI.java111 JScrollBar hsb = scrollpane.getHorizontalScrollBar();
112 if (hsb != null) {
113 hsbBorder = new CompoundBorder(hsbMarginBorder, hsb.getBorder());
114 hsb.setBorder(hsbBorder);
130 JScrollBar hsb = scrollpane.getHorizontalScrollBar();
131 if (hsb != null) {
132 if (hsb.getBorder() == hsbBorder) {
133 hsb.setBorder(null);
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/
H A DXScrollPanePeer.java49 XHorizontalScrollbar hsb; field in class:XScrollPanePeer
78 hsb = new XHorizontalScrollbar(this);
101 hsb.setValues(0, w, 0, w, unitIncrement, Math.max(1, (int)(w * 0.90)));
102 hsb.setSize(w, hsbSpace-SCROLLBAR_INSET);
193 hsb.setValues(hsb.getValue(), vis, 0, max);
194 hsb.setBlockIncrement((int)(hsb.getVisibleAmount() * .90));
195 hsb.setSize(width-vsbSpace, hsbSpace-SCROLLBAR_INSET);
197 // hadj.setVisibleAmount(hsb
[all...]
H A DListHelper.java71 private XHorizontalScrollbar hsb; // null if unsupported field in class:ListHelper
115 hsb = new XHorizontalScrollbar(this);
116 hsb.setValues(0, 0, 0, 0, 1, 1);
370 public XHorizontalScrollbar getHSB() { return hsb; }
386 assert hsb != null : "Horiz scrollbar is visible, yet is null?";
422 // FIXME: check if added item makes a hsb necessary (if supported, that of course)
435 else if ((sb == hsb) && hsbVis) {
466 else if ((XHorizontalScrollbar)obj == hsb) {
467 hsb.setValue(v);
484 XHorizontalScrollbar hsb) {
619 doWheelScroll(XVerticalScrollbar vsb, XHorizontalScrollbar hsb, MouseWheelEvent e) argument
[all...]
H A DXListPeer.java69 XHorizontalScrollbar hsb; field in class:XListPeer
211 hsb = new XHorizontalScrollbar(this);
212 hsb.setValues(0, 0, 0, 0, HORIZ_SCROLL_AMT, HORIZ_SCROLL_AMT);
369 if (scrollbar == hsb) {
466 hsb.setValues(hsb.getValue(), vis, hsb.getMinimum(), maximum);
486 hsb.setValues(hsb.getValue(), vis, hsb
[all...]
H A DXTextAreaPeer.java262 JScrollBar hsb = textPane.getHorizontalScrollBar();
263 if (hsb != null) {
264 hsbheight = hsb.getMinimumSize().height;
1101 JScrollBar hsb = scrollpane.getHorizontalScrollBar();
1102 if (hsb != null) {
1103 hsbBorder = new CompoundBorder(hsbMarginBorder, hsb.getBorder());
1104 hsb.setBorder(hsbBorder);
1119 JScrollBar hsb = scrollpane.getHorizontalScrollBar();
1120 if (hsb != null) {
1121 if (hsb
[all...]
H A DXComponentPeer.java871 float[] hsb = Color.RGBtoHSB(rgb[0],rgb[1],rgb[2],null);
873 hue = hsb[0];
874 saturation = hsb[1];
875 backb = hsb[2];
/openjdk7/jdk/src/share/classes/javax/swing/
H A DScrollPaneLayout.java85 protected JScrollBar hsb; field in class:ScrollPaneLayout
174 hsb = sp.getHorizontalScrollBar();
236 hsb = (JScrollBar)addSingletonComponent(hsb, c);
275 else if (c == hsb) {
276 hsb = null;
394 return hsb;
563 if ((hsb != null) && (hsbPolicy != HORIZONTAL_SCROLLBAR_NEVER)) {
565 prefHeight += hsb.getPreferredSize().height;
573 prefHeight += hsb
[all...]
H A DJScrollPane.java657 JScrollBar hsb = getHorizontalScrollBar();
658 if ((hsb != null) && (hsb.isVisible())) {
659 borderR.height -= hsb.getHeight();
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/
H A DMetalScrollPaneUI.java74 JScrollBar hsb = sp.getHorizontalScrollBar();
76 if (hsb != null) {
77 hsb.putClientProperty( MetalScrollBarUI.FREE_STANDING_PROP, null);
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/
H A DBasicScrollPaneUI.java147 JScrollBar hsb = scrollpane.getHorizontalScrollBar();
156 if (hsb != null) {
157 hsb.getModel().addChangeListener(hsbChangeListener);
158 hsb.addPropertyChangeListener(hsbPropertyChangeListener);
217 JScrollBar hsb = scrollpane.getHorizontalScrollBar();
226 if (hsb != null) {
227 hsb.getModel().removeChangeListener(hsbChangeListener);
228 hsb.removePropertyChangeListener(hsbPropertyChangeListener);
271 JScrollBar hsb = scrollpane.getHorizontalScrollBar();
288 if (hsb !
[all...]
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/
H A DGTKColorChooserPanel.java401 * Resets the hsb values.
424 * @param updateHSB if true, the hsb fields are updated based on the
437 float[] hsb = Color.RGBtoHSB(color.getRed(), color.getGreen(),
439 hue = hsb[0];
440 saturation = hsb[1];
441 brightness = hsb[2];

Completed in 65 milliseconds