This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class KriegerHttpServer { | |
| public static final String BASE_URI = "http://localhost:8080/krieger-web/"; | |
| private static HttpServer SERVER; | |
| public static synchronized void stopServer() { | |
| SERVER.stop(); | |
| SERVER = null; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void drawTable(PDPage page, PDPageContentStream contentStream, float y, float margin, String[][] content, float[] colWidths) throws IOException { | |
| final int rows = content.length; | |
| final int cols = content[0].length; | |
| final float rowHeight = 40f; | |
| final float tableWidth = page.findMediaBox().getWidth() - margin - margin; | |
| final float tableHeight = rowHeight * rows; | |
| final float colWidth = tableWidth/(float)cols; | |
| final float cellMargin=5f; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void drawTable(PDPage page, PDPageContentStream contentStream, float y, float margin, String[][] content, float[] colWidths) throws IOException { | |
| final int rows = content.length; | |
| final int cols = content[0].length; | |
| final float rowHeight = 40f; | |
| final float tableWidth = page.findMediaBox().getWidth() - margin - margin; | |
| final float tableHeight = rowHeight * rows; | |
| final float colWidth = tableWidth/(float)cols; | |
| final float cellMargin=5f; |