Examples of MarginBorder


Examples of javax.swing.plaf.basic.BasicBorders.MarginBorder

        return result;
    }

    private static Border createCompoundBorder(final Border b) {
        return new BorderUIResource.CompoundBorderUIResource(b, new MarginBorder());
    }
View Full Code Here

Examples of javax.swing.plaf.basic.BasicBorders.MarginBorder

        return result;
    }

    private static Border createCompoundBorder(final Border b) {
        return new BorderUIResource.CompoundBorderUIResource(b, new MarginBorder());
    }
View Full Code Here

Examples of javax.swing.plaf.basic.BasicBorders.MarginBorder

        new BorderUIResource.CompoundBorderUIResource(
            SubstanceSizeUtils.getCheckBoxBorder(
                SubstanceSizeUtils.getControlFontSize(),
                ComponentOrientation.getOrientation(
                    Locale.getDefault()).isLeftToRight()),
            new MarginBorder()),

        "CheckBox.disabledText",
        disabledForegroundColor,

        "CheckBox.foreground",
        foregroundColor,

        "CheckBoxMenuItem.acceleratorForeground",
        foregroundColor,

        "CheckBoxMenuItem.acceleratorSelectionForeground",
        foregroundColor,

        "CheckBoxMenuItem.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(false, skin,
            false),

        "CheckBoxMenuItem.borderPainted",
        Boolean.FALSE,

        "CheckBoxMenuItem.checkIcon",
        new CheckBoxMenuItemIcon(null,
            1 + SubstanceSizeUtils
                .getMenuCheckMarkSize(SubstanceSizeUtils
                    .getControlFontSize())),

        "CheckBoxMenuItem.disabledForeground",
        disabledForegroundColor,

        "CheckBoxMenuItem.foreground",
        foregroundColor,

        "CheckBoxMenuItem.margin",
        menuItemInsets,

        "CheckBoxMenuItem.selectionForeground",
        selectionCellForegroundColor,

        "ColorChooser.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(false, skin,
            false),

        "ColorChooser.foreground",
        foregroundColor,

        "ComboBox.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(false, skin,
            false),

        "ComboBox.border",
        comboBorder,

        "ComboBox.disabledBackground",
        textBackgroundColor,

        "ComboBox.disabledForeground",
        disabledForegroundColor,

        "ComboBox.foreground",
        foregroundColor,

        "ComboBox.selectionBackground",
        selectionCellBackgroundColor,

        "ComboBox.selectionForeground",
        selectionCellForegroundColor,

        "DesktopIcon.border",
        regularMarginBorder,

        "DesktopIcon.width",
        new Integer(140),

        "Desktop.background",
        new ColorUIResource(new Color(0x0, true)),

        "Desktop.foreground",
        foregroundColor,

        "Dialog.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(false, skin,
            false),

        "EditorPane.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(true, skin,
            false),

        "EditorPane.border",
        textMarginBorder,

        "EditorPane.foreground",
        foregroundColor,

        "EditorPane.caretForeground",
        foregroundColor,

        "EditorPane.disabledBackground",
        SubstanceColorUtilities.getDefaultBackgroundColor(true, skin,
            true),

        "EditorPane.inactiveBackground",
        SubstanceColorUtilities.getDefaultBackgroundColor(true, skin,
            true),

        "EditorPane.inactiveForeground",
        disabledTextComponentForegroundColor,

        "EditorPane.selectionBackground",
        selectionTextBackgroundColor,

        "EditorPane.selectionForeground",
        selectionTextForegroundColor,

        "FileChooser.upFolderIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/go-up.png");
          }
        },

        "FileChooser.newFolderIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/folder-new.png");
          }
        },

        "FileChooser.homeFolderIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/user-home.png");
          }
        },

        "FileChooser.listViewIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/application_view_list.png");
          }
        },

        "FileChooser.detailsViewIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/application_view_detail.png");
          }
        },

        "FileChooser.usesSingleFilePane",
        Boolean.TRUE,

        "FileView.computerIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/computer.png");
          }
        },

        "FileView.directoryIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/folder.png");
          }
        },

        "FileView.fileIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/text-x-generic.png");
          }
        },

        "FileView.floppyDriveIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/media-floppy.png");
          }
        },

        "FileView.hardDriveIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/drive-harddisk.png");
          }
        },

        "FormattedTextField.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(true, skin,
            false),

        "FormattedTextField.border",
        textBorder,

        "FormattedTextField.caretForeground",
        foregroundColor,

        "FormattedTextField.disabledBackground",
        SubstanceColorUtilities.getDefaultBackgroundColor(true, skin,
            true),

        "FormattedTextField.foreground",
        foregroundColor,

        "FormattedTextField.inactiveBackground",
        SubstanceColorUtilities.getDefaultBackgroundColor(true, skin,
            true),

        "FormattedTextField.inactiveForeground",
        disabledTextComponentForegroundColor,

        "FormattedTextField.selectionBackground",
        selectionTextBackgroundColor,

        "FormattedTextField.selectionForeground",
        selectionTextForegroundColor,

        "InternalFrame.activeTitleBackground",
        selectionTextForegroundColor,

        "InternalFrame.inactiveTitleBackground",
        foregroundColor,

        "InternalFrame.border",
        new BorderUIResource(new SubstancePaneBorder()),

        "InternalFrame.closeIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceImageCreator.getCloseIcon(
                titlePaneScheme, titlePaneScheme);
          }
        },

        "InternalFrame.iconifyIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceImageCreator.getMinimizeIcon(
                titlePaneScheme, titlePaneScheme);
          }
        },

        "InternalFrame.maximizeIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceImageCreator.getMaximizeIcon(
                titlePaneScheme, titlePaneScheme);
          }
        },

        "InternalFrame.minimizeIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceImageCreator.getRestoreIcon(
                titlePaneScheme, titlePaneScheme);
          }
        },

        "InternalFrame.paletteCloseIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceImageCreator.getCloseIcon(
                titlePaneScheme, titlePaneScheme);
          }
        },

        "Label.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(false, skin,
            false),

        "Label.foreground",
        foregroundColor,

        "Label.disabledText",
        disabledForegroundColor,

        "Label.disabledForeground",
        disabledForegroundColor,

        "List.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(false, skin,
            false),

        "List.cellRenderer",
        listCellRendererActiveValue,

        "List.focusCellHighlightBorder",
        new SubstanceBorder(new Insets(1, 1, 1, 1)),

        "List.focusSelectedCellHighlightBorder",
        new BorderUIResource.EmptyBorderUIResource(1, 1, 1, 1),

        "List.foreground",
        foregroundColor,

        "List.selectionBackground",
        selectionCellBackgroundColor,

        "List.selectionForeground",
        selectionCellForegroundColor,

        "Menu.arrowIcon",
        menuArrowIcon,

        "Menu.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(false, skin,
            false),

        "Menu.borderPainted",
        Boolean.FALSE,

        "Menu.checkIcon",
        null,

        "Menu.disabledForeground",
        disabledForegroundColor,

        "Menu.foreground",
        foregroundColor,

        "Menu.margin",
        menuItemInsets,

        "Menu.selectionForeground",
        selectionCellForegroundColor,

        "MenuBar.background",
        skin.isRegisteredAsDecorationArea(DecorationAreaType.HEADER) ? new ColorUIResource(
            skin.getActiveColorScheme(DecorationAreaType.HEADER)
                .getMidColor()) : SubstanceColorUtilities
            .getDefaultBackgroundColor(false, skin, false),

        "MenuBar.foreground",
        new ColorUIResource(skin.getActiveColorScheme(
            DecorationAreaType.HEADER).getForegroundColor()),

        "MenuBar.border",
        null,

        "MenuItem.acceleratorForeground",
        foregroundColor,

        "MenuItem.acceleratorSelectionForeground",
        foregroundColor,

        "MenuItem.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(false, skin,
            false),

        "MenuItem.borderPainted",
        Boolean.FALSE,

        "MenuItem.checkIcon",
        null,

        "MenuItem.disabledForeground",
        disabledForegroundColor,

        "MenuItem.foreground",
        foregroundColor,

        "MenuItem.margin",
        menuItemInsets,

        "MenuItem.selectionForeground",
        selectionCellForegroundColor,

        "OptionPane.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(false, skin,
            false),

        "OptionPane.errorIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/32/dialog-error.png");
          }
        },

        "OptionPane.foreground",
        foregroundColor,

        "OptionPane.informationIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/32/dialog-information.png");
          }
        },

        "OptionPane.messageForeground",
        foregroundColor,

        "OptionPane.questionIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/32/help-browser.png");
          }
        },

        "OptionPane.warningIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/32/dialog-warning.png");
          }
        },

        "Panel.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(false, skin,
            false),

        "Panel.foreground",
        foregroundColor,

        "PasswordField.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(true, skin,
            false),

        "PasswordField.border",
        textBorder,

        "PasswordField.caretForeground",
        foregroundColor,

        "PasswordField.disabledBackground",
        SubstanceColorUtilities.getDefaultBackgroundColor(true, skin,
            true),

        "PasswordField.foreground",
        foregroundColor,

        "PasswordField.inactiveBackground",
        SubstanceColorUtilities.getDefaultBackgroundColor(true, skin,
            true),

        "PasswordField.inactiveForeground",
        disabledTextComponentForegroundColor,

        "PasswordField.selectionBackground",
        selectionTextBackgroundColor,

        "PasswordField.selectionForeground",
        selectionTextForegroundColor,

        "PopupMenu.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(false, skin,
            false),

        "PopupMenu.border",
        regularMarginBorder,

        "ProgressBar.border",
        new BorderUIResource(new SubstanceBorder()),

        "ProgressBar.cycleTime",
        new Integer(1000),

        "ProgressBar.repaintInterval",
        new Integer(50),

        "ProgressBar.horizontalSize",
        new DimensionUIResource(146,
            SubstanceSizeUtils.getControlFontSize()),

        "ProgressBar.verticalSize",
        new DimensionUIResource(
            SubstanceSizeUtils.getControlFontSize(), 146),

        "ProgressBar.selectionBackground",
        foregroundColor,

        "ProgressBar.selectionForeground",
        foregroundColor,

        "RadioButton.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(false, skin,
            false),

        "RadioButton.border",
        new BorderUIResource.CompoundBorderUIResource(
            SubstanceSizeUtils.getRadioButtonBorder(
                SubstanceSizeUtils.getControlFontSize(),
                ComponentOrientation.getOrientation(
                    Locale.getDefault()).isLeftToRight()),
            new MarginBorder()),

        "RadioButton.foreground",
        foregroundColor,

        "RadioButton.disabledText",
