.getPropertyName())) { list.setOpaque(!SubstanceCoreUtilities .toDrawWatermark(list));
.getPropertyName())) { list.setOpaque(!SubstanceCoreUtilities .toDrawWatermark(list));
@Override protected void installDefaults() { super.installDefaults(); if (SubstanceCoreUtilities.toDrawWatermark(list)) { list.setOpaque(false); } syncModelContents(); }
/** * Paints background of the specified text component. * * @param g * Graphics context. * @param comp * Component. */ public static void paintTextCompBackground(Graphics g, JComponent comp) { Color backgroundFillColor = getTextBackgroundFillColor(comp); paintTextCompBackground(g, comp, backgroundFillColor, SubstanceCoreUtilities.toDrawWatermark(comp) || !comp.isOpaque()); }
@Override protected void installDefaults() { super.installDefaults(); isFileList = Boolean.TRUE.equals(list .getClientProperty("List.isFileList")); isLeftToRight = list.getComponentOrientation().isLeftToRight(); if (SubstanceCoreUtilities.toDrawWatermark(list)) { list.setOpaque(false); } syncModelContents(); }
boolean toBleed = SubstanceCoreUtilities.toDrawWatermark(c); c.setOpaque(!toBleed); c.getViewport().setOpaque(!toBleed);
.getPropertyName())) { tree.setOpaque(!SubstanceCoreUtilities .toDrawWatermark(tree));
.getWatermark(); if ((watermark != null) && !isPreviewMode && !isInCellRenderer && c.isShowing() && SubstanceCoreUtilities.toDrawWatermark(c)) {
if ((watermark != null) && SubstanceCoreUtilities.toDrawWatermark(comp)) { watermark.drawWatermarkImage(g2d, comp, 0, 0, comp.getWidth(), comp.getHeight());
.getPropertyName())) { tree.setOpaque(!SubstanceCoreUtilities .toDrawWatermark(tree));
.getWatermark(); if ((watermark != null) && !isPreviewMode && !isInCellRenderer && c.isShowing() && SubstanceCoreUtilities.toDrawWatermark(c)) {
public UpdateOptimizationInfo(JComponent component) { this.component = component; this.toDrawWatermark = SubstanceCoreUtilities .toDrawWatermark(this.component); this.defaultScheme = SubstanceColorSchemeUtilities.getColorScheme( this.component, ComponentState.ENABLED); this.decorationAreaType = SubstanceLookAndFeel .getDecorationType(this.component); SubstanceSkin skin = SubstanceCoreUtilities.getSkin(this.component); this.isInDecorationArea = (this.decorationAreaType != null) && skin.isRegisteredAsDecorationArea(this.decorationAreaType) && SubstanceCoreUtilities.isOpaque(this.component); }
public UpdateOptimizationInfo(JComponent component) { this.component = component; this.toDrawWatermark = SubstanceCoreUtilities .toDrawWatermark(this.component); this.defaultScheme = SubstanceColorSchemeUtilities.getColorScheme( this.component, ComponentState.ENABLED); this.decorationAreaType = SubstanceLookAndFeel .getDecorationType(this.component); SubstanceSkin skin = SubstanceCoreUtilities.getSkin(this.component); this.isInDecorationArea = (this.decorationAreaType != null) && skin.isRegisteredAsDecorationArea(this.decorationAreaType) && SubstanceCoreUtilities.isOpaque(this.component); }
@Override protected void installDefaults(final JScrollPane scrollpane) { super.installDefaults(scrollpane); if (SubstanceCoreUtilities.toDrawWatermark(scrollpane) && (SubstanceLookAndFeel.getCurrentSkin(scrollpane) .getWatermark() != null)) { scrollpane.setOpaque(false); scrollpane.getViewport().setOpaque(false); } scrollpane.setLayout(new AdjustedLayout((ScrollPaneLayout) scrollpane .getLayout())); SwingUtilities.invokeLater(new Runnable() { public void run() { // System.out.println("Installing"); installTableHeaderCornerFiller(scrollpane); } }); }
.getWatermark(); if ((watermark != null) && !isInCellRenderer && c.isShowing() && SubstanceCoreUtilities.toDrawWatermark(c)) watermark.drawWatermarkImage(graphics, c, rect.x, rect.y, rect.width, rect.height);
.getWatermark(); if ((watermark != null) && !isInCellRenderer && c.isShowing() && SubstanceCoreUtilities.toDrawWatermark(c)) watermark.drawWatermarkImage(graphics, c, rect.x, rect.y, rect.width, rect.height);
@Override protected void installDefaults(final JScrollPane scrollpane) { super.installDefaults(scrollpane); if (SubstanceCoreUtilities.toDrawWatermark(scrollpane) && (SubstanceLookAndFeel.getCurrentSkin(scrollpane) .getWatermark() != null)) { scrollpane.setOpaque(false); scrollpane.getViewport().setOpaque(false); } scrollpane.setLayout(new AdjustedLayout((ScrollPaneLayout) scrollpane .getLayout())); SwingUtilities.invokeLater(new Runnable() { @Override public void run() { // System.out.println("Installing"); installTableHeaderCornerFiller(scrollpane); } }); }
/** * Paints background of the specified text component. * * @param g * Graphics context. * @param comp * Component. */ public static void paintTextCompBackground(Graphics g, JComponent comp) { Color backgroundFillColor = getTextBackgroundFillColor(comp); boolean toPaintWatermark = (SubstanceLookAndFeel.getCurrentSkin(comp) .getWatermark() != null) && (SubstanceCoreUtilities.toDrawWatermark(comp) || !comp .isOpaque()); paintTextCompBackground(g, comp, backgroundFillColor, toPaintWatermark); }
@Override protected void installDefaults() { super.installDefaults(); if (SubstanceCoreUtilities.toDrawWatermark(this.tree)) this.tree.setOpaque(false); if (this.tree.getSelectionPaths() != null) { for (TreePath selectionPath : this.tree.getSelectionPaths()) { TreePathId pathId = new TreePathId(selectionPath); selectedPaths.put(pathId, selectionPath.getLastPathComponent()); } } setExpandedIcon(new IconUIResource(SubstanceIconFactory.getTreeIcon( this.tree, false))); setCollapsedIcon(new IconUIResource(SubstanceIconFactory.getTreeIcon( this.tree, true))); // instead of computing the cell renderer insets on // every cell rendering, compute it once and expose to the // SubstanceDefaultTreeCellRenderer this.cellRendererInsets = SubstanceSizeUtils .getTreeCellRendererInsets(SubstanceSizeUtils .getComponentFontSize(tree)); }
@Override protected void installDefaults() { super.installDefaults(); if (SubstanceCoreUtilities.toDrawWatermark(this.tree)) this.tree.setOpaque(false); if (this.tree.getSelectionPaths() != null) { for (TreePath selectionPath : this.tree.getSelectionPaths()) { TreePathId pathId = new TreePathId(selectionPath); selectedPaths.put(pathId, selectionPath.getLastPathComponent()); } } setExpandedIcon(new IconUIResource(SubstanceIconFactory.getTreeIcon( this.tree, false))); setCollapsedIcon(new IconUIResource(SubstanceIconFactory.getTreeIcon( this.tree, true))); // instead of computing the cell renderer insets on // every cell rendering, compute it once and expose to the // SubstanceDefaultTreeCellRenderer this.cellRendererInsets = SubstanceSizeUtils .getTreeCellRendererInsets(SubstanceSizeUtils .getComponentFontSize(tree)); }