¡@

Home 

java Programming Glossary: ticklength

How to “correctly” detect DPI of display with Java?

http://stackoverflow.com/questions/4707756/how-to-correctly-detect-dpi-of-display-with-java

Color.black Some vars we need. int end 0 int start 0 int tickLength 0 String text null Use clipping bounds to calculate first tick.. label. if start 0 text Integer.toString 0 isMetric cm in tickLength 10 if orientation HORIZONTAL g.drawLine 0 SIZE 1 0 SIZE tickLength.. 10 if orientation HORIZONTAL g.drawLine 0 SIZE 1 0 SIZE tickLength 1 g.drawString text 2 21 else g.drawLine SIZE 1 0 SIZE tickLength..