Package org.csstudio.swt.widgets.util
Class GraphicsUtil
java.lang.Object
org.csstudio.swt.widgets.util.GraphicsUtil
The utility class contains functions that all related with graphics.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Pattern
createScaledPattern
(org.eclipse.draw2d.Graphics graphics, Device device, float x1, float y1, float x2, float y2, Color color1, int alpha1, Color color2, int alpha2) static Pattern
createScaledPattern
(org.eclipse.draw2d.Graphics graphics, Device device, float x1, float y1, float x2, float y2, Color color1, Color color2) static RGB
Mixes the passed Colors and returns the resulting Color.static boolean
testPatternSupported
(org.eclipse.draw2d.Graphics graphics)
-
Constructor Details
-
GraphicsUtil
public GraphicsUtil()
-
-
Method Details
-
testPatternSupported
public static boolean testPatternSupported(org.eclipse.draw2d.Graphics graphics) -
createScaledPattern
-
createScaledPattern
-
mixColors
Mixes the passed Colors and returns the resulting Color.- Parameters:
c1
- the first colorc2
- the second colorweight
- the first color's weight from 0-1- Returns:
- the new color
-