CBlueUI
C++ 跨平台跨框架的数据可视化工具
|
文本图形 更多...
Public 成员函数 | |
CChartEleText () | |
CChartEleText (CChartCoordinate *sys, BeString text, double v1=0.0, double v2=0.0) | |
~CChartEleText () | |
void | SetFont (GFont *font) |
设置字体 | |
void | SetText (BeString text) |
设置文本 | |
void | SetTextFormate (UINT formate) |
设置文本对齐方式 | |
void | SetTextOffset (int cx, int cy) |
设置文本偏移量 | |
void | ChangeThemeColors () override |
void | DoPaintElement (ISurface *pSurface, const GColor &color, const RECT &rcDiagram, RECT *rcUpdate) override |
void | ShellElementAttribute (const BeString &szName, const BeString &szText, ICoordList *crdlist=NULL) override |
命令控制和属性设置接口 | |
![]() | |
CChartElePoint () | |
CChartElePoint (CChartCoordinate *sys, double v1=0.0, double v2=0.0) | |
virtual | ~CChartElePoint () |
double | GetPointAxisValue (int axis_index) |
void | SetCanBeChangedByMouse (int axis_index, BOOL enable) |
void | UpdatePosition (double v1=0.0, double v2=0.0) |
void | SetValueOnAxis1 (double v1) |
void | SetValueOnAxis2 (double v2) |
void | CopyFrom (const CChartElePoint *ele) |
void | DoPaintElement (ISurface *pSurface, const GColor &color, const RECT &rcDiagram, RECT *rcUpdate) override |
BOOL | OnNotifyMessage (IEventHandler *notify, UINT message, WPARAM wp, LPARAM lp) override |
VecFloat2 | GetPoint () override |
VecFloat2 | GetLogicPoint (int field=0) override |
BOOL | IsVaild () override |
BOOL | IsViewportArea () override |
void | ShellElementAttribute (const BeString &szName, const BeString &szText, ICoordList *crdlist=NULL) override |
命令控制和属性设置接口 | |
![]() | |
CChartElement () | |
virtual | ~CChartElement () |
CChartDataLabel * | GetDataLabelInfo () const |
void | SetDataLabelInfo (CChartDataLabel *labelStyle) |
BOOL | IsDrawDataLabel () const |
void | DoChangeEleThemeColors (const BeString &name) |
void | DrawDataLabel (ISurface *pSurface, int x, int y, LPCTSTR str, const RECT &rcDiagram, RECT *rcUpdate) |
virtual void | DoPaintElement (ISurface *pSurface, const GColor &color, const RECT &rcDiagram, RECT *rcUpdate) |
virtual VecFloat2 | GetPoint () |
virtual VecFloat2 | GetLogicPoint (int field=0) |
virtual BOOL | IsViewportArea () |
virtual BOOL | IsVaild () |
virtual BOOL | GetAxisXPoint (VecFloat2 &pt) |
virtual BOOL | OnNotifyMessage (IEventHandler *notify, UINT message, WPARAM wp, LPARAM lp) |
virtual void | ShellElementAttribute (const BeString &szName, const BeString &szText, ICoordList *crdlist=NULL) |
命令控制和属性设置接口 | |
virtual void | OnParseElementData (XMLItem *pNode, CControlUI *parent) |
virtual void | OnTranslateLanguage () |
virtual void | ChangeThemeColors () |
![]() | |
CNodeCell () | |
CNodeCell (std::shared_ptr< CNodeData > valuedata) | |
virtual | ~CNodeCell () |
void | BindAction (std::shared_ptr< IActionNotify > action) |
绑定事件 | |
std::shared_ptr< IActionNotify > | ActionOfNode () const |
获得事件 | |
void | DoNodeAction () const |
执行事件 | |
void | SetBackNodeData (std::shared_ptr< CNodeData > valuedata) |
设置背景显示节点 | |
void | SetSyntaxAst (LPCTSTR str_script) |
设置内置脚本代码 | |
void | SetName (BeString id) |
设置单元格名称id | |
BeString & | Name () |
单元格名称id | |
BOOL | IsEnable () const |
是否可用 | |
void | SetEnable (BOOL enable) |
开启(或禁用)单元格。默认保持开启 | |
void | OnDrawNodeCell (ISurface *pSurface, int paintState, RECT rcCell, const GColor &color_text, UINT textAlignFlag, PathTransInfo *clipborderpath=NULL) |
void | SetNodeData (std::shared_ptr< CNodeData > valuedata) |
设置单元格数据 | |
std::shared_ptr< CNodeData > & | GetNodeData () |
获得单元格数据 | |
void | AddNodeData (std::shared_ptr< CNodeData > valuedata, int w=0, int h=0, SizeMode stw=AdaptFill, SizeMode sth=AdaptFill) |
void | InsertNodeData (int pos, std::shared_ptr< CNodeData > valuedata, int w=0, int h=0, SizeMode stw=AdaptFill, SizeMode sth=AdaptFill) |
void | SetNotifyHandler (IEventHandler *notify) |
设置消息通知处理者 | |
void | NeedUpdateUI () |
刷新单元格ui | |
void | NeedUpdateHostUI () |
刷新宿主UI | |
void | ShellNodeCellAttribute (const BeString &szName, const BeString &szText) |
属性设置 | |
ItemState & | GetNodeState () |
单元格状态 | |
void | ResetNodeState () |
重置单元格状态 | |
BOOL | PtInCell (POINT pt) |
鼠标命中单元格测试 | |
RECT | CellRect () const |
单元格位置矩形区域 | |
void | SetRect (int x, int y, int w, int h) |
设置单元格位置矩形区域 | |
额外继承的成员函数 | |
![]() | |
RECT | m_rc_cell |
ItemState | m_state |
BeString | m_name_id |
IEventHandler * | m_notify_handler |
std::shared_ptr< CNodeData > | m_backdata |
std::shared_ptr< CNodeData > | m_rawdata |
std::shared_ptr< IActionNotify > | m_action |
syntax_info * | m_cmd_ast |
![]() | |
double | m_v1 |
double | m_v2 |
CChartCoordinate * | m_coord_obj |
UINT | m_edit_flags |
![]() | |
CChartDataLabel * | m_data_label |
文本图形
BUI::CChartEleText::CChartEleText | ( | ) |
BUI::CChartEleText::CChartEleText | ( | CChartCoordinate * | sys, |
BeString | text, | ||
double | v1 = 0.0 , |
||
double | v2 = 0.0 |
||
) |
BUI::CChartEleText::~CChartEleText | ( | ) |
|
overridevirtual |
重载 BUI::CChartElement .
|
overridevirtual |
重载 BUI::CChartElement .
void BUI::CChartEleText::SetFont | ( | GFont * | font | ) |
设置字体
void BUI::CChartEleText::SetText | ( | BeString | text | ) |
设置文本
void BUI::CChartEleText::SetTextFormate | ( | UINT | formate | ) |
设置文本对齐方式
void BUI::CChartEleText::SetTextOffset | ( | int | cx, |
int | cy | ||
) |
设置文本偏移量
|
overridevirtual |
命令控制和属性设置接口
szName属性 | szText语法格式 |
---|---|
text 文本 | text="xxxxx" |
font 字体 | font="资源唯一标识符" |
align 文本对齐方式 | align="left,top" |
offset 偏移量 | offset="10,10" |
color 文字颜色 | color="0x124578" |
重载 BUI::CChartElement .