org.kahina.core.visual
Class KahinaView<T extends KahinaObject>
java.lang.Object
org.kahina.core.visual.KahinaView<T>
- All Implemented Interfaces:
- KahinaListener
- Direct Known Subclasses:
- FeatureWorkbenchView, KahinaAbstractTreeView, KahinaBreakpointEditor, KahinaBreakpointProfileEditor, KahinaChartView, KahinaDAGView, KahinaDefaultView, KahinaEmptyView, KahinaGraphView, KahinaJEditSourceCodeView, KahinaProjectView, KahinaTextView, QTypeGoalView, SICStusPrologVariableBindingSetView, SWIPrologVariableBindingSetView, TestSetView, TraleSLDFeatureStructureView, TraleSLDSignatureAppropriatenessView, TraleSLDSignatureHierarchyView, TraleSLDSignatureUsageView, TraleSLDVariableBindingSetView, TulipaGrammarView
public abstract class KahinaView<T extends KahinaObject>
- extends Object
- implements KahinaListener
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
config
protected KahinaViewConfiguration config
model
protected T extends KahinaObject model
kahina
protected final KahinaInstance<?,?,?> kahina
KahinaView
public KahinaView(KahinaInstance<?,?,?> kahina)
processEvent
public void processEvent(KahinaEvent e)
- Specified by:
processEvent in interface KahinaListener
processEvent
protected void processEvent(KahinaUpdateEvent e)
doDisplay
protected void doDisplay()
- Subclasses may override this method to take certain actions directly
after
model has changed. This default implementation does
nothing.
display
public final void display(KahinaObject model)
getModel
public T getModel()
recalculate
protected void recalculate()
- Override this method to define necessary operations after changes to the
model (coordinate recomputations etc.)
makePanel
public abstract JComponent makePanel()
- Returns the panel that represents this view in the GUI. This method must
be invoked from the event dispatch thread.
- Returns:
getTitle
public String getTitle()
setTitle
public void setTitle(String title)
setConfig
public void setConfig(KahinaViewConfiguration config)
getConfig
public KahinaViewConfiguration getConfig()
makeEditorPanel
public Component makeEditorPanel(KahinaGUI gui)
isVisible
public boolean isVisible()
setVisible
public void setVisible(boolean visible)