git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#16 expose columns, rows, font size
[fanfix.git]
/
src
/
jexer
/
session
/
SwingSessionInfo.java
diff --git
a/src/jexer/session/SwingSessionInfo.java
b/src/jexer/session/SwingSessionInfo.java
index 55a6d8d4f5858d11fb57bdf3e3e2a08deaf9e148..dcba27da5dc37a2778e4aa02ad5eb5483dab058d 100644
(file)
--- a/
src/jexer/session/SwingSessionInfo.java
+++ b/
src/jexer/session/SwingSessionInfo.java
@@
-3,7
+3,7
@@
*
* The MIT License (MIT)
*
*
* The MIT License (MIT)
*
- * Copyright (C) 201
6
Kevin Lamonte
+ * Copyright (C) 201
7
Kevin Lamonte
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@
-66,12
+66,12
@@
public final class SwingSessionInfo implements SessionInfo {
/**
* Text window width.
*/
/**
* Text window width.
*/
- private int windowWidth =
132
;
+ private int windowWidth =
80
;
/**
* Text window height.
*/
/**
* Text window height.
*/
- private int windowHeight =
40
;
+ private int windowHeight =
25
;
/**
* Username getter.
/**
* Username getter.
@@
-133,13
+133,17
@@
public final class SwingSessionInfo implements SessionInfo {
* @param frame the Swing Frame
* @param textWidth the width of a cell in pixels
* @param textHeight the height of a cell in pixels
* @param frame the Swing Frame
* @param textWidth the width of a cell in pixels
* @param textHeight the height of a cell in pixels
+ * @param windowWidth the number of text columns to start with
+ * @param windowHeight the number of text rows to start with
*/
public SwingSessionInfo(final Frame frame, final int textWidth,
*/
public SwingSessionInfo(final Frame frame, final int textWidth,
- final int textHeight) {
+ final int textHeight
, final int windowWidth, final int windowHeight
) {
- this.frame = frame;
- this.textWidth = textWidth;
- this.textHeight = textHeight;
+ this.frame = frame;
+ this.textWidth = textWidth;
+ this.textHeight = textHeight;
+ this.windowWidth = windowWidth;
+ this.windowHeight = windowHeight;
}
/**
}
/**