Guest User

Untitled

a guest
Feb 20th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. g.setPaint(Color.black);
  2. for (DrawnString d : model.getRoads()){
  3. Point2D.Double p = d.getPosition();
  4.  
  5. Font font = new Font("TimesRoman", Font.PLAIN, 1);
  6. font.deriveFont(0.0001f); //doesn't work!
  7. g.setFont(font);
  8.  
  9. g.drawString(d.getText(), (float) p.x, (float) p.y);
  10. }
Add Comment
Please, Sign In to add comment