Re: questions ragarding axis

Chen Zhang-

Chen Zhang wrote:
1. when i use screen based axis, is it possible for me to change the margin
of the y-axis so a big number may be fully displayed?

You could either do this by making the display smaller using
the ProjectionControl.setMatrix() method or by dragging the
box to the right.

2. if nothing set, the axis is auto ticked with 2 numbers labelled.  can all
auto ticks be always labelled?

Not currently.  However, I just tried implementing a method that
would allow you to tell AxisScale to label all ticks:

public void setLabelAllTicks(boolean labelAll);

Before I check this in, do you really want all ticks labeled,
or just major ticks.  I've implemented it as just the
major ticks (maybe I should call it setLabelAllMajorTicks()).
It would seem that if you labelled minor ticks, it would
get quite messy.  I believe JSlider only labels major ticks.
Can someone confirm this for me?

If I hear no objection to this behavior or no better suggestions
for a method name, I'll check it in.  It would be available
in the next release.  Also, I will check in a change that Luke
Cantania contributed that will set the Axis title beyond the
bounds of the tick labels since that will be necessary for
labelling intermediate ticks (i.e. not just first and last).
(sorry it took so long, Luke!)

Don
*************************************************************
Don Murray                               UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307
http://www.unidata.ucar.edu/staff/donm
*************************************************************