| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | MetalUtils.
Used to create a disabled Icon with the ocean look. |
| private static class | MetalUtils.
Used to create the rollover icons with the ocean look. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | drawDark3DBorder(Graphics g, Rectangle r)
This draws a variant "Flush 3D Border" It is used for things like active toggle buttons. |
| pack-priv static void | drawDark3DBorder(Graphics g, int x, int y, int w, int h)
This draws a variant "Flush 3D Border" It is used for things like active toggle buttons. |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | drawFlush3DBorder(Graphics g, int x, int y, int w, int h)
This draws the "Flush 3D Border" which is used throughout the Metal LF |
| pack-priv static boolean | Returns: true ifkey exists, otherwise false.Component rendering to c, Graphics Graphics to draw to. g, String UIManager key used to look up gradient values. key, int X coordinate to draw from x, int Y coordinate to draw from y, int Width to draw to w, int Height to draw to h, boolean Direction of the gradient vertical)Draws a radial type gradient. |
| pack-priv static void | drawPressed3DBorder(Graphics g, Rectangle r)
This draws a variant "Flush 3D Border" It is used for things like pressed buttons. |
| pack-priv static void | drawPressed3DBorder(Graphics g, int x, int y, int w, int h)
This draws a variant "Flush 3D Border" It is used for things like pressed buttons. |
| pack-priv static int | |
| pack-priv static Icon | |
| pack-priv static Icon | |
| pack-priv static boolean | |
| pack-priv static boolean |
| MetalUtils | back to summary |
|---|---|
| pack-priv MetalUtils() | |
| drawActiveButtonBorder | back to summary |
|---|---|
| pack-priv static void drawActiveButtonBorder(Graphics g, int x, int y, int w, int h) | |
| drawButtonBorder | back to summary |
|---|---|
| pack-priv static void drawButtonBorder(Graphics g, int x, int y, int w, int h, boolean active) | |
| drawDark3DBorder | back to summary |
|---|---|
| pack-priv static void drawDark3DBorder(Graphics g, Rectangle r) This draws a variant "Flush 3D Border" It is used for things like active toggle buttons. This is used rarely. | |
| drawDark3DBorder | back to summary |
|---|---|
| pack-priv static void drawDark3DBorder(Graphics g, int x, int y, int w, int h) This draws a variant "Flush 3D Border" It is used for things like active toggle buttons. This is used rarely. | |
| drawDefaultButtonBorder | back to summary |
|---|---|
| pack-priv static void drawDefaultButtonBorder(Graphics g, int x, int y, int w, int h, boolean active) | |
| drawDefaultButtonPressedBorder | back to summary |
|---|---|
| pack-priv static void drawDefaultButtonPressedBorder(Graphics g, int x, int y, int w, int h) | |
| drawDisabledBorder | back to summary |
|---|---|
| pack-priv static void drawDisabledBorder(Graphics g, int x, int y, int w, int h) | |
| drawFlush3DBorder | back to summary |
|---|---|
| pack-priv static void drawFlush3DBorder(Graphics g, Rectangle r) | |
| drawFlush3DBorder | back to summary |
|---|---|
| pack-priv static void drawFlush3DBorder(Graphics g, int x, int y, int w, int h) This draws the "Flush 3D Border" which is used throughout the Metal L&F | |
| drawGradient | back to summary |
|---|---|
| pack-priv static boolean drawGradient(Component c, Graphics g, String key, int x, int y, int w, int h, boolean vertical) Draws a radial type gradient. The gradient will be drawn vertically if
| |
| drawPressed3DBorder | back to summary |
|---|---|
| pack-priv static void drawPressed3DBorder(Graphics g, Rectangle r) This draws a variant "Flush 3D Border" It is used for things like pressed buttons. | |
| drawPressed3DBorder | back to summary |
|---|---|
| pack-priv static void drawPressed3DBorder(Graphics g, int x, int y, int w, int h) This draws a variant "Flush 3D Border" It is used for things like pressed buttons. | |
| getInt | back to summary |
|---|---|
| pack-priv static int getInt(Object key, int defaultValue) | |
| getOceanDisabledButtonIcon | back to summary |
|---|---|
| pack-priv static Icon getOceanDisabledButtonIcon(Image image) | |
| getOceanToolBarIcon | back to summary |
|---|---|
| pack-priv static Icon getOceanToolBarIcon(Image i) | |
| isLeftToRight | back to summary |
|---|---|
| pack-priv static boolean isLeftToRight(Component c) | |
| isToolBarButton | back to summary |
|---|---|
| pack-priv static boolean isToolBarButton(JComponent c) Returns true if the specified widget is in a toolbar. | |
| Modifier and Type | Field and Description |
|---|---|
| private int | h
This is the actual height we're painting in, or last painted to |
| private static final int | |
| public static final MetalUtils. | INSTANCE
Instance used for painting. |
| private int | w
This is the actual width we're painting in, or last painted to. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | drawHorizontalGradient(Graphics2D g, float ratio1, float ratio2, Color c1, Color c2, Color c3, int w, int h)
|
| private void | drawVerticalGradient(Graphics2D g, float ratio1, float ratio2, Color c1, Color c2, Color c3, int w, int h)
|
| private GradientPaint | |
| public void | |
| protected void | paintImage(Component c, Graphics g, int x, int y, int imageW, int imageH, Image image, Object[] args)
Overrides sun. Paints the image to the specified location. |
| protected void | paintToImage(Component c, Image image, Graphics g, int w, int h, Object[] args)
Implements abstract sun. Paints the representation to cache to the supplied Graphics. |
| h | back to summary |
|---|---|
| private int h This is the actual height we're painting in, or last painted to | |
| IMAGE_SIZE | back to summary |
|---|---|
| private static final int IMAGE_SIZE | |
| INSTANCE | back to summary |
|---|---|
| public static final MetalUtils. Instance used for painting. This is the only instance that is ever created. | |
| w | back to summary |
|---|---|
| private int w This is the actual width we're painting in, or last painted to. | |
| GradientPainter | back to summary |
|---|---|
| pack-priv GradientPainter(int count) | |
| drawHorizontalGradient | back to summary |
|---|---|
| private void drawHorizontalGradient(Graphics2D g, float ratio1, float ratio2, Color c1, Color c2, Color c3, int w, int h) | |
| drawVerticalGradient | back to summary |
|---|---|
| private void drawVerticalGradient(Graphics2D g, float ratio1, float ratio2, Color c1, Color c2, Color c3, int w, int h) | |
| getGradient | back to summary |
|---|---|
| private GradientPaint getGradient(float x1, float y1, Color c1, float x2, float y2, Color c2) | |
| paint | back to summary |
|---|---|
| public void paint(Component c, Graphics2D g, List<?> gradient, int x, int y, int w, int h, boolean isVertical) | |
| paintImage | back to summary |
|---|---|
| protected void paintImage(Component c, Graphics g, int x, int y, int imageW, int imageH, Image image, Object[] args) Overrides sun. Doc from sun. Paints the image to the specified location. | |
| paintToImage | back to summary |
|---|---|
| protected void paintToImage(Component c, Image image, Graphics g, int w, int h, Object[] args) Implements abstract sun. Doc from sun. Paints the representation to cache to the supplied Graphics. | |
| Modifier and Type | Field and Description |
|---|---|
| private float | |
| private float |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | filterRGB(int x, int y, int rgb)
Implements abstract java. Subclasses must specify a method to convert a single input pixel in the default RGB ColorModel to a single output pixel. |
| OceanDisabledButtonImageFilter | back to summary |
|---|---|
| pack-priv OceanDisabledButtonImageFilter(int min, int max) | |
| filterRGB | back to summary |
|---|---|
| public int filterRGB(int x, int y, int rgb) Implements abstract java. Doc from java. Subclasses must specify a method to convert a single input pixel in the default RGB ColorModel to a single output pixel. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | filterRGB(int x, int y, int rgb)
Implements abstract java. Subclasses must specify a method to convert a single input pixel in the default RGB ColorModel to a single output pixel. |
| OceanToolBarImageFilter | back to summary |
|---|---|
| pack-priv OceanToolBarImageFilter() | |
| filterRGB | back to summary |
|---|---|
| public int filterRGB(int x, int y, int rgb) Implements abstract java. Doc from java. Subclasses must specify a method to convert a single input pixel in the default RGB ColorModel to a single output pixel. | |