NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
1. if the axis is screen based, dragging the box won't have any effect on the position of the axis since it is by the screen. seems setMatrix won't have effect on the position of the axis either. 2. if the axis is screen based, the min and max ticks change according to graph move. can this setLabelAllTicks be called accordingly? i think labelling the major ticks are good enough. -----Original Message----- From: Don Murray [mailto:dmurray@xxxxxxxxxxxxxxxx] Sent: Wednesday, January 08, 2003 5:39 PM To: Chen Zhang Subject: 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 *************************************************************
visad
archives: