diff --git a/cave/build/static/common/cave/etc/gfe/userPython/gfeConfig/gfeConfig.py b/cave/build/static/common/cave/etc/gfe/userPython/gfeConfig/gfeConfig.py index 8f3a42adc9..bc075edc18 100644 --- a/cave/build/static/common/cave/etc/gfe/userPython/gfeConfig/gfeConfig.py +++ b/cave/build/static/common/cave/etc/gfe/userPython/gfeConfig/gfeConfig.py @@ -24,11 +24,12 @@ #------*-python-*------------------------------------------------------------- # Config file for the GFE (Graphical Forecast Editor). -# -# $Id$ -#----------------------------------------------------------------------------- -# Heading -#----------------------------------------------------------------------------- +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 11/20/2013 2488 randerso Changed to use DejaVu fonts GFESUITE_HOME = "/awips2/GFESuite" GFESUITE_PRDDIR = "/tmp/products" @@ -262,11 +263,11 @@ MapBackgrounds_default = ['States','CWA'] # style is a font style (one of "regular", "bold", "italic", or "bold italic") # height is an integer representing the font height. # Example: Times New Roman-bold-36. -TextFont0 = "Bitstream Vera Sans Mono-regular-9" -TextFont1 = "Bitstream Vera Sans Mono-regular-9" -TextFont2 = "Bitstream Vera Sans Mono-bold-12" -TextFont3 = "Bitstream Vera Sans Mono-bold-14" -TextFont4 = "Bitstream Vera Sans Mono-bold-20" +TextFont0 = "DejaVu Sans Mono-regular-9" +TextFont1 = "DejaVu Sans Mono-regular-9" +TextFont2 = "DejaVu Sans Mono-bold-12" +TextFont3 = "DejaVu Sans Mono-bold-14" +TextFont4 = "DejaVu Sans Mono-bold-20" # The color which will be used as the background for all of the display # panes. diff --git a/cave/com.raytheon.uf.viz.alertviz.ui/src/com/raytheon/uf/viz/alertviz/ui/audio/AlarmBeepJob.java b/cave/com.raytheon.uf.viz.alertviz.ui/src/com/raytheon/uf/viz/alertviz/ui/audio/AlarmBeepJob.java index e81969c057..f41a8387f5 100644 --- a/cave/com.raytheon.uf.viz.alertviz.ui/src/com/raytheon/uf/viz/alertviz/ui/audio/AlarmBeepJob.java +++ b/cave/com.raytheon.uf.viz.alertviz.ui/src/com/raytheon/uf/viz/alertviz/ui/audio/AlarmBeepJob.java @@ -25,6 +25,9 @@ import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; import org.eclipse.core.runtime.jobs.Job; +import org.eclipse.swt.widgets.Display; + +import com.raytheon.uf.viz.core.VizApp; /** * Repeats playing the System beep. Same code as @@ -36,9 +39,9 @@ import org.eclipse.core.runtime.jobs.Job; * Date Ticket# Engineer Description * ------------ ---------- ----------- -------------------------- * Mar 03, 2011 #8059 rferrel Initial creation + * Nov 26, 2013 DR16772 gzhang use Display.beep() * * - * * @author rferrel * @version 1.0 */ @@ -70,8 +73,8 @@ public class AlarmBeepJob extends Job { @Override protected IStatus run(IProgressMonitor monitor) { IStatus status = Status.OK_STATUS; - if (count > 0) { - Toolkit.getDefaultToolkit().beep(); + if (count > 0) { + VizApp.runAsync(new Runnable(){@Override public void run(){Display.getDefault().beep();}}); // DR 16772 //Toolkit.getDefaultToolkit().beep(); reSchedule(); count--; } else { diff --git a/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/dialogs/FFMPTable.java b/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/dialogs/FFMPTable.java index 9c0b1b732d..7c2ccaa8d4 100644 --- a/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/dialogs/FFMPTable.java +++ b/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/dialogs/FFMPTable.java @@ -250,7 +250,8 @@ public abstract class FFMPTable extends Composite { event.gc.setForeground(lineColor); event.gc.setLineWidth(1); int currentCol = event.index; - + + TableItem ti = (TableItem) event.item; Rectangle rect = ((TableItem) event.item).getBounds(currentCol); event.gc.drawRectangle(rect.x - 1, rect.y - 1, rect.width, rect.height); @@ -265,6 +266,13 @@ public abstract class FFMPTable extends Composite { // Draw a top line event.gc.drawLine(rect.x, rect.y, rect.x + rect.width, rect.y); + // Draw a bottom line if this is the last row of the table + int index = table.indexOf(ti); + if (index == table.getItemCount() - 1) { + event.gc.drawLine(rect.x, rect.y + rect.height - 2, rect.x + + rect.width, rect.y + rect.height - 2); + } + if ((tableIndex >= 0) && (tableIndex < table.getItemCount())) { event.gc.setForeground(parent.getDisplay().getSystemColor( SWT.COLOR_BLUE)); diff --git a/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/dialogs/TimeDurScaleComp.java b/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/dialogs/TimeDurScaleComp.java index a82796bb47..ccb17fafb6 100644 --- a/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/dialogs/TimeDurScaleComp.java +++ b/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/dialogs/TimeDurScaleComp.java @@ -41,6 +41,22 @@ import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Canvas; import org.eclipse.swt.widgets.Composite; +/** + * Time Duration Scale Composite + * + *
+ * + * SOFTWARE HISTORY + * + * Date Ticket# Engineer Description + * ------------ ---------- ----------- -------------------------- + * Nov 20, 2013 #2488 randerso Changed to use DejaVu font + * + *+ * + * @author randerso + * @version 1.0 + */ public class TimeDurScaleComp extends Composite { /** * Parent composite. @@ -252,13 +268,10 @@ public class TimeDurScaleComp extends Composite { */ private void init() { // Create the font - // canvasFont = new Font(parentComp.getDisplay(), "Courier", 10, - // SWT.NORMAL); - // canvasFont = new Font(parentComp.getDisplay(), "Monospace", 10, - // SWT.NORMAL); FontData fd = parentComp.getDisplay().getSystemFont().getFontData()[0]; - fd.setName("Bitstream Vera Sans Mono"); + // TODO not have hard coded font name + fd.setName("DejaVu Sans Mono"); canvasFont = new Font(parentComp.getDisplay(), fd); // Create the time bar colors @@ -307,6 +320,7 @@ public class TimeDurScaleComp extends Composite { this.pack(); this.addDisposeListener(new DisposeListener() { + @Override public void widgetDisposed(DisposeEvent arg0) { greyColor.dispose(); yellowColor.dispose(); @@ -328,6 +342,7 @@ public class TimeDurScaleComp extends Composite { timeSliderCanvas.setLayoutData(new GridData(CANVAS_WIDTH + 10, CANVAS_HEIGHT)); timeSliderCanvas.addPaintListener(new PaintListener() { + @Override public void paintControl(PaintEvent e) { drawTimeSliderCanvas(e.gc); } diff --git a/cave/com.raytheon.uf.viz.monitor.scan/src/com/raytheon/uf/viz/monitor/scan/tables/SCANTable.java b/cave/com.raytheon.uf.viz.monitor.scan/src/com/raytheon/uf/viz/monitor/scan/tables/SCANTable.java index 695cfc69d9..efe965078e 100644 --- a/cave/com.raytheon.uf.viz.monitor.scan/src/com/raytheon/uf/viz/monitor/scan/tables/SCANTable.java +++ b/cave/com.raytheon.uf.viz.monitor.scan/src/com/raytheon/uf/viz/monitor/scan/tables/SCANTable.java @@ -82,8 +82,8 @@ import com.raytheon.uf.viz.monitor.scan.tables.SCANAlarmAlertManager.AlertedAlar * issue on the images being blank and throwing errors. * Also cleaned up some code. * + * Nov 26, 2013 DR16782 gzhang use Display.beep() * - * * @author lvenable * @version 1.0 */ @@ -934,7 +934,7 @@ public abstract class SCANTable extends Composite { beepTimer.purge(); } if (mgr.isRing()) { - Toolkit.getDefaultToolkit().beep(); + Display.getDefault().beep();//Toolkit.getDefaultToolkit().beep(); } else { beepTimer.cancel(); beepTimer.purge(); diff --git a/cave/com.raytheon.uf.viz.monitor/src/com/raytheon/uf/viz/monitor/ui/dialogs/TableComp.java b/cave/com.raytheon.uf.viz.monitor/src/com/raytheon/uf/viz/monitor/ui/dialogs/TableComp.java index d27f140d83..524c069168 100644 --- a/cave/com.raytheon.uf.viz.monitor/src/com/raytheon/uf/viz/monitor/ui/dialogs/TableComp.java +++ b/cave/com.raytheon.uf.viz.monitor/src/com/raytheon/uf/viz/monitor/ui/dialogs/TableComp.java @@ -270,6 +270,14 @@ public abstract class TableComp extends Composite { // Draw a top line event.gc.drawLine(rect.x, rect.y, rect.x + rect.width, rect.y); + + // Draw a bottom line if this is the last row of the table + TableItem ti = (TableItem) event.item; + int idx = table.indexOf(ti); + if (idx == table.getItemCount() - 1) { + event.gc.drawLine(rect.x, rect.y + rect.height - 2, rect.x + + rect.width, rect.y + rect.height - 2); + } if (tableIndex >= 0) { event.gc.setForeground(parent.getDisplay().getSystemColor( diff --git a/cave/com.raytheon.viz.aviation/src/com/raytheon/viz/aviation/climatology/WindRosePlotDlg.java b/cave/com.raytheon.viz.aviation/src/com/raytheon/viz/aviation/climatology/WindRosePlotDlg.java index cc580a6708..5a308a114b 100644 --- a/cave/com.raytheon.viz.aviation/src/com/raytheon/viz/aviation/climatology/WindRosePlotDlg.java +++ b/cave/com.raytheon.viz.aviation/src/com/raytheon/viz/aviation/climatology/WindRosePlotDlg.java @@ -37,7 +37,9 @@ import org.eclipse.swt.graphics.GC; import org.eclipse.swt.graphics.Image; import org.eclipse.swt.graphics.ImageData; import org.eclipse.swt.graphics.ImageLoader; +import org.eclipse.swt.graphics.Point; import org.eclipse.swt.graphics.RGB; +import org.eclipse.swt.graphics.Rectangle; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.printing.PrintDialog; @@ -85,6 +87,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog; * 04OCT2012 1229 rferrel Changes for non-blocking WindRoseConfigDlg. * 08OCT2012 1229 rferrel Made non-blocking. * 10/15/2012 1229 rferrel Changes for non-blocking HelpUsageDlg. + * 03Dec2013 16754 zhao Modified printImage() * * * @@ -734,20 +737,36 @@ public class WindRosePlotDlg extends CaveSWTDialog { } private void printImage() { + Image image = windRoseCanvasComp.getWindRoseImage(); + ImageData imageData = image.getImageData(); PrintDialog dialog = new PrintDialog(shell, SWT.NULL); PrinterData printerData = dialog.open(); if (printerData != null) { - // Create the printer object Printer printer = new Printer(printerData); + Point screenDPI = shell.getDisplay().getDPI(); + Point printerDPI = printer.getDPI(); + Rectangle bounds = printer.getBounds(); + int destX = (screenDPI.x*bounds.width - printerDPI.x*imageData.width)/screenDPI.x/2; + if (destX < 0) { + destX = 0; + } + int destY = (screenDPI.x*bounds.height - printerDPI.x*imageData.height)/screenDPI.x*80/100/2; + if (destY < 0) { + destY = 0; + } printer.startJob("jj"); GC gc = new GC(printer); + Image printerImage = new Image(printer, imageData); if (printer.startPage()) { - windRoseCanvasComp.drawCanvas(gc); + gc.drawImage(printerImage, 0, 0, imageData.width, imageData.height, destX, destY, + printerDPI.x*imageData.width/screenDPI.x, + printerDPI.x*imageData.height/screenDPI.x); printer.endPage(); } + printerImage.dispose(); gc.dispose(); printer.endJob(); printer.dispose(); diff --git a/cave/com.raytheon.viz.core.gl/localization/fonts/VeraMono.ttf b/cave/com.raytheon.viz.core.gl/localization/fonts/VeraMono.ttf deleted file mode 100644 index 139f0b4311..0000000000 Binary files a/cave/com.raytheon.viz.core.gl/localization/fonts/VeraMono.ttf and /dev/null differ diff --git a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/AbstractSaveParameterDialog.java b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/AbstractSaveParameterDialog.java index 46cb855de0..d96b935d09 100644 --- a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/AbstractSaveParameterDialog.java +++ b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/AbstractSaveParameterDialog.java @@ -63,10 +63,11 @@ import com.raytheon.viz.ui.dialogs.CaveJFACEDialog; * * Date Ticket# Engineer Description * ------------ ---------- ----------- -------------------------- - * Oct 26, 2011 randerso Initial creation + * Oct 26, 2011 randerso Initial creation * Oct 30, 2012 1298 rferrel Code clean for non-blocking dialog. - * 02/13/2013 #1597 randerso Made number of concurrent save threads a configurable value. + * Feb 13, 2013 1597 randerso Made number of concurrent save threads a configurable value. * Added logging to support GFE Performance metrics + * Nov 20, 2013 2488 randerso Changed to use DejaVu font * * * @@ -127,7 +128,8 @@ public abstract class AbstractSaveParameterDialog extends CaveJFACEDialog master.addDisposeListener(this); FontData fd = master.getDisplay().getSystemFont().getFontData()[0]; - fd.setName("Bitstream Vera Sans Mono"); + // TODO not have hard coded font name + fd.setName("DejaVu Sans Mono"); font = new Font(master.getDisplay(), fd); initializeComponents(); diff --git a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/WERevertDialog.java b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/WERevertDialog.java index 779fec1dbf..9f1affbc8a 100644 --- a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/WERevertDialog.java +++ b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/WERevertDialog.java @@ -57,8 +57,9 @@ import com.raytheon.viz.ui.dialogs.CaveJFACEDialog; * * Date Ticket# Engineer Description * ------------ ---------- ----------- -------------------------- - * Jan 21, 2011 randerso Initial creation + * Jan 21, 2011 randerso Initial creation * Oct 25, 2012 1287 rferrel Code clean up for non-blocking dialog. + * Nov 20, 2013 2488 randerso Changed to use DejaVu font * * * @@ -107,7 +108,8 @@ public class WERevertDialog extends CaveJFACEDialog implements DisposeListener { master.addDisposeListener(this); FontData fd = master.getDisplay().getSystemFont().getFontData()[0]; - fd.setName("Bitstream Vera Sans Mono"); + // TODO not have hard coded font name + fd.setName("DejaVu Sans Mono"); font = new Font(master.getDisplay(), fd); String t; diff --git a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/formatterlauncher/StyledTextComp.java b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/formatterlauncher/StyledTextComp.java index 2a34c6da9e..0002a7fda2 100644 --- a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/formatterlauncher/StyledTextComp.java +++ b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/formatterlauncher/StyledTextComp.java @@ -65,11 +65,12 @@ import com.raytheon.uf.common.status.UFStatus.Priority; import com.raytheon.uf.viz.core.RGBColors; import com.raytheon.viz.gfe.Activator; import com.raytheon.viz.gfe.dialogs.formatterlauncher.ProductEditorComp.PTypeCategory; +import com.raytheon.viz.gfe.rsc.GFEFonts; import com.raytheon.viz.gfe.textformatter.TextFmtParserUtil; /** * Composite containing the product editor. - * + * *
* SOFTWARE HISTORY * Date Ticket# Engineer Description @@ -81,12 +82,12 @@ import com.raytheon.viz.gfe.textformatter.TextFmtParserUtil; * 03 Dec 2012 15620 ryu Unlock framed cities list for editing. * 30 APR 2013 16095 ryu Modified updateTextStyle() to not lock edited text. * 04 SEP 2013 16534 ryu Fixed word wrap to not insert duplicate text; refactor. - * + * *- * + * * @author lvenable * @version 1.0 - * + * */ public class StyledTextComp extends Composite { private static final transient IUFStatusHandler statusHandler = UFStatus @@ -189,7 +190,7 @@ public class StyledTextComp extends Composite { /** * Constructor. - * + * * @param parent * Parent composite. */ @@ -207,10 +208,12 @@ public class StyledTextComp extends Composite { private void init() { String fontSetting = Activator.getDefault().getPreferenceStore() .getString("ProductOutputDialog_font"); + FontData fontData; if (fontSetting.isEmpty()) { - fontSetting = "Bitstream Vera Sans Mono-bold-12"; + fontData = GFEFonts.getFontData(2); + } else { + fontData = StringConverter.asFontData(fontSetting); } - FontData fontData = StringConverter.asFontData(fontSetting); textFont = new Font(parent.getDisplay(), fontData); createMouseListner(); @@ -227,6 +230,7 @@ public class StyledTextComp extends Composite { createTextControl(); this.addDisposeListener(new DisposeListener() { + @Override public void widgetDisposed(DisposeEvent arg0) { textFont.dispose(); bgColor.dispose(); @@ -307,7 +311,7 @@ public class StyledTextComp extends Composite { /** * Get the StyledText editor. - * + * * @return The StyledText editor. */ public StyledText getTextEditorST() { @@ -316,7 +320,7 @@ public class StyledTextComp extends Composite { /** * Set the product text. - * + * * @param text * The product text. */ @@ -398,8 +402,7 @@ public class StyledTextComp extends Composite { // should be unlocked. Cities list is unlocked for editing // when framing codes are present. if (newProduct) { - if (cityTip != null && - cityTip.getText().indexOf("|*") > 0) { + if (cityTip != null && cityTip.getText().indexOf("|*") > 0) { unlockCitySegs.add(ugc); } } @@ -411,8 +414,7 @@ public class StyledTextComp extends Composite { lockLines(productTextArray, startLine, cityStart); lockLines(productTextArray, cityEnd, endLine); - } - else { + } else { lockLines(productTextArray, startLine, endLine); } } @@ -484,7 +486,7 @@ public class StyledTextComp extends Composite { /** * Parse the product text string. - * + * * @param productText */ private void parseProductText(String productText) { @@ -564,7 +566,7 @@ public class StyledTextComp extends Composite { replaceText(ff, SPC + newfield); } } else { - String s = SPC + newfield; + String s = SPC + newfield; if (!ff.getText().equals(s)) { replaceText(ff, s); } @@ -670,7 +672,7 @@ public class StyledTextComp extends Composite { /** * Handle the verify key event. This event fires after a change has been * made to the control (after the text has been updated, for example) - * + * * @param event * Verify event that was fired. */ @@ -731,8 +733,7 @@ public class StyledTextComp extends Composite { // .getStyleRangeAtOffset(event.start + event.length + 1); // if it's in a framing code, turn it red - if (startRange != null - && endRange != null + if (startRange != null && endRange != null && event.start > startRange.start && event.start + event.length < endRange.start && startRange.similarTo(endRange) @@ -763,7 +764,7 @@ public class StyledTextComp extends Composite { /** * Handle the key event when a key is released. - * + * * @param ke * Key event. */ @@ -785,7 +786,7 @@ public class StyledTextComp extends Composite { /** * Check if there is selected text and if there is locked text in the * selected text. - * + * * @return True if there is selected text that contains locked text. */ private boolean selectionHasLockedText() { @@ -799,12 +800,12 @@ public class StyledTextComp extends Composite { /** * Check if there is locked text in the specified range of text. - * + * * @param offset * The starting point of the locked text search. * @param length * The length of the search. - * + * * @return Whether or not there is text in the range that contains locked * text. */ @@ -822,7 +823,7 @@ public class StyledTextComp extends Composite { /** * Select the framing code and the text contained in the framing code. - * + * * @param sr * StyleRange. */ @@ -834,7 +835,7 @@ public class StyledTextComp extends Composite { /** * Check if the key being pressed is a "non-edit" key. - * + * * @param event * Verify event. * @return True if the key is an arrow or "non-edit" key. @@ -856,6 +857,7 @@ public class StyledTextComp extends Composite { private void createMouseListner() { mouseListener = new Listener() { + @Override public void handleEvent(Event e) { if (e.type == SWT.MouseDown) { handleMouseDown(e); @@ -868,7 +870,7 @@ public class StyledTextComp extends Composite { /** * Handle the mouse down event. - * + * * @param e * Event fired. */ @@ -903,7 +905,7 @@ public class StyledTextComp extends Composite { /** * Handle the mouse up event - * + * * @param e * Event fired. */ @@ -1010,7 +1012,7 @@ public class StyledTextComp extends Composite { /** * Checks if the system is editing, e.g. updating the issue time every * minute, vs a user typing text in the text area - * + * * @return */ private boolean isSystemTextChange() { @@ -1035,17 +1037,19 @@ public class StyledTextComp extends Composite { } protected boolean isUpperCase(final String word) { - for (int index= word.length() - 1; index >= 0; index--) { - if (Character.isLowerCase(word.charAt(index))) + for (int index = word.length() - 1; index >= 0; index--) { + if (Character.isLowerCase(word.charAt(index))) { return false; + } } return true; } protected void upper() { String text = textEditorST.getText(); - if (isUpperCase(text)) + if (isUpperCase(text)) { return; + } int topIdx = textEditorST.getTopIndex(); setProductText(textEditorST.getText().toUpperCase()); textEditorST.setTopIndex(topIdx); @@ -1161,7 +1165,7 @@ public class StyledTextComp extends Composite { /** * Getter for the column at which wrap and auto-wrap will wrap the text. - * + * * @return the column number */ public int getWrapColumn() { @@ -1170,7 +1174,7 @@ public class StyledTextComp extends Composite { /** * Getter for the column at which wrap and auto-wrap will wrap the text. - * + * * @param wrapColumn * the column number */ @@ -1209,7 +1213,7 @@ public class StyledTextComp extends Composite { /** * Query the prefs for setting. If it does not exist, use colorDft as its * value. Create an SWT Color for display from the value and return it. - * + * * @param prefs * A preference store which might have config values. * @param display @@ -1232,7 +1236,7 @@ public class StyledTextComp extends Composite { /** * Send a PROBLEM message if color1 is exactly equal to color2. - * + * * @param color1 * the first color * @param color2 @@ -1259,7 +1263,7 @@ public class StyledTextComp extends Composite { *
* The getter name is different to avoid confusion with the getFgColor()
* method of Control.
- *
+ *
* @return the foreground Color
*/
public Color getFgndColor() {
@@ -1270,7 +1274,7 @@ public class StyledTextComp extends Composite {
* Get the framed text color of the StyledTextComp. This is the actual
* color, not a copy. It will be disposed when the StyledTextComp is, and
* should not be disposed before then.
- *
+ *
* @return the frameColor
*/
public Color getFrameColor() {
@@ -1281,7 +1285,7 @@ public class StyledTextComp extends Composite {
* Get the insert color of the StyledTextComp. This is the actual color, not
* a copy. It will be disposed when the StyledTextComp is, and should not be
* disposed before then.
- *
+ *
* @return the insertColor
*/
public Color getInsertColor() {
@@ -1292,7 +1296,7 @@ public class StyledTextComp extends Composite {
* Get the locked text color of the StyledTextComp. This is the actual
* color, not a copy. It will be disposed when the StyledTextComp is, and
* should not be disposed before then.
- *
+ *
* @return the lockColor
*/
public Color getLockColor() {
@@ -1302,7 +1306,7 @@ public class StyledTextComp extends Composite {
/**
* Word wrap the text in the block around cursorIndex. Adjust the cursor
* position to account for inserted or deleted whitespace.
- *
+ *
* @param st
* The StyledText in which word wrap is to be performed
* @param cursorIndex
@@ -1336,7 +1340,7 @@ public class StyledTextComp extends Composite {
line = st.getLine(searchLine);
int lineOffset = st.getOffsetAtLine(searchLine);
- // if line contains locked text, quit looking.
+ // if line contains locked text, quit looking.
if (rangeHasLockedText(lineOffset, line.length())) {
break;
}
@@ -1393,7 +1397,7 @@ public class StyledTextComp extends Composite {
if (endIndex >= st.getCharCount()) {
endIndex = st.getCharCount() - 1;
}
-
+
if (endIndex < startIndex) {
return new int[] { startIndex, endIndex, 0 };
}
diff --git a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/rsc/GFEFonts.java b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/rsc/GFEFonts.java
index 80122794cd..b9029f1fc8 100644
--- a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/rsc/GFEFonts.java
+++ b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/rsc/GFEFonts.java
@@ -46,6 +46,7 @@ import com.raytheon.viz.gfe.GFEPreference;
* Apr 27, 2011 #9250 bkowal getStyle and getName are now used to
* get the style and name associated with
* a FontData object.
+ * Nov 20, 2013 #2488 randerso Changed to use DejaVu fonts
*
*
*
@@ -57,9 +58,9 @@ public class GFEFonts {
private static final transient IUFStatusHandler statusHandler = UFStatus
.getHandler(GFEFonts.class);
- private static final String DEFAULT_FONT_NAME = "Bitstream Vera Sans";
+ private static final String DEFAULT_FONT_NAME = "DejaVu Sans Mono";
- private static final int[] DEFAULT_FONT_SIZE = { 8, 10, 12, 14, 20 };
+ private static final int[] DEFAULT_FONT_SIZE = { 9, 9, 12, 14, 20 };
private static final int DEFAULT_FONT_STYLE = SWT.BOLD;
diff --git a/cave/com.raytheon.viz.radar/plugin.xml b/cave/com.raytheon.viz.radar/plugin.xml
index fd55cfb605..bfeff98aa4 100644
--- a/cave/com.raytheon.viz.radar/plugin.xml
+++ b/cave/com.raytheon.viz.radar/plugin.xml
@@ -147,4 +147,12 @@
+