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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
FXPaintUtils
public FXPaintUtils()
-
-
Method Details
-
getPaintImageData
Creates a rectangularImageto visualize the givenPaint. -
getPaintDisplayText
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.
-