View Full Code Here

Examples of javax.swing.plaf.basic.BasicBorders.MarginBorder

            JCheckBox.class, skin, false),

        "CheckBox.border",
        new BorderUIResource.CompoundBorderUIResource(
            SubstanceSizeUtils.getCheckBoxBorder(SubstanceSizeUtils
                .getControlFontSize()), new MarginBorder()),

        "CheckBox.disabledText",
        disabledForegroundColor,

        "CheckBox.foreground",
        foregroundColor,

        "CheckBoxMenuItem.acceleratorForeground",
        foregroundColor,

        "CheckBoxMenuItem.acceleratorSelectionForeground",
        foregroundColor,

        "CheckBoxMenuItem.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(
            JCheckBoxMenuItem.class, skin, false),

        "CheckBoxMenuItem.borderPainted",
        Boolean.FALSE,

        "CheckBoxMenuItem.checkIcon",
        new CheckBoxMenuItemIcon(null, 1 + SubstanceSizeUtils
            .getMenuCheckMarkSize(SubstanceSizeUtils
                .getControlFontSize())),

        "CheckBoxMenuItem.disabledForeground",
        disabledForegroundColor,

        "CheckBoxMenuItem.foreground",
        foregroundColor,

        "CheckBoxMenuItem.margin",
        menuItemInsets,

        "CheckBoxMenuItem.selectionForeground",
        selectionCellForegroundColor,

        "ColorChooser.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(
            JColorChooser.class, skin, false),

        "ColorChooser.foreground",
        foregroundColor,

        "ComboBox.ancestorInputMap",
        new UIDefaults.LazyInputMap(new Object[] { "ESCAPE",
            "hidePopup",

            "PAGE_UP", "pageUpPassThrough",

            "PAGE_DOWN", "pageDownPassThrough",

            "HOME", "homePassThrough",

            "END", "endPassThrough",

            "DOWN", "selectNext",

            "KP_DOWN", "selectNext",

            "alt DOWN", "togglePopup",

            "alt KP_DOWN", "togglePopup",

            "alt UP", "togglePopup",

            "alt KP_UP", "togglePopup",

            "SPACE", "spacePopup",

            "ENTER", "enterPressed",

            "UP", "selectPrevious",

            "KP_UP", "selectPrevious" }),

        "ComboBox.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(
            JComboBox.class, skin, false),

        "ComboBox.border",
        comboBorder,

        "ComboBox.disabledBackground",
        textBackgroundColor,

        "ComboBox.disabledForeground",
        disabledForegroundColor,

        "ComboBox.foreground",
        foregroundColor,

        "ComboBox.selectionBackground",
        selectionCellBackgroundColor,

        "ComboBox.selectionForeground",
        selectionCellForegroundColor,

        "DesktopIcon.border",
        regularMarginBorder,

        "DesktopIcon.width",
        new Integer(140),

        "Desktop.background",
        new ColorUIResource(new Color(0x0, true)),

        "Desktop.foreground",
        foregroundColor,

        "Dialog.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(
            JDialog.class, skin, false),

        "EditorPane.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(
            JEditorPane.class, skin, false),

        "EditorPane.border",
        textMarginBorder,

        "EditorPane.foreground",
        foregroundColor,

        "EditorPane.caretForeground",
        foregroundColor,

        "EditorPane.disabledBackground",
        SubstanceColorUtilities.getDefaultBackgroundColor(
            JEditorPane.class, skin, true),

        "EditorPane.inactiveBackground",
        SubstanceColorUtilities.getDefaultBackgroundColor(
            JEditorPane.class, skin, true),

        "EditorPane.inactiveForeground",
        disabledTextComponentForegroundColor,

        "EditorPane.selectionBackground",
        selectionTextBackgroundColor,

        "EditorPane.selectionForeground",
        selectionTextForegroundColor,

        "FileChooser.upFolderIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/go-up.png");
          }
        },

        "FileChooser.newFolderIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/folder-new.png");
          }
        },

        "FileChooser.homeFolderIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/user-home.png");
          }
        },

        "FileChooser.listViewIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/application_view_list.png");
          }
        },

        "FileChooser.detailsViewIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/application_view_detail.png");
          }
        },

        "FileChooser.viewMenuLabelText",
        "View",

        "FileChooser.refreshActionLabelText",
        "Refresh",

        "FileChooser.newFolderActionLabelText",
        "New Folder",

        "FileChooser.listViewActionLabelText",
        "List",

        "FileChooser.detailsViewActionLabelText",
        "Details",

        "FileChooser.lookInLabelMnemonic",
        new Integer(KeyEvent.VK_I),

        "FileChooser.fileNameLabelMnemonic",
        new Integer(KeyEvent.VK_N),

        "FileChooser.filesOfTypeLabelMnemonic",
        new Integer(KeyEvent.VK_T),

        "FileChooser.usesSingleFilePane",
        Boolean.TRUE,

        "FileChooser.ancestorInputMap",
        new UIDefaults.LazyInputMap(new Object[] { "ESCAPE",
            "cancelSelection", "F2", "editFileName", "F5",
            "refresh", "BACK_SPACE", "Go Up", "ENTER",
            "approveSelection" }),

        "FileView.computerIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/computer.png");
          }
        },

        "FileView.directoryIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/folder.png");
          }
        },

        "FileView.fileIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/text-x-generic.png");
          }
        },

        "FileView.floppyDriveIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/media-floppy.png");
          }
        },

        "FileView.hardDriveIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/drive-harddisk.png");
          }
        },

        "FormattedTextField.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(
            JFormattedTextField.class, skin, false),

        "FormattedTextField.border",
        textBorder,

        "FormattedTextField.caretForeground",
        foregroundColor,

        "FormattedTextField.disabledBackground",
        SubstanceColorUtilities.getDefaultBackgroundColor(
            JFormattedTextField.class, skin, true),

        "FormattedTextField.foreground",
        foregroundColor,

        "FormattedTextField.inactiveBackground",
        SubstanceColorUtilities.getDefaultBackgroundColor(
            JFormattedTextField.class, skin, true),

        "FormattedTextField.inactiveForeground",
        disabledTextComponentForegroundColor,

        "FormattedTextField.selectionBackground",
        selectionTextBackgroundColor,

        "FormattedTextField.selectionForeground",
        selectionTextForegroundColor,

        "InternalFrame.activeTitleBackground",
        selectionTextForegroundColor,

        "InternalFrame.inactiveTitleBackground",
        foregroundColor,

        "InternalFrame.border",
        new BorderUIResource(new SubstancePaneBorder()),

        "InternalFrame.closeIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceImageCreator.getCloseIcon(
                titlePaneScheme, titlePaneScheme);
          }
        },

        "InternalFrame.iconifyIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceImageCreator.getMinimizeIcon(
                titlePaneScheme, titlePaneScheme);
          }
        },

        "InternalFrame.maximizeIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceImageCreator.getMaximizeIcon(
                titlePaneScheme, titlePaneScheme);
          }
        },

        "InternalFrame.minimizeIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceImageCreator.getRestoreIcon(
                titlePaneScheme, titlePaneScheme);
          }
        },

        "InternalFrame.paletteCloseIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceImageCreator.getCloseIcon(
                titlePaneScheme, titlePaneScheme);
          }
        },

        "Label.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(JLabel.class,
            skin, false),

        "Label.foreground",
        foregroundColor,

        "Label.disabledText",
        disabledForegroundColor,

        "Label.disabledForeground",
        disabledForegroundColor,

        "List.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(JList.class,
            skin, false),

        "List.cellRenderer",
        listCellRendererActiveValue,

        "List.focusCellHighlightBorder",
        new SubstanceBorder(new Insets(1, 1, 1, 1)),

        "List.focusSelectedCellHighlightBorder",
        new BorderUIResource.EmptyBorderUIResource(1, 1, 1, 1),

        "List.foreground",
        foregroundColor,

        "List.selectionBackground",
        selectionCellBackgroundColor,

        "List.selectionForeground",
        selectionCellForegroundColor,

        "Menu.arrowIcon",
        menuArrowIcon,

        "Menu.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(JMenu.class,
            skin, false),

        "Menu.borderPainted",
        Boolean.FALSE,

        "Menu.checkIcon",
        null,

        "Menu.disabledForeground",
        disabledForegroundColor,

        "Menu.foreground",
        foregroundColor,

        "Menu.margin",
        menuItemInsets,

        "Menu.selectionForeground",
        selectionCellForegroundColor,

        "MenuBar.background",
        skin.isRegisteredAsDecorationArea(DecorationAreaType.HEADER) ? new ColorUIResource(
            skin
                .getMainActiveColorScheme(
                    DecorationAreaType.HEADER)
                .getMidColor())
            : SubstanceColorUtilities.getDefaultBackgroundColor(
                JMenuBar.class, skin, false),

        "MenuBar.foreground",
        new ColorUIResource(skin.getMainActiveColorScheme(
            DecorationAreaType.HEADER).getForegroundColor()),

        "MenuBar.border",
        null,

        "MenuItem.acceleratorForeground",
        foregroundColor,

        "MenuItem.acceleratorSelectionForeground",
        foregroundColor,

        "MenuItem.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(
            JMenuItem.class, skin, false),

        "MenuItem.borderPainted",
        Boolean.FALSE,

        "MenuItem.checkIcon",
        null,

        "MenuItem.disabledForeground",
        disabledForegroundColor,

        "MenuItem.foreground",
        foregroundColor,

        "MenuItem.margin",
        menuItemInsets,

        "MenuItem.selectionForeground",
        selectionCellForegroundColor,

        "OptionPane.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(
            JOptionPane.class, skin, false),

        "OptionPane.errorIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/32/dialog-error.png");
          }
        },

        "OptionPane.foreground",
        foregroundColor,

        "OptionPane.informationIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/32/dialog-information.png");
          }
        },

        "OptionPane.messageForeground",
        foregroundColor,

        "OptionPane.questionIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/32/help-browser.png");
          }
        },

        "OptionPane.warningIcon",
        new UIDefaults.LazyValue() {
          public Object createValue(UIDefaults table) {
            return SubstanceCoreUtilities
                .getIcon("resource/32/dialog-warning.png");
          }
        },

        "Panel.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(JPanel.class,
            skin, false),

        "Panel.foreground",
        foregroundColor,

        "PasswordField.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(
            JPasswordField.class, skin, false),

        "PasswordField.border",
        textBorder,

        "PasswordField.caretForeground",
        foregroundColor,

        "PasswordField.disabledBackground",
        SubstanceColorUtilities.getDefaultBackgroundColor(
            JPasswordField.class, skin, true),

        "PasswordField.foreground",
        foregroundColor,

        "PasswordField.inactiveBackground",
        SubstanceColorUtilities.getDefaultBackgroundColor(
            JPasswordField.class, skin, true),

        "PasswordField.inactiveForeground",
        disabledTextComponentForegroundColor,

        "PasswordField.selectionBackground",
        selectionTextBackgroundColor,

        "PasswordField.selectionForeground",
        selectionTextForegroundColor,

        "PopupMenu.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(
            JPopupMenu.class, skin, false),

        "PopupMenu.border",
        regularMarginBorder,

        "ProgressBar.border",
        new BorderUIResource(new SubstanceBorder()),

        "ProgressBar.cycleTime",
        new Integer(1000),

        "ProgressBar.repaintInterval",
        new Integer(50),

        "ProgressBar.horizontalSize",
        new DimensionUIResource(146, SubstanceSizeUtils
            .getControlFontSize()),

        "ProgressBar.verticalSize",
        new DimensionUIResource(
            SubstanceSizeUtils.getControlFontSize(), 146),

        "ProgressBar.selectionBackground",
        foregroundColor,

        "ProgressBar.selectionForeground",
        foregroundColor,

        "RadioButton.background",
        SubstanceColorUtilities.getDefaultBackgroundColor(
            JRadioButton.class, skin, false),

        "RadioButton.border",
        new BorderUIResource.CompoundBorderUIResource(
            SubstanceSizeUtils
                .getRadioButtonBorder(SubstanceSizeUtils
                    .getControlFontSize()),
            new MarginBorder()),

        "RadioButton.foreground",
        foregroundColor,

        "RadioButton.disabledText",
