|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.problets.lib.conceptmap.view.LinkView
public class LinkView
The LinkView class performs the painting for each link. Each link instantiates a view for painting its connection.
Constructor Summary | |
---|---|
LinkView(NodeView inSource,
NodeView inTarget,
LinkModel inLinkModel)
Creates a LinkView object using the source and target node views and the link model as arguments. |
Method Summary | |
---|---|
void |
draw(java.awt.Graphics g)
Performs the painting of the link view. |
boolean |
getIsHighlighted()
Returns the highlighting status for this link. |
boolean |
getIsVisible()
Returns the visibility status for this link. |
NodeView |
getSource()
Returns the source node view for this link. |
NodeView |
getTarget()
Returns the target node view for this link. |
static void |
main(java.lang.String[] args)
|
void |
setIsHighlighted(boolean inIsHighlighted)
Sets the flag for this link's highlighting status. |
void |
setIsVisible(boolean inIsVisible)
Sets the flag for this link's visibility status. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinkView(NodeView inSource, NodeView inTarget, LinkModel inLinkModel)
inSource
- the source (originating) node viewinTarget
- the target (destinatiuon) node viewinLinkModel
- the link model for which this view is createdMethod Detail |
---|
public void draw(java.awt.Graphics g)
g
- the graphics contextpublic boolean getIsHighlighted()
public boolean getIsVisible()
public NodeView getSource()
public NodeView getTarget()
public void setIsHighlighted(boolean inIsHighlighted)
inIsHighlihgted
- the highlighting status for this linkpublic void setIsVisible(boolean inIsVisible)
inIsVisible
- the visiblity status for this linkpublic static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |