TickUnitAdjustCommonDivisorMap実装サービス jp.ossc.nimbus.service.graph.TickUnitAdjustCommonDivisorMapService

jp.ossc.nimbus.service.graph.TickUnitAdjustCommonDivisorMapServiceは、軸の目盛りを調整する際に、切りがよくなるように目盛りの公約数を決めるTickUnitAdjustCommonDivisorMapデフォルト実装サービスです。

以下に簡単なサービス定義を示します。

  1. <?xml version="1.0" encoding="Shift_JIS"?>
  2. <!DOCTYPE server PUBLIC
  3. "-//Nimbus//DTD Nimbus 1.0//JA"
  4. "http://nimbus.sourceforge.jp/dtd/nimbus-service_1_0.dtd">
  5. <server>
  6. <manager>
  7. <!-- TickUnitAdjustCommonDivisorMapサービス -->
  8. <service name="TickUnitAdjustCommonDivisorMap"
  9. code="jp.ossc.nimbus.service.graph.TickUnitAdjustCommonDivisorMapService">
  10. <!-- 値に対する目盛り値の公約数のマッピング -->
  11. <attribute name="CommonDivisorMap">
  12. VALUE gt 0 and VALUE lt 3000 = 1,
  13. VALUE ge 3000 and VALUE lt 5000 = 5,
  14. VALUE ge 5000 and VALUE lt 30000 = 10,
  15. VALUE ge 30000 and VALUE lt 50000 = 50,
  16. VALUE ge 50000 and VALUE lt 300000 = 100,
  17. VALUE ge 300000 and VALUE lt 500000 = 500,
  18. VALUE ge 500000 and VALUE lt 3000000 = 1000,
  19. VALUE ge 3000000 and VALUE lt 5000000 = 5000,
  20. VALUE ge 5000000 and VALUE lt 30000000 = 10000,
  21. VALUE ge 30000000 and VALUE lt 50000000 = 50000,
  22. VALUE ge 50000000 = 100000
  23. </attribute>
  24. </service>
  25. </manager>
  26. </server>


グラフ/XYPlotFactoryService/TickUnitAdjustCommonDivisorMap