Package org.eclipse.gef.fx.jface
Class FXPaintUtils
java.lang.Object
org.eclipse.gef.fx.jface.FXPaintUtils
Provides utilities for dealing with
Paint
representations.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
.
-
Constructor Details
-
FXPaintUtils
public FXPaintUtils()
-
-
Method Details
-
getPaintImageData
Creates a rectangularImage
to visualize the givenPaint
. -
getPaintDisplayText
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.
-