|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.gui.components.util.PaintHelper
public final class PaintHelper
Static helper class for painting standardised syimbols over existing Graphics objects. There is antialiasing switch for whole singelton helper class.
Method Summary | |
---|---|
static java.awt.RenderingHints |
getAntialiasingHints()
Returns rendering hints, which switches on antialiasing and high quality rendering. |
static java.awt.Paint |
getLinePaint(java.awt.Color color)
DOCUMENT ME! |
static java.awt.Paint |
getRasterPaint(java.awt.Color color)
DOCUMENT ME! |
static boolean |
isEnhanced()
If true then this singelton class paints all simbols with
switcher aon high quality rendering. |
static void |
main(java.lang.String[] args)
|
static void |
paintAlarm(java.awt.Graphics g,
int x,
int y,
int alarmSize)
|
static void |
paintAlarmInvalid(java.awt.Graphics g,
int x,
int y,
int alarmSize)
|
static void |
paintAlarmMajor(java.awt.Graphics g,
int x,
int y,
int alarmSize)
|
static void |
paintAlarmMinor(java.awt.Graphics g,
int x,
int y,
int alarmSize)
|
static void |
paintBumps(java.awt.Graphics g,
int x,
int y,
int width,
int height,
java.awt.Color light,
java.awt.Color dark)
|
static void |
paintDark(java.awt.Graphics g)
|
static void |
paintDark(java.awt.Graphics g,
int x,
int y,
int width,
int height)
|
static void |
paintDisabled(java.awt.Graphics g)
Deprecated. |
static void |
paintDisabled(java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints picture indicateing disabled state. |
static void |
paintEmergency(java.awt.Graphics g,
int x,
int y,
int emergencySize)
|
static void |
paintNetworkError(java.awt.Graphics g,
int x,
int y,
int networkSize)
|
static void |
paintRectangle(java.awt.Graphics g,
java.awt.Color color,
float strokeWidth)
|
static void |
paintRectangle(java.awt.Graphics g,
int x,
int y,
int width,
int height,
java.awt.Color color,
float strokeWidth)
|
static void |
paintTimeout(java.awt.Graphics g,
int x,
int y,
int clockSize,
java.util.Date time)
|
static void |
paintWarning(java.awt.Graphics g,
int x,
int y,
int warningSize)
|
static void |
setEnhanced(boolean antial)
If set true then this singelton class paints all simbols
with switcher aon high quality rendering. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.awt.RenderingHints getAntialiasingHints()
public static java.awt.Paint getRasterPaint(java.awt.Color color)
color
- DOCUMENT ME!
public static java.awt.Paint getLinePaint(java.awt.Color color)
color
- DOCUMENT ME!
public static void paintDisabled(java.awt.Graphics g)
g
- 2D graphics to be painted onpublic static void paintDisabled(java.awt.Graphics g, int x, int y, int width, int height)
g
- 2D graphics to be painted onx
- the x coordinate of left upper corner of picturey
- the y coordinate of left upper corner of picturewidth
- the width of picture areaheight
- the heigth of picture areapublic static void paintDark(java.awt.Graphics g, int x, int y, int width, int height)
g
- x
- y
- width
- height
- public static void paintDark(java.awt.Graphics g)
g
- public static void paintTimeout(java.awt.Graphics g, int x, int y, int clockSize, java.util.Date time)
g
- x
- y
- clockSize
- time
- public static void paintRectangle(java.awt.Graphics g, int x, int y, int width, int height, java.awt.Color color, float strokeWidth)
g
- x
- y
- width
- height
- color
- strokeWidth
- public static void paintRectangle(java.awt.Graphics g, java.awt.Color color, float strokeWidth)
g
- color
- strokeWidth
- public static void paintWarning(java.awt.Graphics g, int x, int y, int warningSize)
g
- x
- y
- warningSize
- public static void paintAlarm(java.awt.Graphics g, int x, int y, int alarmSize)
g
- x
- y
- alarmSize
- public static void paintAlarmMinor(java.awt.Graphics g, int x, int y, int alarmSize)
g
- x
- y
- alarmSize
- public static void paintAlarmMajor(java.awt.Graphics g, int x, int y, int alarmSize)
g
- x
- y
- alarmSize
- public static void paintAlarmInvalid(java.awt.Graphics g, int x, int y, int alarmSize)
g
- x
- y
- alarmSize
- public static void paintNetworkError(java.awt.Graphics g, int x, int y, int networkSize)
g
- x
- y
- networkSize
- public static void paintEmergency(java.awt.Graphics g, int x, int y, int emergencySize)
public static void main(java.lang.String[] args)
public static void paintBumps(java.awt.Graphics g, int x, int y, int width, int height, java.awt.Color light, java.awt.Color dark)
public static boolean isEnhanced()
true
then this singelton class paints all simbols with
switcher aon high quality rendering.
true
all paintin is done with antialiasing
renderingpublic static void setEnhanced(boolean antial)
true
then this singelton class paints all simbols
with switcher aon high quality rendering.
antial
- new antialiasing flag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |