|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wilmascope.control.GraphControl.GraphElementFacade
public abstract class GraphControl.GraphElementFacade
the basic interface common to all GraphElements
Method Summary | |
---|---|
void |
addPickingClient(PickingClient client)
set a PickingClient whose callback method will be called when the element is selected by picking with the mouse |
void |
defaultColour()
revert to default colour |
void |
delete()
delete the element, removing all references to it... |
java.awt.Color |
getColour()
|
java.awt.Color |
getDefaultColour()
|
java.lang.String |
getLabel()
|
java.lang.Object |
getUserData()
|
GraphElementView |
getView()
|
java.lang.String |
getViewType()
|
void |
hide()
This will hide the element Clusters will have their view hidden but their constituents will still be visible (if they are already) |
void |
highlightColour()
set to highlight colour |
protected void |
initView(GraphElementView view)
A view is inited after it is attached to an element |
boolean |
isDefaultColour()
|
void |
setColour(java.awt.Color colour)
|
void |
setColour(float red,
float green,
float blue)
set the colour of the component |
void |
setLabel(java.lang.String label)
set the label to show with the element |
void |
setLabel(java.lang.String[] labelLines)
set a multiline label to show with the element |
void |
setPickable(boolean pickable)
|
void |
setUserData(java.lang.Object data)
|
void |
show()
Make element visible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected void initView(GraphElementView view)
public void hide()
public void show()
public void setColour(float red, float green, float blue)
red
- level of red (0-1f)blue
- level of blue (0-1f)green
- level of green (0-1f)public void setColour(java.awt.Color colour)
public java.awt.Color getColour()
public void defaultColour()
public boolean isDefaultColour()
public java.awt.Color getDefaultColour()
public void highlightColour()
public void setLabel(java.lang.String label)
label
- the label to showpublic void setLabel(java.lang.String[] labelLines)
labelLines
- an array of Strings that make up each of the lines of the labelpublic java.lang.String getLabel()
public void setPickable(boolean pickable)
public void addPickingClient(PickingClient client)
public java.lang.Object getUserData()
public void setUserData(java.lang.Object data)
public java.lang.String getViewType()
public GraphElementView getView()
public void delete()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |