Warning
While this class is public, it should not be treated as public API and its API may change in incompatible ways between dot dot releases and even patch releases. You should not rely on this class even existing. This is a second part of sun.swing.SwingUtilities2.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | SwingUtilities3.
A task which paints an unscaled border after |
| Modifier and Type | Field and Description |
|---|---|
| private static final Object | DELEGATE_REPAINT_MANAGER_KEY
The |
| private static volatile boolean | |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | |
| public static RepaintManager | getDelegateRepaintManager(Component component)
Returns delegate |
| public static boolean | Returns: true if vsync painting is requested for rootContainertopmost container. Should be Window rootContainer)Checks if vsync painting is requested for |
| public static void | paintAccText(Graphics g, MenuItemLayoutHelper lh, MenuItemLayoutHelper.
|
| public static void | paintArrowIcon(Graphics g, MenuItemLayoutHelper lh, MenuItemLayoutHelper.
|
| public static void | paintBorder(Component
the component for which this border is being painted c, Graphics the paint graphics g, int the x position of the painted border x, int the y position of the painted border y, int the width of the painted border w, int the height of the painted border h, SwingUtilities3.the painter object which paints the border after
the transform on the painterGraphics is resetPaints the border for a component ensuring its sides have consistent thickness at different scales. |
| public static void | paintCheckIcon(Graphics g, MenuItemLayoutHelper lh, MenuItemLayoutHelper.
|
| public static void | |
| public static void | setDelegateRepaintManager(JComponent component, RepaintManager repaintManager)
Registers delegate RepaintManager for |
| public static void | setVsyncRequested(Container
topmost container. Should be rootContainer, boolean Windowthe value to set vsyncRequested state to isRequested)Sets vsyncRequested state for the |
| DELEGATE_REPAINT_MANAGER_KEY | back to summary |
|---|---|
| private static final Object DELEGATE_REPAINT_MANAGER_KEY The | |
| repaintDelegateSet | back to summary |
|---|---|
| private static volatile boolean repaintDelegateSet | |
| vsyncedMap | back to summary |
|---|---|
| private static final Map<Container, Boolean> vsyncedMap | |
| SwingUtilities3 | back to summary |
|---|---|
| public SwingUtilities3() | |
| applyInsets | back to summary |
|---|---|
| public static void applyInsets(Rectangle rect, Insets insets) | |
| applyInsets | back to summary |
|---|---|
| public static void applyInsets(Rectangle rect, Insets insets, boolean leftToRight) | |
| getDelegateRepaintManager | back to summary |
|---|---|
| public static RepaintManager getDelegateRepaintManager(Component component) Returns delegate | |
| isVsyncRequested | back to summary |
|---|---|
| public static boolean isVsyncRequested(Container rootContainer) Checks if vsync painting is requested for
| |
| paintAccText | back to summary |
|---|---|
| public static void paintAccText(Graphics g, MenuItemLayoutHelper lh, MenuItemLayoutHelper. | |
| paintArrowIcon | back to summary |
|---|---|
| public static void paintArrowIcon(Graphics g, MenuItemLayoutHelper lh, MenuItemLayoutHelper. | |
| paintBorder | back to summary |
|---|---|
| public static void paintBorder(Component c, Graphics g, int x, int y, int w, int h, SwingUtilities3. Paints the border for a component ensuring its sides have consistent thickness at different scales. It performs the following steps:
| |
| paintCheckIcon | back to summary |
|---|---|
| public static void paintCheckIcon(Graphics g, MenuItemLayoutHelper lh, MenuItemLayoutHelper. | |
| paintIcon | back to summary |
|---|---|
| public static void paintIcon(Graphics g, MenuItemLayoutHelper lh, MenuItemLayoutHelper. | |
| setDelegateRepaintManager | back to summary |
|---|---|
| public static void setDelegateRepaintManager(JComponent component, RepaintManager repaintManager) Registers delegate RepaintManager for | |
| setVsyncRequested | back to summary |
|---|---|
| public static void setVsyncRequested(Container rootContainer, boolean isRequested) Sets vsyncRequested state for the Note requesting vsynced painting does not guarantee one. The outcome depends on current RepaintManager's RepaintManager.PaintManager and on the capabilities of the graphics hardware/software and what not.
| |
Graphics
transforms are removed. It's used with the
SwingUtilities3.paintBorder which manages changing the transforms and calculating
the coordinates and size of the border.
| Modifier and Type | Method and Description |
|---|---|
| public void | paintUnscaledBorder(Component
the component for which this border is being painted c, Graphics the paint graphics g, int the width of the painted border, in physical pixels w, int the height of the painted border, in physical pixels h, double the scale that was in the scaleFactor)GraphicsPaints the border for the specified component after the
|
| paintUnscaledBorder | back to summary |
|---|---|
| public void paintUnscaledBorder(Component c, Graphics g, int w, int h, double scaleFactor) Paints the border for the specified component after the
The x and y of the painted border are zero.
| |