-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c627a46
commit f2e7f69
Showing
8 changed files
with
100 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,6 @@ package com.github.wangyiqian.stockchart.entities | |
* @author wangyiqian E-mail: [email protected] | ||
* @version 创建时间: 2021/2/6 | ||
*/ | ||
class Highlight( | ||
open class Highlight( | ||
x: Float = 0f, y: Float = 0f, valueX: Float = 0f, valueY: Float = 0f | ||
) : GestureEvent(x, y, valueX, valueY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,19 +19,47 @@ package com.github.wangyiqian.stockchart.entities | |
* @author wangyiqian E-mail: [email protected] | ||
* @version 创建时间: 2021/2/22 | ||
*/ | ||
class KEntityOfLineStarter(private val kEntity: IKEntity) : IKEntity { | ||
open class KEntityOfLineStarter(private val kEntity: IKEntity) : IKEntity { | ||
|
||
override fun getHighPrice() = kEntity.getHighPrice() | ||
|
||
override fun setHighPrice(price: Float) { | ||
kEntity.setHighPrice(price) | ||
} | ||
|
||
override fun getLowPrice() = kEntity.getLowPrice() | ||
|
||
override fun setLowPrice(price: Float) { | ||
kEntity.setLowPrice(price) | ||
} | ||
|
||
override fun getOpenPrice() = kEntity.getOpenPrice() | ||
|
||
override fun setOpenPrice(price: Float) { | ||
kEntity.setOpenPrice(price) | ||
} | ||
|
||
override fun getClosePrice() = kEntity.getClosePrice() | ||
|
||
override fun setClosePrice(price: Float) { | ||
kEntity.setClosePrice(price) | ||
} | ||
|
||
override fun getVolume() = kEntity.getVolume() | ||
|
||
override fun setVolume(volume: Long) { | ||
kEntity.setVolume(volume) | ||
} | ||
|
||
override fun getTime() = kEntity.getTime() | ||
|
||
override fun setTime(time: Long) { | ||
kEntity.setTime(time) | ||
} | ||
|
||
override fun getAvgPrice() = kEntity.getAvgPrice() | ||
|
||
override fun setAvgPrice(price: Float?) { | ||
kEntity.setAvgPrice(price) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters