Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 Jung Java 库来创建简单的图形。我想在视图中显示顶点的 id,但现在我只渲染了一个没有这个的图形。怎么做?
http://jung.sourceforge.net/doc/api/edu/uci/ics/jung/visualization/PluggableRenderContext.html#setVertexLabelTransformer(org.apache.commons.collections15.Transformer)
并提供一个从您的 Vertex 类中提取其名称的 Transformer。