Lines Matching refs:insets

304      * Returns the Insets. If <code>insets</code> is non-null the resulting
305 * insets will be placed in it, otherwise a new Insets object will be
309 * @param insets Where to place Insets
313 public Insets getInsets(SynthContext state, Insets insets) {
318 if (insets == null) {
319 insets = new Insets(0, 0, 0, 0);
321 insets.top = insets.bottom = insets.left = insets.right = 0;
328 return getSimpleInsets(state, insets, 1);
330 return getButtonInsets(state, insets);
334 return getRadioInsets(state, insets);
337 return getMenuBarInsets(state, insets);
343 return getMenuItemInsets(state, insets);
346 return getTextFieldInsets(state, insets);
349 insets = Metacity.INSTANCE.getBorderInsets(state, insets);
353 return getButtonInsets(state, insets);
356 return getTextFieldInsets(state, insets);
359 return getSimpleInsets(state, insets, 1);
363 return getSimpleInsets(state, insets, 6);
366 return getSimpleInsets(state, insets, 2);
373 return getThicknessInsets(state, insets);
376 return getScrollBarInsets(state, insets);
379 return getSliderTrackInsets(state, insets);
382 return getTabbedPaneTabInsets(state, insets);
386 return getSimpleInsets(state, insets, 1);
388 return getTextFieldInsets(state, insets);
392 return getSeparatorInsets(state, insets);
394 return getThicknessInsets(state, insets);
396 return insets;
399 private Insets getButtonInsets(SynthContext context, Insets insets) {
409 insets.left = insets.right = w;
410 insets.top = insets.bottom = h;
417 // Include the default border insets, but only for JButtons
424 insets.left += defaultInsets.left;
425 insets.right += defaultInsets.right;
426 insets.top += defaultInsets.top;
427 insets.bottom += defaultInsets.bottom;
430 return insets;
436 private Insets getRadioInsets(SynthContext context, Insets insets) {
449 insets.top = totalFocus;
450 insets.bottom = totalFocus;
452 insets.left = 0;
453 insets.right = totalFocus;
455 insets.left = totalFocus;
456 insets.right = 0;
459 return insets;
462 private Insets getMenuBarInsets(SynthContext context, Insets insets) {
469 insets.left = insets.right = xThickness + internalPadding;
470 insets.top = insets.bottom = yThickness + internalPadding;
471 return insets;
474 private Insets getMenuItemInsets(SynthContext context, Insets insets) {
481 insets.left = insets.right = xThickness + horizPadding;
482 insets.top = insets.bottom = yThickness;
483 return insets;
486 private Insets getThicknessInsets(SynthContext context, Insets insets) {
487 insets.left = insets.right = getXThickness();
488 insets.top = insets.bottom = getYThickness();
489 return insets;
492 private Insets getSeparatorInsets(SynthContext context, Insets insets) {
498 insets.right = insets.left = getXThickness() + horizPadding;
499 insets.top = insets.bottom = getYThickness();
500 return insets;
503 private Insets getSliderTrackInsets(SynthContext context, Insets insets) {
506 insets.top = insets.bottom =
507 insets.left = insets.right = focusSize + focusPad;
508 return insets;
511 private Insets getSimpleInsets(SynthContext context, Insets insets, int n) {
512 insets.top = insets.bottom = insets.right = insets.left = n;
513 return insets;
516 private Insets getTabbedPaneTabInsets(SynthContext context, Insets insets) {
522 insets.left = insets.right = focusSize + pad + xThickness;
523 insets.top = insets.bottom = focusSize + pad + yThickness;
524 return insets;
528 private Insets getTextFieldInsets(SynthContext context, Insets insets) {
529 insets = getClassSpecificInsetsValue(context, "inner-border",
530 getSimpleInsets(context, insets, 2));
542 insets.left += focusSize + xThickness;
543 insets.right += focusSize + xThickness;
544 insets.top += focusSize + yThickness;
545 insets.bottom += focusSize + yThickness;
546 return insets;
549 private Insets getScrollBarInsets(SynthContext context, Insets insets) {
552 insets.left = insets.right = insets.top = insets.bottom = troughBorder;
563 insets.top += spacing;
566 insets.left += spacing;
568 insets.right += spacing;
580 insets.left += totalFocus;
581 insets.right += totalFocus;
582 insets.top += totalFocus;
583 insets.bottom += totalFocus;
586 return insets;
593 * currently in use (e.g. we need to figure out the insets for a