|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tockit.canvas.CanvasItem
net.sourceforge.toscanaj.view.diagram.NodeView
class DiagramNode holds details on node position and size
Constructor Summary | |
NodeView(DiagramNode diagramNode,
DiagramView diagramView,
ConceptInterpretationContext context)
Construct a nodeView for a Node. |
Method Summary | |
boolean |
containsPoint(java.awt.geom.Point2D point)
Implements CanvasItem.containsPoint(Point2D). |
void |
draw(java.awt.Graphics2D graphics)
Draws the node as circle. |
java.awt.geom.Rectangle2D |
getCanvasBounds(java.awt.Graphics2D g)
Calculates the rectangle around this node. |
ConceptInterpretationContext |
getConceptInterpretationContext()
|
DiagramNode |
getDiagramNode()
|
DiagramView |
getDiagramView()
|
java.awt.geom.Point2D |
getPosition()
|
protected double |
getRadius(double maxRadius)
|
double |
getRadiusX()
|
double |
getRadiusY()
|
int |
getSelectionState()
Returns the information if and how the node is selected. |
boolean |
hasAutoRaise()
Overwritten to avoid raising nodes. |
void |
setSelectedConcepts(Concept[] selectedConcepts)
Recalculates if the node is selected and how. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NodeView(DiagramNode diagramNode, DiagramView diagramView, ConceptInterpretationContext context)
Method Detail |
public DiagramNode getDiagramNode()
public ConceptInterpretationContext getConceptInterpretationContext()
public void draw(java.awt.Graphics2D graphics)
public double getRadiusY()
public double getRadiusX()
protected double getRadius(double maxRadius)
public boolean containsPoint(java.awt.geom.Point2D point)
public java.awt.geom.Rectangle2D getCanvasBounds(java.awt.Graphics2D g)
public java.awt.geom.Point2D getPosition()
public void setSelectedConcepts(Concept[] selectedConcepts)
getSelectionState()
public int getSelectionState()
DiagramView.setSelectedConcepts(Concept[])
public boolean hasAutoRaise()
public DiagramView getDiagramView()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |