Interface FilteredStroke

  • All Superinterfaces:
    Stroke
    All Known Implementing Classes:
    CharcoalStroke


    public interface FilteredStroke
    extends Stroke
    This is a Stroke that modifies or sits on top of another Stroke. This model is especially convenient when you design a GUI to manipulate the properties of your Stroke.
    • Method Summary

      Modifier and Type Method and Description
      FilteredStroke deriveStroke(Stroke s)
      Similar to Font.deriveFont(), this makes a stroke similar to this object, except the underlying Stroke this stroke filters is replaced.
      Stroke getStroke()
       
    • Method Detail

      • getStroke

        Stroke getStroke()
        Returns:
        the underlying stroke being filtered.
      • deriveStroke

        FilteredStroke deriveStroke(Stroke s)
        Similar to Font.deriveFont(), this makes a stroke similar to this object, except the underlying Stroke this stroke filters is replaced.
        Parameters:
        s - the new underlying stroke to use.
        Returns:
        a new stroke that is built on top of s