|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.biostr.sig.brainj3d.doevents.AbstractDataController<BrainInfoAtlasDataView>
edu.washington.biostr.sig.brainj3d.view3D.BrainInfoAtlasController
public class BrainInfoAtlasController
Display controls for the BrainInfoAtlasDataView. This allows
several custom visualization modes that may be appropriate for atlas data.
These include a flat option that eliminates contour and the ability to assign
each part a custom color. It also allows any subpart to be switched on or
off and provide links to BrainInfo.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class edu.washington.biostr.sig.brainj3d.doevents.AbstractDataController |
|---|
AbstractDataController.SetValues |
| Constructor Summary | |
|---|---|
BrainInfoAtlasController()
|
|
BrainInfoAtlasController(BrainInfoAtlasDataView dataView,
DataKey dataKey)
|
|
| Method Summary | |
|---|---|
protected void |
buildView()
|
SwingHTMLObject |
getControl()
Return the controls. |
String |
getControlName()
Get the display name of the control. |
SwingHTMLObject |
getEditor()
|
protected Executor |
getGUIThread()
Get the GUI thread. |
SwingHTMLObject |
getViewer()
|
static int |
insertBreaks(String s,
StringBuilder target)
If a string is too long, then insert breaks as needed |
void |
requestFocus()
Request focus. |
void |
setGUIValues(Map<String,Object> g)
Set the GUI values. |
void |
somethingHappened(Event evt)
If evt instanceof SHPropertyEvent then we automatically
dispatch a ParemeterEvent with evt.getName() as the name, the DataKey
as the target and evt.getData() as the data.If this doesn't work for all of the GUI elements, than override this and handle those elements individually with a fallthrough like: else { |
void |
update(Observable o,
Object arg)
|
protected void |
viewWasSet(BrainInfoAtlasDataView view,
DataKey key)
This is called when the data view is set. |
| Methods inherited from class edu.washington.biostr.sig.brainj3d.doevents.AbstractDataController |
|---|
addListener, doCommand, fireCommand, fireStateChange, getCastView, getDataKey, getDataView, getEdit, getEditButtonText, getTarget, initUI, isEditable, isFocus, isVisible, monitorUpdates, removeListener, setDataView, setDoTarget, setEdit, setFocus, setState, setVisible, updateGUIValues |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BrainInfoAtlasController(BrainInfoAtlasDataView dataView,
DataKey dataKey)
public BrainInfoAtlasController()
| Method Detail |
|---|
public SwingHTMLObject getEditor()
protected Executor getGUIThread()
AbstractDataController
getGUIThread in class AbstractDataController<BrainInfoAtlasDataView>
protected void viewWasSet(BrainInfoAtlasDataView view,
DataKey key)
AbstractDataController
viewWasSet in class AbstractDataController<BrainInfoAtlasDataView>protected void buildView()
public static int insertBreaks(String s,
StringBuilder target)
s - The sourcetarget - The target where the result is placed.
public void setGUIValues(Map<String,Object> g)
AbstractDataController
setGUIValues in class AbstractDataController<BrainInfoAtlasDataView>public SwingHTMLObject getViewer()
public SwingHTMLObject getControl()
Controller
getControl in interface Controller
public void update(Observable o,
Object arg)
update in interface Observerpublic String getControlName()
Controller
getControlName in interface Controllerpublic void requestFocus()
AbstractDataControllerif (getTarget() instanceof ViewPort)
{
((ViewPort) getTarget()).requestFocus(getDataKey());
}
Note:
requestFocus in interface ControllerrequestFocus in class AbstractDataController<BrainInfoAtlasDataView>public void somethingHappened(Event evt)
AbstractDataControllerevt instanceof SHPropertyEvent then we automatically
dispatch a ParemeterEvent with evt.getName() as the name, the DataKey
as the target and evt.getData() as the data.else {
super.somethingHappened(evt)
}
somethingHappened in interface ListenersomethingHappened in class AbstractDataController<BrainInfoAtlasDataView>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||