0

Prefuse を使用して散布図を視覚化したいと考えています。一般的な散布図との違いは、円や点ではなく四角形を使用することです。その理由は、時間と期間を同時に視覚化したいからです。テーブルのデータに応じて長方形の長さまたは幅を設定する方法を知っている人はいますか? Web を検索しても正しい答えが得られませんでした。

最初は、このパラメーターを使用して長方形を描画したいと考えています。

    ShapeAction shape = new ShapeAction(group, Constants.SHAPE_RECTANGLE);

しかし、長さだけを変更する方法ではなく、全体のサイズを変更する方法が見つかりませんでした。誰か私に指示をくれませんか?ありがとう。

4

1 に答える 1

0

Assuming you want to create a visualization similar to LifeLines or a GANTT chart.

To achive this, prefuse has to be extended prefuse on several points. Here is an outline:

  1. Add a field to the VisualTable to store the x coordinate at the end of the rectangle
  2. Extend AxisLayout to determine the additionally the end of the rectangle.
  3. Extend AbstractShapeRenderer draw a rectangle using the end coordinate
于 2012-04-09T22:30:09.950 に答える