View Full Code Here

Examples of org.eclipse.draw2d.MarginBorder

    /* (non-Javadoc)
     * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
     */
    protected IFigure createFigure() {
        Figure f = new FreeformLayer();
        f.setBorder( new MarginBorder( 3 ) );
        f.setLayoutManager( new FreeformLayout() );
        return f;
    }
View Full Code Here

Examples of org.eclipse.draw2d.MarginBorder

    /* (non-Javadoc)
     * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
     */
    protected IFigure createFigure() {
        Figure f = new FreeformLayer();
        f.setBorder( new MarginBorder( 3 ) );
        f.setLayoutManager( new FreeformLayout() );
        return f;
    }
View Full Code Here

Examples of org.eclipse.draw2d.MarginBorder

    private void createOverview(Composite parent) {
        ScalableFreeformRootEditPart rootEditPart = (ScalableFreeformRootEditPart) editor.getGraphicalViewer().getRootEditPart();
        overview = new Canvas(parent, SWT.NONE);
        LightweightSystem lws = new LightweightSystem(overview);
        thumbnail = new ScrollableThumbnail((Viewport) rootEditPart.getFigure());
        thumbnail.setBorder(new MarginBorder(3));
        thumbnail.setSource(rootEditPart.getLayer(LayerConstants.PRINTABLE_LAYERS));
        lws.setContents(thumbnail);
    }
View Full Code Here

Examples of org.eclipse.draw2d.MarginBorder

    /* (non-Javadoc)
     * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
     */
    protected IFigure createFigure() {
        Figure f = new FreeformLayer();
        f.setBorder( new MarginBorder( 3 ) );
        f.setLayoutManager( new FreeformLayout() );
        return f;
    }
View Full Code Here

Examples of org.eclipse.draw2d.MarginBorder

  @Override
  protected IFigure createFigure() {
    Figure f = new MusicDiagramDrawableFreeformLayer(
        (MusicDiagram) getModel());
    f.setLayoutManager(new FreeformLayout());
    f.setBorder(new MarginBorder(10));   
    return f;
  }
View Full Code Here

Examples of org.eclipse.draw2d.MarginBorder

     *
     * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
     */
    protected IFigure createFigure() {
        Figure f = new FreeformLayer();
        f.setBorder(new MarginBorder(3));
        f.setLayoutManager(new FreeformLayout());

        // Create the static router for the connection layer
        ConnectionLayer connLayer = (ConnectionLayer) getLayer(LayerConstants.CONNECTION_LAYER);
        connLayer.setConnectionRouter(new ShortestPathConnectionRouter(f));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.