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
  • Field Details

  • Method Details

    • apply

      static ShapePaint apply​(org.graphstream.ui.graphicGraph.stylesheet.Style style)
    • apply

      static ShapePaint apply​(org.graphstream.ui.graphicGraph.stylesheet.Style style, boolean forShadow)
    • createFractions

      static float[] createFractions​(org.graphstream.ui.graphicGraph.stylesheet.Style style, java.lang.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 java.awt.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 java.awt.Color[] createColors​(org.graphstream.ui.graphicGraph.stylesheet.Style style, int n, org.graphstream.ui.graphicGraph.stylesheet.Colors theColors)
    • interpolateColor

      static java.awt.Color interpolateColor​(org.graphstream.ui.graphicGraph.stylesheet.Colors colors, double value)
    • interpolateColor

      default java.awt.Color interpolateColor​(java.awt.Color[] colors, double value)