From ae056b72b5b397cea249c490b10ec3083b1f4b6e Mon Sep 17 00:00:00 2001 From: Jeremy Faden Date: Fri, 15 Dec 2023 06:43:38 -0600 Subject: [PATCH] https://github.com/das-developers/das2java/issues/47: whoops, "CANVAS" should never clip. --- dasCore/src/org/das2/graph/DasAnnotation.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dasCore/src/org/das2/graph/DasAnnotation.java b/dasCore/src/org/das2/graph/DasAnnotation.java index 8359f104c..4f87db99e 100644 --- a/dasCore/src/org/das2/graph/DasAnnotation.java +++ b/dasCore/src/org/das2/graph/DasAnnotation.java @@ -520,24 +520,24 @@ private Rectangle calcBounds() { int hmin, hmax; if ( anchorType==AnchorType.CANVAS || plot==null ) { - hmin= getColumn().getDMinimum(); - hmax= getColumn().getDMaximum(); + hmin= 0; + hmax= getCanvas().getWidth(); } else { hmin= plot.getColumn().getDMinimum(); hmax= plot.getColumn().getDMaximum(); } if ( splitAnchorType ) { if ( verticalAnchorType==AnchorType.CANVAS || plot==null ) { - vmin= getRow().getDMinimum(); - vmax= getRow().getDMaximum(); + vmin= 0; + vmax= getCanvas().getHeight(); } else { vmin= plot.getRow().getDMinimum(); vmax= plot.getRow().getDMaximum(); } } else { if ( anchorType==AnchorType.CANVAS || plot==null ) { - vmin= getRow().getDMinimum(); - vmax= getRow().getDMaximum(); + vmin= 0; + vmax= getCanvas().getHeight(); } else { vmin= plot.getRow().getDMinimum(); vmax= plot.getRow().getDMaximum();