| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jgraph.graph.AbstractCellView
org.jgraph.graph.VertexView
org.jgraph.example.JGraphIconView
public class JGraphIconView
The cell view modifies the center point of the vertex such that it is relative to the icon rather than the entire vertex. The perimeter
| Nested Class Summary | |
|---|---|
| static class | JGraphIconView.DescriptionTextAreaThis JComponent only displays html renderered text as the lower part of the icon/description duo. | 
| static class | JGraphIconView.IconDisplayThis JComponent only displays an icon as the upper part of the icon/description duo. | 
| static class | JGraphIconView.IconRendererThis is a combination renderer that displays both an icon and a description under the icon. | 
| static class | JGraphIconView.MultiLinedEditor | 
| Nested classes/interfaces inherited from class org.jgraph.graph.VertexView | 
|---|
| org.jgraph.graph.VertexView.SizeHandle | 
| Field Summary | 
|---|
| Fields inherited from class org.jgraph.graph.VertexView | 
|---|
| defaultBounds, defaultCursors, renderer, xCursors, yCursors | 
| Fields inherited from class org.jgraph.graph.AbstractCellView | 
|---|
| cellEditor | 
| Constructor Summary | |
|---|---|
| JGraphIconView() | |
| JGraphIconView(java.lang.Object cell) | |
| Method Summary | |
|---|---|
|  java.awt.geom.Point2D | getCenterPoint()The center point of the vertex should be in the middle of the icon instead of the middle of the icon/description duo. | 
|  org.jgraph.graph.GraphCellEditor | getEditor() | 
|  java.awt.geom.Point2D | getPerimeterPoint(java.awt.geom.Point2D source,
                  java.awt.geom.Point2D p)We don't want to calculate a perimeter point around the entire vertex. | 
|  org.jgraph.graph.CellViewRenderer | getRenderer() | 
|  boolean | isMouseOver()The mouse over boolean is here so that we could potentially render the icon differently when the mouse is hovering above the vertex. | 
|  void | setMouseOver(boolean isMouseOver) | 
| Methods inherited from class org.jgraph.graph.VertexView | 
|---|
| getBounds, getCachedBounds, getHandle, getPerimeterPoint, setCachedBounds, update | 
| Methods inherited from class org.jgraph.graph.AbstractCellView | 
|---|
| changeAttributes, childUpdated, getAllAttributes, getAttributes, getBounds, getCell, getCenterPoint, getChildViews, getDescendantViews, getParentView, getRendererComponent, intersects, isLeaf, refresh, removeFromParent, scale, setAttributes, setBounds, setCell, translate | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public JGraphIconView()
public JGraphIconView(java.lang.Object cell)
| Method Detail | 
|---|
public org.jgraph.graph.GraphCellEditor getEditor()
getEditor in interface org.jgraph.graph.CellViewgetEditor in class org.jgraph.graph.AbstractCellViewpublic boolean isMouseOver()
public void setMouseOver(boolean isMouseOver)
public java.awt.geom.Point2D getCenterPoint()
getCenterPoint in class org.jgraph.graph.VertexView
public java.awt.geom.Point2D getPerimeterPoint(java.awt.geom.Point2D source,
                                               java.awt.geom.Point2D p)
getPerimeterPoint in class org.jgraph.graph.VertexViewpublic org.jgraph.graph.CellViewRenderer getRenderer()
getRenderer in class org.jgraph.graph.VertexView| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||