TickUnitAdjuster実装サービス jp.ossc.nimbus.service.graph.NumberAxisTickUnitAdjusterService

jp.ossc.nimbus.service.graph.NumberAxisTickUnitAdjusterServiceは、数値軸NumberAxisの目盛りを調整するTickUnitAdjuster実装サービスです。

このサービスは、複合的なサービスで、以下のサービスを下位サービスとして使用します。

下位サービスインタフェース用途
jp.ossc.nimbus.service.graph.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. <!-- 数値軸の目盛り調節を行うTickUnitAdjusterサービス -->
  8. <service name="NumberTickUnitAdjuster"
  9. code="jp.ossc.nimbus.service.graph.NumberAxisTickUnitAdjusterService">
  10. <!-- 目盛りの数を設定する -->
  11. <attribute name="DisplayGraduationCount">5</attribute>
  12. <!-- 縦軸かどうかを設定する -->
  13. <attribute name="Domain">false</attribute>
  14. <!-- 対象の軸番号を設定する -->
  15. <attribute name="AxisIndex">1</attribute>
  16. <!-- 数値フォーマットを設定する -->
  17. <attribute name="Format">
  18. <object code="java.text.DecimalFormat">
  19. <attribute name="Format">#,###</attribute>
  20. </object>
  21. </attribute>
  22. <!-- TickUnitAdjustCommonDivisorMapサービスのサービス名を設定する -->
  23. <attribute name="TickUnitAdjustCommonDivisorMapServiceName">#TickUnitAdjustCommonDivisorMap</attribute>
  24. <!-- 最小サイズの自動調整機能を設定する -->
  25. <attribute name="AutoRangeMinimumSizeEnabled">true</attribute>
  26. <depends>#TickUnitAdjustCommonDivisorMap</depends>
  27. </service>
  28. <!-- 目盛りの公約数を提供するTickUnitAdjustCommonDivisorMapサービス -->
  29. <service name="TickUnitAdjustCommonDivisorMap"
  30. code="jp.ossc.nimbus.service.graph.TickUnitAdjustCommonDivisorMapService">
  31. <attribute name="CommonDivisorMap">
  32. VALUE gt 0 and VALUE lt 3000 = 1,
  33. VALUE ge 3000 and VALUE lt 5000 = 5,
  34. VALUE ge 5000 and VALUE lt 30000 = 10,
  35. VALUE ge 30000 and VALUE lt 50000 = 50,
  36. VALUE ge 50000 and VALUE lt 300000 = 100,
  37. VALUE ge 300000 and VALUE lt 500000 = 500,
  38. VALUE ge 500000 and VALUE lt 3000000 = 1000,
  39. VALUE ge 3000000 and VALUE lt 5000000 = 5000,
  40. VALUE ge 5000000 and VALUE lt 30000000 = 10000,
  41. VALUE ge 30000000 and VALUE lt 50000000 = 50000,
  42. VALUE ge 50000000 = 100000
  43. </attribute>
  44. </service>
  45. </manager>
  46. </server>


グラフ/XYPlotFactoryService/TickUnitAdjuster