예제 #1
0
 public LogAxis(string label)
   : base(label, LogAxis.createLogTickUnits(Locale.getDefault()))
 {
   LogAxis logAxis = this;
   this.@base = 10.0;
   this.baseLog = Math.log(10.0);
   this.smallestValue = 1E-100;
   this.setDefaultAutoRange(new Range(0.01, 1.0));
   this.tickUnit = new NumberTickUnit(1.0, (NumberFormat) new DecimalFormat("0.#"), 9);
 }
예제 #2
0
 public NumberAxis(string label)
   : base(label, NumberAxis.createStandardTickUnits())
 {
   NumberAxis numberAxis = this;
   this.rangeType = RangeType.__\u003C\u003EFULL;
   this.autoRangeIncludesZero = true;
   this.autoRangeStickyZero = true;
   this.tickUnit = NumberAxis.__\u003C\u003EDEFAULT_TICK_UNIT;
   this.numberFormatOverride = (NumberFormat) null;
   this.markerBand = (MarkerAxisBand) null;
 }
예제 #3
0
 public virtual void setTickUnit(NumberTickUnit unit, bool notify, bool turnOffAutoSelect)
 {
   int num1 = turnOffAutoSelect ? 1 : 0;
   int num2 = notify ? 1 : 0;
   if (unit == null)
   {
     string str = "Null 'unit' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.tickUnit = unit;
     if (num1 != 0)
       this.setAutoTickUnitSelection(false, false);
     if (num2 == 0)
       return;
     this.notifyListeners(new AxisChangeEvent((Axis) this));
   }
 }
예제 #4
0
 public virtual void setTickUnit(NumberTickUnit unit)
 {
   this.setTickUnit(unit, true, true);
 }
예제 #5
0
 static NumberAxis()
 {
   ValueAxis.__\u003Cclinit\u003E();
   NumberAxis.__\u003C\u003EDEFAULT_TICK_UNIT = new NumberTickUnit(1.0, (NumberFormat) new DecimalFormat("0"));
 }