Package civquest.swing.quadmap

Examples of civquest.swing.quadmap.Properties


  private class DashBorderPainter extends BorderPainter {
    public void paintBorder(Graphics g, Coordinate position, Coordinate offset,
                Coordinate paintCoord) {
     
      Properties properties = quadMap.getProperties();
     
      Coordinate[] cornerCoords = properties.getAbsFieldEdgeCoords(position, offset);

      // Ensure that we don't use the same line as1 the SE/SW-fields
      if (offset.x == 1) {
        cornerCoords[0].x--;
        cornerCoords[1].x--;
View Full Code Here


  public void paintField(PaintInfo paintInfo, Buffer buffer, Graphics2D graphics) throws InvalidImageException {
    Coordinate fieldPos = paintInfo.getFieldPos();
    FieldView fieldView = quadMap.getFieldView(buffer.getGameData(),
                           fieldPos);
//     Graphics2D graphics = buffer.getGraphics();
    Properties properties = quadMap.getProperties();
    Coordinate imageCoord = properties.getAbsImagePaintCoord(paintInfo.getCoord()).
      sub(buffer.getPosition());
    fieldView.paint(imageCoord, graphics);
  }
View Full Code Here

TOP

Related Classes of civquest.swing.quadmap.Properties

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.