public class OrientationIcon
extends java.lang.Object
implements javax.swing.Icon
Constructor and Description |
---|
OrientationIcon(int diameter,
int margin) |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getBackgroundColor() |
java.awt.Color |
getForegroundColor() |
int |
getIconHeight() |
int |
getIconWidth() |
static void |
main(java.lang.String[] args) |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics arg0,
int x,
int y) |
void |
setAngleDegs(double angleRadians) |
void |
setAngleRadians(double angleRadians) |
void |
setBackgroundColor(java.awt.Color backgroundColor) |
void |
setForegroundColor(java.awt.Color foregroundColor) |
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public void paintIcon(java.awt.Component c, java.awt.Graphics arg0, int x, int y)
paintIcon
in interface javax.swing.Icon
public java.awt.Color getBackgroundColor()
public void setBackgroundColor(java.awt.Color backgroundColor)
backgroundColor
- the backgroundColor to setpublic java.awt.Color getForegroundColor()
public void setForegroundColor(java.awt.Color foregroundColor)
foregroundColor
- the foregroundColor to setpublic void setAngleRadians(double angleRadians)
public void setAngleDegs(double angleRadians)
public static void main(java.lang.String[] args)
Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.