Available Methods
- invokeLaterIfNeeded ( )
- isUnderDarcula ( )
- invokeAndWaitIfNeeded ( )
- drawLine ( )
- createImage ( )
- getLabelFont ( )
- isUnderNimbusLookAndFeel ( )
- setLineStyleAngled ( )
- getParentOfType ( )
- isUnderAquaLookAndFeel ( )
- isUnderGTKLookAndFeel ( )
- getClientProperty ( )
- dispatchAllInvocationEvents ( )
- drawDottedRectangle ( )
- findComponentOfType ( )
- getWindow ( )
- isRetina ( )
- isUnderIntelliJLaF ( )
- isFullRowSelectionLAF ( )
- getPanelBackground ( )
- getListForeground ( )
- putClientProperty ( )
- getTreeSelectionBackground ( )
- isUnderAquaBasedLookAndFeel ( )
- drawImage ( )
- getListSelectionBackground ( )
- HTML_MIME
- drawBoldDottedLine ( )
- setEnabled ( )
- getTreeSelectionForeground ( )
- isClientPropertyTrue ( )
- ComponentStyle ( )
- getListBackground ( )
- getInactiveTextColor ( )
- DEFAULT_VGAP
- isControlKeyDown ( )
- isFocusAncestor ( )
- findComponentsOfType ( )
- isJreHiDPI ( )
- getWarningIcon ( )
- drawSearchMatch ( )
- getTableBackground ( )
- changeBackGround ( )
- mergeComponentsWithAnchor ( )
- MNEMONIC
- getLabelBackground ( )
- findUltimateParent ( )
- getLabelForeground ( )
- isMurrineBasedTheme ( )
- uiTraverser ( )
- isReallyTypedEvent ( )
- isJreHiDPIEnabled ( )
- removeMnemonic ( )
- getInformationIcon ( )
- getBorderColor ( )
- TRANSPARENT_COLOR
Related Classes
- java.awt.image.BufferedImage
- javax.annotation.Nullable
- java.awt.event.ActionEvent
- java.awt.event.ActionListener
- javax.annotation.Nonnull
- java.awt.event.MouseEvent
- org.jetbrains.annotations.NotNull
- java.awt.event.KeyEvent
- java.awt.event.MouseAdapter
- org.jetbrains.annotations.Nullable
- javax.swing.border.EmptyBorder
- java.awt.event.KeyAdapter
- javax.swing.border.Border
- javax.swing.tree.TreePath
- com.intellij.openapi.project.Project
- com.intellij.openapi.vfs.VirtualFile
- com.intellij.openapi.actionSystem.AnAction
- com.intellij.openapi.application.ApplicationManager
- com.intellij.openapi.editor.Editor
- com.intellij.openapi.editor.Document
- com.intellij.openapi.util.text.StringUtil
- com.intellij.openapi.ui.Messages
- com.intellij.openapi.progress.ProgressIndicator
- com.intellij.icons.AllIcons
- com.intellij.openapi.util.Pair
Java Code Examples for com.intellij.util.ui.UIUtil#TRANSPARENT_COLOR
The following examples show how to use
com.intellij.util.ui.UIUtil#TRANSPARENT_COLOR .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BooleanTableCellRenderer.java From consulo with Apache License 2.0 | 6 votes |
@Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSel, boolean hasFocus, int row, int column) { final Color bg = UIUtil.isUnderNimbusLookAndFeel() && row % 2 == 1 ? UIUtil.TRANSPARENT_COLOR : table.getBackground(); final Color fg = table.getForeground(); final Color selBg = table.getSelectionBackground(); final Color selFg = table.getSelectionForeground(); if (value == null) { myPanel.setBackground(isSel ? selBg : bg); return myPanel; } setForeground(isSel ? selFg : fg); setBackground(isSel ? selBg : bg); if (value instanceof String) { setSelected(Boolean.parseBoolean((String)value)); } else { setSelected(((Boolean)value).booleanValue()); } setEnabled(table.isCellEditable(row, column)); return this; }
Example 2
Source File: ThreeStateCheckBoxRenderer.java From consulo with Apache License 2.0 | 6 votes |
private JCheckBox tune(final Object value, final boolean isSelected, final int row, final JTable table) { final Color bg = UIUtil.isUnderNimbusLookAndFeel() && row % 2 == 1 ? UIUtil.TRANSPARENT_COLOR : table.getBackground(); final Color fg = table.getForeground(); final Color selBg = table.getSelectionBackground(); final Color selFg = table.getSelectionForeground(); setForeground(isSelected ? selFg : fg); setBackground(isSelected ? selBg : bg); if (value == null) { setState(State.DONT_CARE); } else { setSelected((Boolean) value); } return this; }