Java Swing & AWT Graphics

Mercury Slope Analyzer

A specialized desktop application designed for architects and engineers to calculate roof slopes, convert angles, and analyze rafter lengths with real-time visual precision.

Mercury Slope Analyzer

Analytical Features & Logic

Dual Input System

Calculates roof slopes by seamlessly converting between Angle (Degrees) and Slope Percentage (%), ensuring flexibility for different engineering standards.

Dynamic Visual Analysis

Renders a real-time, scaled diagram of the roof slope utilizing the Java 2D API (Graphics2D, AffineTransform) with Advanced Anti-Aliasing.

Rafter Segmentation Logic

Automatically analyzes a 10-meter span, dividing it into twenty 50cm segments to determine precise elevation at specific points.

Validation & Safety

Includes robust error handling for non-numeric inputs and strictly enforces a 0-45 degree logical constraint to prevent critical calculation errors.

Technical Specifications