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