Package com.jtattoo.plaf
Class JTattooUtilities
java.lang.Object
com.jtattoo.plaf.JTattooUtilities
JTattooUtilities class.
Author Michael Hagen-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
draw3DBorder
(Graphics g, Color c1, Color c2, int x, int y, int w, int h) draw3DBorder.static void
drawBorder
(Graphics g, Color c, int x, int y, int w, int h) drawBorder.static void
drawRound3DBorder
(Graphics g, Color c1, Color c2, int x, int y, int w, int h) drawRound3DBorder.static void
drawRoundBorder
(Graphics g, Color c, int x, int y, int w, int h, int r) drawRoundBorder.static void
drawString
(JComponent c, Graphics g, String text, int x, int y) drawString.static void
drawStringUnderlineCharAt
(JComponent c, Graphics g, String text, int underlinedIndex, int x, int y) drawStringUnderlineCharAt.static void
fillComponent
(Graphics g, Component c, Icon texture) fillComponent.static void
fillHorGradient
(Graphics g, Color[] colors, int x, int y, int w, int h) fillHorGradient.static void
fillInverseHorGradient
(Graphics g, Color[] colors, int x, int y, int w, int h) fillInverseHorGradient.static void
fillInverseVerGradient
(Graphics g, Color[] colors, int x, int y, int w, int h) fillInverseVerGradient.static void
fillVerGradient
(Graphics g, Color[] colors, int x, int y, int w, int h) fillVerGradient.static String
getClippedText
(String text, FontMetrics fm, int maxWidth) getClippedText.static FontMetrics
getFontMetrics
(JComponent c, Graphics g, Font f) getFontMetrics.static Dimension
getFrameSize.static double
Getter for the field javaVersion.static double
getOSVersion.static Point
getRelLocation.static Container
getRootContainer.static boolean
isActive.static boolean
isAIX()
isAIX.static boolean
isFrameActive.static boolean
isFreeBSD.static boolean
isHiresScreen.static boolean
isHPUX()
isHPUX.static boolean
isLeftToRight.static boolean
isLinux()
isLinux.static boolean
isMac()
isMac.static boolean
isOS2()
isOS2.static boolean
isSunOS()
isSunOS.static boolean
isWindows.static void
smoothFillHorGradient
(Graphics g, Color[] colors, int x, int y, int w, int h) smoothFillHorGradient.static void
smoothFillInverseHorGradient
(Graphics g, Color[] colors, int x, int y, int w, int h) smoothFillInverseHorGradient.
-
Constructor Details
-
JTattooUtilities
public JTattooUtilities()
-
-
Method Details
-
draw3DBorder
draw3DBorder.
-
drawBorder
drawBorder.
-
drawRound3DBorder
drawRound3DBorder.
-
drawRoundBorder
drawRoundBorder.
-
drawString
drawString.
- Parameters:
c
- aJComponent
object.g
- aGraphics
object.text
- aString
object.x
- aInteger
object.y
- aInteger
object.
-
drawStringUnderlineCharAt
public static void drawStringUnderlineCharAt(JComponent c, Graphics g, String text, int underlinedIndex, int x, int y) drawStringUnderlineCharAt.
-
fillComponent
fillComponent.
-
fillHorGradient
fillHorGradient.
-
fillInverseHorGradient
fillInverseHorGradient.
-
fillInverseVerGradient
fillInverseVerGradient.
-
fillVerGradient
fillVerGradient.
-
getClippedText
getClippedText.
- Parameters:
text
- aString
object.fm
- aFontMetrics
object.maxWidth
- aInteger
object.- Returns:
- a
String
object.
-
getFontMetrics
getFontMetrics.
- Parameters:
c
- aJComponent
object.g
- aGraphics
object.f
- aFont
object.- Returns:
- a
FontMetrics
object.
-
getFrameSize
getFrameSize.
-
getJavaVersion
public static double getJavaVersion()Getter for the field javaVersion.
- Returns:
- a double.
-
getOSVersion
public static double getOSVersion()getOSVersion.
- Returns:
- a double.
-
getRelLocation
getRelLocation.
-
getRootContainer
getRootContainer.
-
isActive
isActive.
- Parameters:
c
- aJComponent
object.- Returns:
- a boolean.
-
isAIX
public static boolean isAIX()isAIX.
- Returns:
- a boolean.
-
isFrameActive
isFrameActive.
- Parameters:
c
- aComponent
object.- Returns:
- a boolean.
-
isFreeBSD
public static boolean isFreeBSD()isFreeBSD.
- Returns:
- a boolean.
-
isHiresScreen
public static boolean isHiresScreen()isHiresScreen.
- Returns:
- a boolean.
-
isHPUX
public static boolean isHPUX()isHPUX.
- Returns:
- a boolean.
-
isLeftToRight
isLeftToRight.
- Parameters:
c
- aComponent
object.- Returns:
- a boolean.
-
isLinux
public static boolean isLinux()isLinux.
- Returns:
- a boolean.
-
isMac
public static boolean isMac()isMac.
- Returns:
- a boolean.
-
isOS2
public static boolean isOS2()isOS2.
- Returns:
- a boolean.
-
isSunOS
public static boolean isSunOS()isSunOS.
- Returns:
- a boolean.
-
isWindows
public static boolean isWindows()isWindows.
- Returns:
- a boolean.
-
smoothFillHorGradient
smoothFillHorGradient.
-
smoothFillInverseHorGradient
public static void smoothFillInverseHorGradient(Graphics g, Color[] colors, int x, int y, int w, int h) smoothFillInverseHorGradient.
-