nimbus (1.2.4) | 2018-01-25 20:02 |
nimbus-sample (1.2.4) | 2018-01-26 17:06 |
jp.ossc.nimbus.service.graph.NumberAxisTickUnitAdjusterServiceは、数値軸NumberAxisの目盛りを調整するTickUnitAdjuster実装サービスです。
このサービスは、複合的なサービスで、以下のサービスを下位サービスとして使用します。
下位サービスインタフェース | 用途 |
jp.ossc.nimbus.service.graph.TickUnitAdjustCommonDivisorMap | 軸目盛りの公約数を取得する。 |
以下に簡単なサービス定義を示します。
- <?xml version="1.0" encoding="Shift_JIS"?>
- <!DOCTYPE server PUBLIC
- "-//Nimbus//DTD Nimbus 1.0//JA"
- "http://nimbus.sourceforge.jp/dtd/nimbus-service_1_0.dtd">
- <server>
- <manager>
- <!-- 数値軸の目盛り調節を行うTickUnitAdjusterサービス -->
- <service name="NumberTickUnitAdjuster"
- code="jp.ossc.nimbus.service.graph.NumberAxisTickUnitAdjusterService">
- <!-- 目盛りの数を設定する -->
- <attribute name="DisplayGraduationCount">5</attribute>
- <!-- 縦軸かどうかを設定する -->
- <attribute name="Domain">false</attribute>
- <!-- 対象の軸番号を設定する -->
- <attribute name="AxisIndex">1</attribute>
- <!-- 数値フォーマットを設定する -->
- <attribute name="Format">
- <object code="java.text.DecimalFormat">
- <attribute name="Format">#,###</attribute>
- </object>
- </attribute>
- <!-- TickUnitAdjustCommonDivisorMapサービスのサービス名を設定する -->
- <attribute name="TickUnitAdjustCommonDivisorMapServiceName">#TickUnitAdjustCommonDivisorMap</attribute>
- <!-- 最小サイズの自動調整機能を設定する -->
- <attribute name="AutoRangeMinimumSizeEnabled">true</attribute>
- <depends>#TickUnitAdjustCommonDivisorMap</depends>
- </service>
- <!-- 目盛りの公約数を提供するTickUnitAdjustCommonDivisorMapサービス -->
- <service name="TickUnitAdjustCommonDivisorMap"
- code="jp.ossc.nimbus.service.graph.TickUnitAdjustCommonDivisorMapService">
- <attribute name="CommonDivisorMap">
- VALUE gt 0 and VALUE lt 3000 = 1,
- VALUE ge 3000 and VALUE lt 5000 = 5,
- VALUE ge 5000 and VALUE lt 30000 = 10,
- VALUE ge 30000 and VALUE lt 50000 = 50,
- VALUE ge 50000 and VALUE lt 300000 = 100,
- VALUE ge 300000 and VALUE lt 500000 = 500,
- VALUE ge 500000 and VALUE lt 3000000 = 1000,
- VALUE ge 3000000 and VALUE lt 5000000 = 5000,
- VALUE ge 5000000 and VALUE lt 30000000 = 10000,
- VALUE ge 30000000 and VALUE lt 50000000 = 50000,
- VALUE ge 50000000 = 100000
- </attribute>
- </service>
- </manager>
- </server>