Interface ShapePaint
- 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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float[][]static final float[]static final float[]static final float[]static final float[]static final float[]static final float[]static final float[]static final float[]static final float[] -
Method Summary
Modifier and TypeMethodDescriptionstatic ShapePaintapply(org.graphstream.ui.graphicGraph.stylesheet.Style style) static ShapePaintapply(org.graphstream.ui.graphicGraph.stylesheet.Style style, boolean forShadow) static Color[]createColors(org.graphstream.ui.graphicGraph.stylesheet.Style style, boolean forShadow) The array of colors in the fill-color property of the style.static Color[]createColors(org.graphstream.ui.graphicGraph.stylesheet.Style style, int n, org.graphstream.ui.graphicGraph.stylesheet.Colors theColors) static float[]createFractions(org.graphstream.ui.graphicGraph.stylesheet.Style style, int n) static float[]createFractions(org.graphstream.ui.graphicGraph.stylesheet.Style style, Boolean forShadow) An array of floats regularly spaced in range [0,1], the number of floats is given by the style fill-color count.default ColorinterpolateColor(Color[] colors, double value) static ColorinterpolateColor(org.graphstream.ui.graphicGraph.stylesheet.Colors colors, double value)
-
Field Details
-
predefFractions2
static final float[] predefFractions2 -
predefFractions3
static final float[] predefFractions3 -
predefFractions4
static final float[] predefFractions4 -
predefFractions5
static final float[] predefFractions5 -
predefFractions6
static final float[] predefFractions6 -
predefFractions7
static final float[] predefFractions7 -
predefFractions8
static final float[] predefFractions8 -
predefFractions9
static final float[] predefFractions9 -
predefFractions10
static final float[] predefFractions10 -
predefFractions
static final float[][] predefFractions
-
-
Method Details
-
apply
-
apply
-
createFractions
static float[] createFractions(org.graphstream.ui.graphicGraph.stylesheet.Style style, Boolean forShadow) 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.
-
createFractions
static float[] createFractions(org.graphstream.ui.graphicGraph.stylesheet.Style style, int n) -
createColors
static Color[] createColors(org.graphstream.ui.graphicGraph.stylesheet.Style style, boolean forShadow) The array of colors in the fill-color property of the style.- Parameters:
style- The style to use.
-
createColors
static Color[] createColors(org.graphstream.ui.graphicGraph.stylesheet.Style style, int n, org.graphstream.ui.graphicGraph.stylesheet.Colors theColors) -
interpolateColor
static Color interpolateColor(org.graphstream.ui.graphicGraph.stylesheet.Colors colors, double value) -
interpolateColor
-