All Known Implementing Classes:
ShapePaint.ShapeAreaPaint
, ShapePaint.ShapeColorPaint
, ShapePaint.ShapeDiagonal1GradientPaint
, ShapePaint.ShapeDiagonal2GradientPaint
, ShapePaint.ShapeDynPlainColorPaint
, ShapePaint.ShapeGradientPaint
, ShapePaint.ShapeHorizontalGradientPaint
, ShapePaint.ShapeImageScaledPaint
, ShapePaint.ShapeImageScaledRatioMaxPaint
, ShapePaint.ShapeImageScaledRatioMinPaint
, ShapePaint.ShapeImageTiledPaint
, ShapePaint.ShapePlainColorPaint
, ShapePaint.ShapeRadialGradientPaint
, ShapePaint.ShapeVerticalGradientPaint
public interface ShapePaint
Method Summary
All Methods Static Methods Instance Methods Default Methods
Modifier and Type
Method
Description
static ShapePaint
apply (org.graphstream.ui.graphicGraph.stylesheet.Style style)
static ShapePaint
apply (org.graphstream.ui.graphicGraph.stylesheet.Style style,
boolean forShadow)
static javafx.scene.paint.Stop[]
createColors (org.graphstream.ui.graphicGraph.stylesheet.Style style,
boolean forShadow)
Create colors and fractions
The array of colors in the fill-color property of the style.
static javafx.scene.paint.Stop[]
createColors (org.graphstream.ui.graphicGraph.stylesheet.Style style,
int nColor,
org.graphstream.ui.graphicGraph.stylesheet.Colors theColors,
int nFraction)
default javafx.scene.paint.Color
interpolateColor (javafx.scene.paint.Stop[] colors,
double value)
static javafx.scene.paint.Color
interpolateColor (org.graphstream.ui.graphicGraph.stylesheet.Colors colors,
double value)
Field Details
static final float[] predefFractions2
static final float[] predefFractions3
static final float[] predefFractions4
static final float[] predefFractions5
static final float[] predefFractions6
static final float[] predefFractions7
static final float[] predefFractions8
static final float[] predefFractions9
static final float[] predefFractions10
static final float[][] predefFractions
Method Details
static ShapePaint apply (
org.graphstream.ui.graphicGraph.stylesheet.Style style)
static ShapePaint apply (
org.graphstream.ui.graphicGraph.stylesheet.Style style,
boolean forShadow)
static javafx.scene.paint.Stop[] createColors (org.graphstream.ui.graphicGraph.stylesheet.Style style,
boolean forShadow)
Create colors and fractions
The array of colors in the fill-color property of the style.
An array of floats regularly spaced in range [0,1], the number of floats is given by the
style fill-color count.
Parameters:
style
- The style to use.
static javafx.scene.paint.Stop[] createColors (org.graphstream.ui.graphicGraph.stylesheet.Style style,
int nColor,
org.graphstream.ui.graphicGraph.stylesheet.Colors theColors,
int nFraction)
static javafx.scene.paint.Color interpolateColor (org.graphstream.ui.graphicGraph.stylesheet.Colors colors,
double value)
default javafx.scene.paint.Color interpolateColor (javafx.scene.paint.Stop[] colors,
double value)