Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j
In directory sc8-pr-cvs1:/tmp/cvs-serv12033/src/org/tn5250j
Modified Files:
Screen5250.java ScreenChar.java
Log Message:
Update related to hiding of column-separator
Index: Screen5250.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/Screen5250.java,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -d -r1.39 -r1.40
*** Screen5250.java 9 Jul 2003 18:55:39 -0000 1.39
--- Screen5250.java 25 Nov 2003 15:10:10 -0000 1.40
***************
*** 265,268 ****
--- 265,270 ----
if (getStringProperty("colSeparator").equals("Dot"))
colSepLine = 2;
+ if (getStringProperty("colSeparator").equals("Hide"))
+ colSepLine = 3;
}
***************
*** 314,317 ****
--- 316,321 ----
if (getStringProperty("colSeparator").equals("Dot"))
colSepLine = 2;
+ if (getStringProperty("colSeparator").equals("Hide"))
+ colSepLine = 3;
}
***************
*** 608,611 ****
--- 612,617 ----
if (pce.getNewValue().equals("Dot"))
colSepLine = 2;
+ if (pce.getNewValue().equals("Hide"))
+ colSepLine = 3;
}
***************
*** 2838,2841 ****
--- 2844,2848 ----
* 1 - dot
* 2 - short line
+ * 3 - do not show column separator
*/
public int getColSepLine() {
Index: ScreenChar.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/ScreenChar.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** ScreenChar.java 25 Nov 2003 10:41:15 -0000 1.8
--- ScreenChar.java 25 Nov 2003 15:10:10 -0000 1.9
***************
*** 552,567 ****
g.setColor(s.colorSep);
switch (s.getColSepLine()) {
! case 1:
g.drawLine(x, y + s.fmHeight - (int)s.lm.getLeading()-4, x, y + s.fmHeight);
g.drawLine(x + s.fmWidth - 1, y + s.fmHeight - (int)s.lm.getLeading()-4, x + s.fmWidth - 1, y + s.fmHeight);
break;
! case 2:
g.drawLine(x, y + s.fmHeight - (int)s.lm.getLeading()-3, x, y + s.fmHeight - (int)s.lm.getLeading()-4);
g.drawLine(x + s.fmWidth - 1, y + s.fmHeight - (int)s.lm.getLeading()-3, x + s.fmWidth - 1, y + s.fmHeight - (int)s.lm.getLeading()-4);
break;
! default:
! g.setColor(bg);
! g.drawLine(x, y, x, y + s.fmHeight - 1);
! g.drawLine(x + s.fmWidth - 1, y, x + s.fmWidth - 1, y + s.fmHeight);
break;
}
--- 552,568 ----
g.setColor(s.colorSep);
switch (s.getColSepLine()) {
! case 0: // line
! g.drawLine(x, y, x, y + s.fmHeight - 1);
! g.drawLine(x + s.fmWidth - 1, y, x + s.fmWidth - 1, y + s.fmHeight);
! break;
! case 1: // short line
g.drawLine(x, y + s.fmHeight - (int)s.lm.getLeading()-4, x, y + s.fmHeight);
g.drawLine(x + s.fmWidth - 1, y + s.fmHeight - (int)s.lm.getLeading()-4, x + s.fmWidth - 1, y + s.fmHeight);
break;
! case 2: // dot
g.drawLine(x, y + s.fmHeight - (int)s.lm.getLeading()-3, x, y + s.fmHeight - (int)s.lm.getLeading()-4);
g.drawLine(x + s.fmWidth - 1, y + s.fmHeight - (int)s.lm.getLeading()-3, x + s.fmWidth - 1, y + s.fmHeight - (int)s.lm.getLeading()-4);
break;
! case 3: // hide
break;
}
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.