Return-Path: X-Original-To: apmail-pivot-user-archive@www.apache.org Delivered-To: apmail-pivot-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 67BAD18BE7 for ; Tue, 1 Dec 2015 17:51:20 +0000 (UTC) Received: (qmail 29059 invoked by uid 500); 1 Dec 2015 17:51:14 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 29000 invoked by uid 500); 1 Dec 2015 17:51:14 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 28990 invoked by uid 99); 1 Dec 2015 17:51:13 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2015 17:51:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 80DECC059C for ; Tue, 1 Dec 2015 17:51:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id IK7CxgrD9-lQ for ; Tue, 1 Dec 2015 17:51:05 +0000 (UTC) Received: from mail-vk0-f54.google.com (mail-vk0-f54.google.com [209.85.213.54]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 5FB3D2160F for ; Tue, 1 Dec 2015 17:51:04 +0000 (UTC) Received: by vkay187 with SMTP id y187so8850153vka.3 for ; Tue, 01 Dec 2015 09:51:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=tpAw0KawYeyI6DhHjTAulgfBUhAOESXJocmze4hzMEY=; b=i9FAIcDD5aEqNBVRak7bUM9zg0vgBXDB53XjrVmgXukzB76jJ+9SjCNQLdlNYdT2iK zTM3U+Q2gR9tbyGnlv3i2JGx7TE7XbI0Gb1LcPyGmRkY+kqJrTLkCuPVZaTOVI2fWees IkWET9LmlXwm4pGu9N9QxzrkR2xvTHXLFN/gXSGHfW0RoHLIP8zLPYIEHCHv0orhTJy2 nNaUt8CC0JmnIBNT7H4or22WyjAik3PZxPqPzfOU8Tdhbznd3s8/zcJVcKXhFET2foTY l5Wc9yMOWvryDZVMMdPHuiIH+EfL3SVpovMbpBgb/tZ+LBfB5ukWzu2Gj6KtKo6x45lX 2C2g== MIME-Version: 1.0 X-Received: by 10.31.139.84 with SMTP id n81mr50123557vkd.78.1448992263235; Tue, 01 Dec 2015 09:51:03 -0800 (PST) Received: by 10.31.195.67 with HTTP; Tue, 1 Dec 2015 09:51:03 -0800 (PST) In-Reply-To: References: Date: Tue, 1 Dec 2015 11:51:03 -0600 Message-ID: Subject: Re: RE: From: Josh Highley To: user@pivot.apache.org Content-Type: multipart/alternative; boundary=001a114505fe21f2320525d9cd48 --001a114505fe21f2320525d9cd48 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I ran the demo you committed (big thanks BTW) and tried it in my app. There's a couple of issues: the zoomed in/out image still displays inside the confines of the original ImageView dimension. This is especially an issue when zooming in: parts of the image outside the original ImageView bounds are clipped, which is what I'm trying to avoid by using the ScrollPane. I want to see the entire image, just bigger, like what happens when I resize the Border container and set ImageView fill:true. The other issue is that the ScaleDecorator centers the zoomed image inside the ImageView as specified, but I need to center the ImageView/Border inside the larger ScrollPane. On a side note, when zooming in the image overwrites the Border on the right and bottom. Then after zooming out to < 100%, there's artifacts of the image remaining on the right side and bottom side. If you set your demo's Border element to have a thicker border, it becomes more apparent. Thanks, Josh On Mon, Nov 30, 2015 at 7:59 PM, Roger Whitcomb wrote: > Take a look at the =E2=80=9CScaleDecoratorDemo.java=E2=80=9D that I just = committed to the > source (if you can download the source through =E2=80=9Csvn=E2=80=9D). O= r I can send it > separately=E2=80=A6 > > > > ~Roger > > > > *From:* Josh Highley [mailto:joshhighley@gmail.com] > *Sent:* Monday, November 30, 2015 5:51 PM > *To:* user@pivot.apache.org > *Subject:* RE: > > > > No, I wasn't aware that existed. I found the Border method suggested by = a > past mailing list question so I went with it. I I'll look at ScaleDecorat= or > instead. > > Thanks > > Josh > > On Nov 30, 2015 5:21 PM, "Roger Whitcomb" > wrote: > > Hi Josh, > > Welcome to Pivot! Have you looked at using a > ScaleDecorator on your ImageView? This may work better than adjusting th= e > Border size. And it has settings for the alignment (left/center/right) o= f > the scaled image as well. I might be able, in a couple of days, to try t= o > implement a small example. Sorry there isn=E2=80=99t one already in the = examples > part of the code=E2=80=A6. > > > > Let us know, > > ~Roger Whitcomb > > > > *From:* Josh Highley [mailto:joshhighley@gmail.com] > *Sent:* Monday, November 30, 2015 2:08 PM > *To:* user@pivot.apache.org > *Subject:* > > > > I need help getting an image to display centered inside a larger > ScrollPane. My application displays an image that can be zoomed in and > out. A snippet of my current bxml is below. I adjust the zoom by changi= ng > the dimensions of the Border container. When the border is zoomed out su= ch > that it is smaller than the ScrollPane size, it's aligning to the > top-left. I'd like to center it vertically and horizontally. I've tried > various combinations of TablePane, FillPane and BoxPane as parents of the > Border. BoxPane with fill:true (maybe nested BoxPanes with opposite > orientations) isn't expanding to fill the ScrollPane as I'd expect; It > shrinks to the size of the Border/Image > > > > > > > > > > > > > > > > Thanks, > > > > Josh > > --001a114505fe21f2320525d9cd48 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I ran the demo you committed (big thanks BTW) and tried it= in my app.=C2=A0 There's a couple of issues: =C2=A0the zoomed in/out i= mage still displays inside the confines of the original ImageView dimension= .=C2=A0 This is especially an issue when zooming in: parts of the image out= side the original ImageView bounds are clipped, which is what I'm tryin= g to avoid by using the ScrollPane.=C2=A0 I want to see the entire image, j= ust bigger, like what happens when I resize the Border container and set Im= ageView fill:true.=C2=A0 The other issue is that the ScaleDecorator centers= the zoomed image inside the ImageView as specified, but I need to center t= he ImageView/Border inside the larger ScrollPane.

On a s= ide note, when zooming in the image overwrites the Border on the right and = bottom. Then after zooming out to < 100%, there's artifacts of the i= mage remaining on the right side and bottom side.=C2=A0 If you set your dem= o's Border element to have a thicker border, it becomes more apparent. = =C2=A0

Thanks,

Josh
=



=C2=A0


On Mon, N= ov 30, 2015 at 7:59 PM, Roger Whitcomb <Roger.Whitcomb@actian.com<= /a>> wrote:

Take a look at the =E2=80=9CScaleDeco= ratorDemo.java=E2=80=9D that I just committed to the source (if you can dow= nload the source through =E2=80=9Csvn=E2=80=9D).=C2=A0 Or I can send it sep= arately=E2=80=A6

=C2=A0

~Roger

=C2=A0

From: Josh Highley [mailto:joshhighley@gmail.com]
Sent: Monday, November 30, 2015 5:51 PM
To:
user@= pivot.apache.org
Subject: RE:

=C2=A0

No, I wasn't aware that existed.=C2=A0 I found the Border method sug= gested by a past mailing list question so I went with it. I I'll look a= t ScaleDecorator instead.

Thanks

Josh

On Nov 30, 2015 5:21 PM, "Roger Whitcomb" = <Roger.Wh= itcomb@actian.com> wrote:

Hi Josh,

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Welcome to Pivot!=C2= =A0 Have you looked at using a ScaleDecorator on your ImageView?=C2=A0 This may work better than adjusting the Border size.=C2=A0 And it has settings = for the alignment (left/center/right) of the scaled image as well.=C2=A0 I = might be able, in a couple of days, to try to implement a small example.=C2= =A0 Sorry there isn=E2=80=99t one already in the examples part of the code=E2=80=A6.

=C2=A0

Let us know,

~Roger Whitcomb<= /p>

=C2=A0

From: Josh Highley [mailto:joshhighley@gmail.com]
Sent: Monday, November 30, 2015 2:08 PM
To:
user@= pivot.apache.org
Subject:

=C2=A0

I need help getting an image to display centered ins= ide a larger ScrollPane.=C2=A0 My application displays an image that can be= zoomed in and out.=C2=A0 A snippet of my current bxml is below.=C2=A0 I adjust the zoom by changing the dimensions of the Border container.=C2= =A0 When the border is zoomed out such that it is smaller than the ScrollPa= ne size, it's aligning to the top-left.=C2=A0 I'd like to center it= vertically and horizontally.=C2=A0 I've tried various combinations of TablePane, FillPane and BoxPane as parents of the Border. BoxPane with = fill:true (maybe nested BoxPanes with opposite orientations) isn't expa= nding to fill the ScrollPane as I'd expect; It shrinks to the size of t= he Border/Image

=C2=A0

<ScrollPane>

=C2=A0 =C2=A0<Border>

=C2=A0 =C2=A0 =C2=A0 <ImageView styles=3D"{f= ill: true}"/>

=C2=A0 =C2=A0</Border>

</ScrollPane>

=C2=A0

Thanks,

=C2=A0

Josh


--001a114505fe21f2320525d9cd48--