Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- g.setPaint(Color.black);
- for (DrawnString d : model.getRoads()){
- Point2D.Double p = d.getPosition();
- Font font = new Font("TimesRoman", Font.PLAIN, 1);
- font.deriveFont(0.0001f); //doesn't work!
- g.setFont(font);
- g.drawString(d.getText(), (float) p.x, (float) p.y);
- }
Add Comment
Please, Sign In to add comment