Example usage for javax.swing.text StyleConstants LineSpacing

List of usage examples for javax.swing.text StyleConstants LineSpacing

Introduction

In this page you can find the example usage for javax.swing.text StyleConstants LineSpacing.

Prototype

Object LineSpacing

To view the source code for javax.swing.text StyleConstants LineSpacing.

Click Source Link

Document

The amount of space between lines of the paragraph.

Usage

From source file:Main.java

public static void main(String[] argv) {
    // Check if character-based attribute
    boolean b = StyleConstants.Italic instanceof AttributeSet.CharacterAttribute;
    b = StyleConstants.LineSpacing instanceof AttributeSet.CharacterAttribute;

    // Check if paragraph-based attribute
    b = StyleConstants.LineSpacing instanceof AttributeSet.ParagraphAttribute;
    b = StyleConstants.Italic instanceof AttributeSet.ParagraphAttribute;
}