0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Maltego Transform 開発メモ setLink〇〇系

Posted at

EntityとEntityを結ぶ矢印(Link)の書式を変更することができる。

  • setLinkLabel(str) リンク上に表示させる文字列
  • setLinkStyle 線の種類(実線、破線、点線など)
  • setLinkColor 線の色
  • setLinkThickness 線の幅
    output_entity1=response.addEntity(Phrase, "テスト1")
    output_entity1.setLinkLabel("リンクのラベル1")
    output_entity1.setLinkStyle(LINK_STYLE_DASHDOT)
    output_entity1.setLinkThickness(1)
    output_entity1.setLinkColor("0xff0000") #Red

    output_entity2=response.addEntity(Phrase, "テスト2")
    output_entity2.setLinkLabel("リンクのラベル2")
    output_entity2.setLinkStyle(LINK_STYLE_DASHED)
    output_entity2.setLinkThickness(2)
    output_entity2.setLinkColor("0x00ff00") #Green
    
    output_entity3=response.addEntity(Phrase, "テスト3")
    output_entity3.setLinkLabel("リンクのラベル3")
    output_entity3.setLinkStyle(LINK_STYLE_DOTTED)
    output_entity3.setLinkThickness(3)
    output_entity3.setLinkColor("0x0000ff") #Blue

    output_entity4=response.addEntity(Phrase, "テスト4")
    output_entity4.setLinkLabel("リンクのラベル4")
    output_entity4.setLinkStyle(LINK_STYLE_NORMAL)
    output_entity4.setLinkThickness(4)
    output_entity4.setLinkColor("0x000000") #Black

出力結果
image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?