Example usage for java.awt BasicStroke equals

List of usage examples for java.awt BasicStroke equals

Introduction

In this page you can find the example usage for java.awt BasicStroke equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Tests if a specified object is equal to this BasicStroke by first testing if it is a BasicStroke and then comparing its width, join, cap, miter limit, dash, and dash phase attributes with those of this BasicStroke .

Usage

From source file:Main.java

public static void main(String[] args) {
    BasicStroke stroke = new BasicStroke(10, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0.1F);
    System.out.println(stroke.equals(stroke));

}