Skip to content

Commit bb7c3e6

Browse files
authored
Tweaks (#572)
* Refactored * Fixed WM legend in pdf
1 parent defcf15 commit bb7c3e6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

squidApp/src/main/java/org/cirdles/squid/gui/dateInterpretations/plots/squid/WeightedMeanPlot.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -948,15 +948,15 @@ private void paintToSVG(Graphics2D g2d) {
948948

949949
// legend
950950
text.setText("Legend:");
951-
g2d.drawString(text.getText(), leftMargin + 225, topMargin + graphHeight + 80);
951+
g2d.drawString(text.getText(), leftMargin + 125, topMargin + graphHeight + 80);
952952

953953
g2d.setPaint(java.awt.Color.RED);
954954
text.setText("Included");
955-
g2d.drawString(text.getText(), leftMargin + 325, topMargin + graphHeight + 80);
955+
g2d.drawString(text.getText(), leftMargin + 225, topMargin + graphHeight + 80);
956956

957957
g2d.setPaint(java.awt.Color.BLUE);
958958
text.setText("Excluded");
959-
g2d.drawString(text.getText(), leftMargin + 425, topMargin + graphHeight + 80);
959+
g2d.drawString(text.getText(), leftMargin + 325, topMargin + graphHeight + 80);
960960

961961
// provide highlight and info about selected spot
962962
g2d.setFont(new java.awt.Font("SansSerif", java.awt.Font.PLAIN, 11));

squidCore/src/main/java/org/cirdles/squid/squidReports/squidReportColumns/SquidReportColumnXMLConverter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingC
2323
if (col.getUncertaintyColumn() != null) {
2424
context.convertAnother(col.getUncertaintyColumn());
2525
} else {
26-
writer.setValue("null");
26+
writer.setValue("");
2727
}
2828
writer.endNode();
2929

@@ -59,7 +59,7 @@ public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext co
5959
reader.moveUp();
6060

6161
reader.moveDown();
62-
if (!reader.getValue().equals("null")) {
62+
if (reader.getValue().length() > 0) {
6363
SquidReportColumnInterface uncertaintyColumn = SquidReportColumn.createSquidReportColumn("");
6464
uncertaintyColumn = (SquidReportColumnInterface) context.convertAnother(uncertaintyColumn, SquidReportColumn.class);
6565
col.setUncertaintyColumn(uncertaintyColumn);

0 commit comments

Comments
 (0)