public final class AppUIUtil
extends java.lang.Object
Constructor and Description |
---|
AppUIUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
confirmConsentOptions(java.util.List<Consent> consents) |
static java.lang.String |
findIcon() |
static java.lang.String |
getFrameClass() |
static void |
hideToolWindowBalloon(java.lang.String id,
Project project) |
static void |
invokeLaterIfProjectAlive(Project project,
java.lang.Runnable runnable) |
static void |
invokeOnEdt(java.lang.Runnable runnable) |
static void |
invokeOnEdt(java.lang.Runnable runnable,
Condition<?> expired)
Deprecated.
|
static boolean |
isInFullscreen(java.awt.Window window) |
static boolean |
isWindowIconAlreadyExternallySet() |
static javax.swing.Icon |
loadApplicationIcon(ScaleContext ctx,
int size) |
static java.util.List<Consent> |
loadConsentsForEditing() |
static javax.swing.Icon |
loadSmallApplicationIcon(ScaleContext ctx) |
static javax.swing.Icon |
loadSmallApplicationIcon(ScaleContext ctx,
int size) |
static boolean |
needToShowConsentsAgreement() |
static void |
saveConsents(java.util.List<Consent> consents) |
static void |
setGraphicsConfiguration(java.awt.Component comp,
java.awt.GraphicsConfiguration gc) |
static boolean |
showConsentsAgreementIfNeed(Logger log)
Deprecated.
use
showConsentsAgreementIfNeeded(Logger) instead |
static boolean |
showConsentsAgreementIfNeeded(java.util.concurrent.Executor edtExecutor) |
static boolean |
showConsentsAgreementIfNeeded(Logger log) |
static void |
targetToDevice(java.awt.Component comp,
java.awt.Component target)
Targets the component to a (screen) device before showing.
|
static void |
updateForDarcula(boolean isDarcula) |
static void |
updateFrameClass(java.awt.Toolkit toolkit) |
static void |
updateWindowIcon(java.awt.Window window) |
public static void updateWindowIcon(java.awt.Window window)
public static boolean isWindowIconAlreadyExternallySet()
public static javax.swing.Icon loadSmallApplicationIcon(ScaleContext ctx)
public static javax.swing.Icon loadSmallApplicationIcon(ScaleContext ctx, int size)
public static javax.swing.Icon loadApplicationIcon(ScaleContext ctx, int size)
public static void invokeLaterIfProjectAlive(Project project, java.lang.Runnable runnable)
public static void invokeOnEdt(java.lang.Runnable runnable)
@Deprecated public static void invokeOnEdt(java.lang.Runnable runnable, Condition<?> expired)
BaseExpirableExecutor.expireWith(Disposable)
public static void updateFrameClass(java.awt.Toolkit toolkit)
public static java.lang.String getFrameClass()
public static void hideToolWindowBalloon(java.lang.String id, Project project)
public static java.lang.String findIcon()
@Deprecated public static boolean showConsentsAgreementIfNeed(Logger log)
showConsentsAgreementIfNeeded(Logger)
insteadpublic static boolean showConsentsAgreementIfNeeded(Logger log)
public static boolean needToShowConsentsAgreement()
public static boolean showConsentsAgreementIfNeeded(java.util.concurrent.Executor edtExecutor)
public static void updateForDarcula(boolean isDarcula)
public static boolean confirmConsentOptions(java.util.List<Consent> consents)
public static java.util.List<Consent> loadConsentsForEditing()
public static void saveConsents(java.util.List<Consent> consents)
public static void targetToDevice(java.awt.Component comp, java.awt.Component target)
The prior targeting to a device is required when there's a need to calculate preferred size of a compound component (such as JEditorPane, for instance) which is not yet added to a hierarchy. The calculation in that case may involve device-dependent metrics (such as font metrics) and thus should refer to a particular device in multi-monitor env.
Note that if after calling this method the component is added to another hierarchy,
bound to a different device, AWT will throw IllegalArgumentException. To avoid that,
the device should be reset by calling targetToDevice(comp, null)
.
target
- the component representing the UI hierarchy and the target devicecomp
- the component to targetpublic static void setGraphicsConfiguration(java.awt.Component comp, java.awt.GraphicsConfiguration gc)
public static boolean isInFullscreen(java.awt.Window window)