Class DashedSeparator

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class DashedSeparator extends JComponent
This component draws a dashed horizontal line, similarly to a JSeparator. Its color and line strength (stroke width) can be set. Also, its width (the amount of available horizontal space it covers) can be set.
See Also:
  • Constructor Details

    • DashedSeparator

      @Deprecated(since="0.51.0", forRemoval=true) public DashedSeparator()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a dashed separator that uses the UI LaF's separator color and a line width of 1. It uses the available horizontal space.
    • DashedSeparator

      public DashedSeparator(Color color)
      Creates a dashed separator of the given color and a line width of 1. It uses the available horizontal space.
    • DashedSeparator

      @Deprecated(since="0.51.0", forRemoval=true) public DashedSeparator(float relativeWidth, float strokeWidth)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a dashed separator that uses the UI LaF's separator color and the given values for the stroke width (line thickness) and the relative horizontal length. The values for relativeWidth should be between 0 and 1; 1 meaning the line extends for all the horizontal width; 0.5 meaning only half the horizontal space is used (the line is centered).
    • DashedSeparator

      public DashedSeparator(Color color, float relativeWidth, float strokeWidth)
      Creates a dashed separator of the given color and the given values for the stroke width (line thickness) and the relative horizontal length. The values for relativeWidth should be between 0 and 1; 1 meaning the line extends for all the horizontal width; 0.5 meaning only half the horizontal space is used (the line is centered).
  • Method Details