Class FootprintRenderedAPIAdapter
- java.lang.Object
-
- de.gsi.financial.samples.service.footprint.FootprintRenderedAPIAdapter
-
- All Implemented Interfaces:
de.gsi.chart.renderer.spi.financial.FootprintRenderer.IFootprintRenderedAPI
public class FootprintRenderedAPIAdapter extends java.lang.Object implements de.gsi.chart.renderer.spi.financial.FootprintRenderer.IFootprintRenderedAPISpecific implementation of adapter for your trading framework. This adapter is just demonstration to show fast mapping to trading domain objects for providing footprint data for renderers.- Author:
- afischer
-
-
Constructor Summary
Constructors Constructor Description FootprintRenderedAPIAdapter(de.gsi.chart.renderer.spi.financial.service.footprint.FootprintRendererAttributes footprintAttrs, NbColumnColorGroupService nbColumnColorGroupService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.gsi.chart.renderer.spi.financial.service.footprint.NbColumnColorGroupgetColumnColorGroup(de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem ohlcvItem)de.gsi.chart.renderer.spi.financial.service.footprint.FootprintRendererAttributesgetFootprintAttributes()java.lang.ObjectgetLock(de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem ohlcvItem)doublegetPocPrice(de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem ohlcvItem)java.util.Collection<java.lang.Double[]>getPriceVolumeList(de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem ohlcvItem)de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItemgetPullbackColumn(de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem ohlcvItem)booleanisFootprintAvailable(de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem ohlcvItem)
-
-
-
Constructor Detail
-
FootprintRenderedAPIAdapter
public FootprintRenderedAPIAdapter(de.gsi.chart.renderer.spi.financial.service.footprint.FootprintRendererAttributes footprintAttrs, NbColumnColorGroupService nbColumnColorGroupService)
-
-
Method Detail
-
getFootprintAttributes
public de.gsi.chart.renderer.spi.financial.service.footprint.FootprintRendererAttributes getFootprintAttributes()
- Specified by:
getFootprintAttributesin interfacede.gsi.chart.renderer.spi.financial.FootprintRenderer.IFootprintRenderedAPI
-
isFootprintAvailable
public boolean isFootprintAvailable(de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem ohlcvItem)
- Specified by:
isFootprintAvailablein interfacede.gsi.chart.renderer.spi.financial.FootprintRenderer.IFootprintRenderedAPI
-
getPriceVolumeList
public java.util.Collection<java.lang.Double[]> getPriceVolumeList(de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem ohlcvItem)
- Specified by:
getPriceVolumeListin interfacede.gsi.chart.renderer.spi.financial.FootprintRenderer.IFootprintRenderedAPI
-
getPocPrice
public double getPocPrice(de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem ohlcvItem)
- Specified by:
getPocPricein interfacede.gsi.chart.renderer.spi.financial.FootprintRenderer.IFootprintRenderedAPI
-
getPullbackColumn
public de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem getPullbackColumn(de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem ohlcvItem)
- Specified by:
getPullbackColumnin interfacede.gsi.chart.renderer.spi.financial.FootprintRenderer.IFootprintRenderedAPI
-
getLock
public java.lang.Object getLock(de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem ohlcvItem)
- Specified by:
getLockin interfacede.gsi.chart.renderer.spi.financial.FootprintRenderer.IFootprintRenderedAPI
-
getColumnColorGroup
public de.gsi.chart.renderer.spi.financial.service.footprint.NbColumnColorGroup getColumnColorGroup(de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem ohlcvItem)
- Specified by:
getColumnColorGroupin interfacede.gsi.chart.renderer.spi.financial.FootprintRenderer.IFootprintRenderedAPI
-
-