krysalis-jcharts/src/java/org/krysalis/jcharts/axisChart/axis/scale AutomaticScaleCalculator.java,1.1,1.2
Chris McKay <[email protected]> Thu, 01 Jul 2004 01:35:34 +0000
| Newsgroups | gmane.comp.krysalis.jcharts.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/axisChart/axis/scale
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7474/src/java/org/krysalis/jcharts/axisChart/axis/scale
Modified Files:
AutomaticScaleCalculator.java
Log Message:
Dual Y axis changes
Index: AutomaticScaleCalculator.java
===================================================================
RCS file: /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/axisChart/axis/scale/AutomaticScaleCalculator.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** AutomaticScaleCalculator.java 17 May 2003 16:54:36 -0000 1.1
--- AutomaticScaleCalculator.java 1 Jul 2004 01:35:31 -0000 1.2
***************
*** 78,87 ****
{
super.setMinValue( 0.0d );
! super.setMaxValue( super.increment * super.getNumberOfScaleItems() );
}
else
{
super.setMaxValue( 0.0d );
! super.setMinValue( -( super.increment * super.getNumberOfScaleItems() ) );
}
}
--- 78,88 ----
{
super.setMinValue( 0.0d );
! // numberOfScaleItems is -1 to take into account 0 tick item
! super.setMaxValue( super.increment * (super.getNumberOfScaleItems() - 1) );
}
else
{
super.setMaxValue( 0.0d );
! super.setMinValue( -( super.increment * (super.getNumberOfScaleItems() - 1) ) );
}
}
***************
*** 109,113 ****
//---axis starts at minValue, not zero!
! super.setMaxValue( super.getMinValue() + ( this.increment * super.getNumberOfScaleItems() ) );
}
}
--- 110,115 ----
//---axis starts at minValue, not zero!
! // super.setMaxValue( super.getMinValue() + ( this.increment * super.getNumberOfScaleItems() ) );
! super.setMaxValue( super.getMinValue() + ( this.increment * (super.getNumberOfScaleItems() - 1) ) );
}
}
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com