All methods of the form createX(java.lang.Object... params) in IChartObjectFactory seem to have been deprecated.
For examples:
- <T extends IChartObject> T create(java.lang.Class<T> objectClass, java.lang.Object... args)
- IShortLineChartObject createShortLine(java.lang.Object... params)
- ISignalUpChartObject createSignalUp(java.lang.Object... params)
- etc.
have all been deprecated.
Does this mean that a user wishing to avoid deprecated methods must necessarily instantiate all chart objects in a two-step process?:
- create
- move and set up properties
Is there a loss of efficiency compared to the deprecated methods?
For example, is...
line = createShortLine(key)
line.move(time,price);
line.setTime(1,time1);
line.setPrice(1,price1);
...just as efficient as the following deprecated code?...
line = factory.createShortLine(key, time, price, time1, price1);
...or is there another way to create an IShortLineChartObject in one shot that is not deprecated?