001//License: GPL. For details, see LICENSE file. 002package org.openstreetmap.josm.gui.preferences.display; 003 004import static org.openstreetmap.josm.tools.I18n.tr; 005 006import javax.swing.JTabbedPane; 007 008import org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting; 009import org.openstreetmap.josm.gui.preferences.PreferenceSetting; 010import org.openstreetmap.josm.gui.preferences.PreferenceSettingFactory; 011import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane; 012import org.openstreetmap.josm.tools.GBC; 013 014/** 015 * Display preferences (various settings that influence the visual representation of the whole program). 016 * @since 4969 017 */ 018public final class DisplayPreference extends DefaultTabPreferenceSetting { 019 020 /** 021 * Factory used to create a new {@code DisplayPreference}. 022 */ 023 public static class Factory implements PreferenceSettingFactory { 024 @Override 025 public PreferenceSetting createPreferenceSetting() { 026 return new DisplayPreference(); 027 } 028 } 029 030 private DisplayPreference() { 031 super(/* ICON(preferences/) */ "display", tr("Display Settings"), tr("Various settings that influence the visual representation of the whole program."), false, new JTabbedPane()); 032 } 033 034 @Override 035 public boolean ok() { 036 return false; 037 } 038 039 @Override 040 public void addGui(PreferenceTabbedPane gui) { 041 gui.createPreferenceTab(this).add(getTabPane(), GBC.eol().fill(GBC.BOTH)); 042 } 043}