@Override public Image getWindowIcon() { return imageManager.getImage(IconUtils.MODEL_RESULT); }
public ImageIcon getImageIcon(final String imagePath, final int newWidth, final ClassLoader... classLoaders) { return new ImageIcon(getImage(imagePath, newWidth, classLoaders)); }
public DropTableDialog(final WindowContext windowContext, final UpdateableDatastore datastore, final Table table, final SchemaTree schemaTree) { super(windowContext, ImageManager.get().getImage("images/window/banner-tabledef.png")); _datastore = datastore; _table = table; _schemaTree = schemaTree; }
@Override public Image getWindowIcon() { return imageManager.getImage(getDatastoreIconPath()); }
@Override public Image getWindowIcon() { return ImageManager.get().getImage(IconUtils.APPLICATION_ICON); }
public Image getImage(final String imagePath, final int newWidth, final ClassLoader... classLoaders) { Image image = _cachedImageIcons.getIfPresent(imagePath + ",width=" + newWidth); if (image == null) { image = getImage(imagePath, classLoaders); final int width = image.getWidth(null); final int height = image.getHeight(null); final int newHeight = newWidth * height / width; image = image.getScaledInstance(newWidth, newHeight, Image.SCALE_SMOOTH); _cachedImageIcons.put(imagePath + ",width=" + newWidth, image); } return image; }
protected AbstractComponentBuilderPanel(final String watermarkImagePath, final ComponentBuilder componentBuilder, final PropertyWidgetFactory propertyWidgetFactory) { this(ImageManager.get().getImage(watermarkImagePath), 95, 95, componentBuilder, propertyWidgetFactory); }
@Override public Image getWindowIcon() { return ImageManager.get().getImage("images/model/query.png"); }
public ImageIcon getImageIcon(final String imagePath, final ClassLoader... classLoaders) { if (imagePath.endsWith(".gif")) { // animated gif's will loose their animations if loaded as images final URL url = resourceManager.getUrl(imagePath, classLoaders); return new ImageIcon(url); } return new ImageIcon(getImage(imagePath, classLoaders)); }
public ErrorDialog(final String shortMessage, final String detailedMessage) { super(null, ImageManager.get().getImage("images/window/banner-error.png")); _shortMessage = shortMessage; _detailedMessage = detailedMessage; }
private static Image getBackgroundImage() { return ImageManager.get().getImage("images/window/welcome-panel-background.jpg"); }
@Override public Image getWindowIcon() { return ImageManager.get().getImage(IconUtils.ACTION_PREVIEW); }
public static ImageIcon addErrorOverlay(final ImageIcon imageIcon) { final int offset = adjuster.adjust(4); final int iconWidth = imageIcon.getIconWidth(); final int decorationSize = iconWidth / 2; final Image errorImage = _imageManager.getImage(STATUS_ERROR, decorationSize); final BufferedImage bufferedImage = new BufferedImage(iconWidth + offset, iconWidth + offset, BufferedImage.TYPE_INT_ARGB); bufferedImage.getGraphics().drawImage(imageIcon.getImage(), offset, 0, null); bufferedImage.getGraphics().drawImage(errorImage, 0, iconWidth + offset - decorationSize, null); return new ImageIcon(bufferedImage); }
public SourceTableConfigurationDialog(final WindowContext windowContext, final AnalysisJobBuilder analysisJobBuilder, final Table table) { super(windowContext, ImageManager.get().getImage("images/window/banner-tabledef.png")); _table = table; _analysisJobBuilder = analysisJobBuilder; _columnListTable = new ColumnListTable(table, analysisJobBuilder, true, windowContext); }
public ExecuteJobWithoutAnalyzersDialog(final DCModule dcModule, final WindowContext windowContext, final AnalysisJobBuilder analysisJobBuilder, final UserPreferences userPreferences) { super(windowContext, ImageManager.get().getImage("images/window/banner-execute.png")); setBackgroundColor(WidgetUtils.COLOR_DEFAULT_BACKGROUND); _dcModule = dcModule; _analysisJobBuilder = analysisJobBuilder; _userPreferences = userPreferences; }
@Inject protected ReferenceDataDialog(final WindowContext windowContext, final InjectorBuilder injectorBuilder) { super(windowContext, imageManager.getImage("images/window/banner-reference-data.png")); _glassPane = new DCGlassPane(this); _tabbedPane = new CloseableTabbedPane(true); _tabbedPane.bindTabTitleToBanner(getBanner()); _injectorBuilder = injectorBuilder; }
public TableDefinitionDialog(final WindowContext windowContext, final SchemaFactory schemaFactory, final SimpleTableDef[] tableDefs, final Action<SimpleTableDef[]> saveAction) { super(windowContext, ImageManager.get().getImage("images/window/banner-tabledef.png")); setBackgroundColor(WidgetUtils.COLOR_DEFAULT_BACKGROUND); _tableDefsPanel = new SimpleTableDefsPanel(schemaFactory, tableDefs); _saveAction = saveAction; }
public RegexStringPatternDialog(final MutableReferenceDataCatalog catalog, final WindowContext windowContext) { super(windowContext, ImageManager.get().getImage(IconUtils.STRING_PATTERN_REGEX_IMAGEPATH)); _catalog = catalog; _expressionNameField = WidgetFactory.createTextField("String pattern name"); _expressionField = WidgetFactory.createTextField("Expression"); _resetButton = WidgetFactory.createSmallButton("Reset", IconUtils.ACTION_RESET); _saveButton = WidgetFactory.createPrimaryButton("Save Expression", IconUtils.ACTION_SAVE_BRIGHT); }
public SimpleStringPatternDialog(final MutableReferenceDataCatalog catalog, final WindowContext windowContext) { super(windowContext, ImageManager.get().getImage(IconUtils.STRING_PATTERN_SIMPLE_IMAGEPATH)); _catalog = catalog; _expressionNameField = WidgetFactory.createTextField("String pattern name"); _expressionField = WidgetFactory.createTextField("Expression"); _resetButton = WidgetFactory.createSmallButton("Reset", IconUtils.ACTION_RESET); _saveButton = WidgetFactory.createPrimaryButton("Save Pattern", IconUtils.ACTION_SAVE_BRIGHT); }
protected SingleDatePropertySettingDialog(final WindowContext windowContext, final SingleDatePropertyWidget widget) { super(windowContext, ImageManager.get().getImage(IMAGE_PATH)); _widget = widget; _buttonGroup = new ButtonGroup(); _closeButton = createCloseButton(); _dateNowRadio = getRadioButton(LABEL_NOW); _dateTodayRadio = getRadioButton(LABEL_TODAY); _todayPlusRadio = getRadioButton(LABEL_TODAY_PLUS); _dateYesterdayRadio = getRadioButton(LABEL_YESTERDAY); createRadioGroup(); _datePicker = createDatePicker(); _todayPlusTextField = createTodayPlusTextField(); }