Package org.eclipse.gef.fx.jface
Class FXPaintUtils
- java.lang.Object
-
- org.eclipse.gef.fx.jface.FXPaintUtils
-
public class FXPaintUtils extends java.lang.Object
Provides utilities for dealing withPaint
representations.
-
-
Constructor Summary
Constructors Constructor Description FXPaintUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getPaintDisplayText(javafx.scene.paint.Paint paint)
Creates a human-readable string representation for the givenPaint
value.static ImageData
getPaintImageData(int width, int height, javafx.scene.paint.Paint paint)
Creates a rectangularImage
to visualize the givenPaint
.
-
-
-
Method Detail
-
getPaintImageData
public static ImageData getPaintImageData(int width, int height, javafx.scene.paint.Paint paint)
Creates a rectangularImage
to visualize the givenPaint
.
-
getPaintDisplayText
public static java.lang.String getPaintDisplayText(javafx.scene.paint.Paint paint)
Creates a human-readable string representation for the givenPaint
value.- Parameters:
paint
- ThePaint
value to create a string representation for.- Returns:
- A string characterizing the given
Paint
value.
-
-