scale bar position

Curtis Rueden ctrueden at wisc.edu
Fri Aug 18 14:39:19 MDT 2006


Hi Don,

Thanks for the pointers. The setSide method does what I want, but only
allows toggling between two of the four valid edges in 3-D. So I added a
"setSide2" method to AxisScale that can be used in conjunction with setSide
to move the scale to any of the four valid edges. (In 2-D, setSide2 is not
used.) Feel free to change the name of the method if you can come up with
anything better.

-Curtis

On 8/18/06, Don Murray <dmurray at unidata.ucar.edu> wrote:
>
> Hi Curtis-
>
> Curtis Rueden wrote:
>
> > I haven't messed with AxisScale that much. Is there a way to position a
> > scale bar on the other side of a display plot (the box's "max" side
> rather
> > than the "min" side)? Right now, in 3D, all three axes stem from the
> > origin,
> > which actually makes it difficult to find an orientation that shows all
> > three axis labels clearly.
>
> You can call setSide(AxisScale.SECONDARY) to put it on the
> other side.  In 3D, this might not give you what you want
> but see if that works.  It was mostly tested in 2D.
>
> > If it's not currently possible, I am potentially interested in adding
> such
> > an option, depending on the work involved. What would it take? Changes
> to
> > AxisScale? Elsewhere?
>
> AxisScale would be the place.  You just have to figure out
> all the start, up, etc stuff which I'm sure you are much
> better at than I.
>
> I have a pending change to AxisScale that was contributed
> by Diana Naidoo, but I haven't gotten around to testing it.
> That would support rotating the axis tick labels.
>
> Don
> *************************************************************
> Don Murray                               UCAR Unidata Program
> dmurray at unidata.ucar.edu                        P.O. Box 3000
> (303) 497-8628                              Boulder, CO 80307
> http://www.unidata.ucar.edu/staff/donm
> *************************************************************
>
>
>


More information about the visad mailing list