public class PartitionBlockView extends KahinaView<PartitionBlockHandler>
Modifier and Type | Field and Description |
---|---|
protected javax.swing.DefaultListModel |
listModel |
config, model, needsRedraw
Constructor and Description |
---|
PartitionBlockView(MUCInstance kahina) |
Modifier and Type | Method and Description |
---|---|
void |
displayText(java.lang.String string) |
void |
doDisplay()
Subclasses may override this method to take certain actions directly
after
KahinaView.model has changed. |
java.awt.Color |
getLineColor(int lineID) |
int |
getLineStatus(int lineID) |
javax.swing.ListModel |
getListModel() |
javax.swing.JComponent |
makePanel()
Returns the panel that represents this view in the GUI.
|
void |
processEvent(KahinaEvent e) |
void |
processEvent(KahinaSelectionEvent e) |
void |
recalculate()
Override this method to define necessary operations after changes to the
model (coordinate recomputations etc.)
|
void |
setBlockContentSummarizer(BlockContentSummarizer summarizer) |
void |
setStatusColorEncoding(int status,
java.awt.Color color) |
display, getConfig, getModel, getTitle, isVisible, makeEditorPanel, needsRedraw, processEvent, requireRedraw, setConfig, setTitle, setVisible
public PartitionBlockView(MUCInstance kahina)
public void doDisplay()
KahinaView
KahinaView.model
has changed. This default implementation does
nothing.doDisplay
in class KahinaView<PartitionBlockHandler>
public void setBlockContentSummarizer(BlockContentSummarizer summarizer)
public void processEvent(KahinaEvent e)
processEvent
in interface KahinaListener
processEvent
in class KahinaView<PartitionBlockHandler>
public void processEvent(KahinaSelectionEvent e)
public void setStatusColorEncoding(int status, java.awt.Color color)
public int getLineStatus(int lineID)
public java.awt.Color getLineColor(int lineID)
public javax.swing.ListModel getListModel()
public javax.swing.JComponent makePanel()
KahinaView
makePanel
in class KahinaView<PartitionBlockHandler>
public void displayText(java.lang.String string)
public void recalculate()
KahinaView
recalculate
in class KahinaView<PartitionBlockHandler>