org.grinvin.gui.components

Class GraphPropertiesTableComponent

Implemented Interfaces:
AcceptsInvariant, MouseListener, GraphPropertiesTableModelListener, HasRequestedCell

public class GraphPropertiesTableComponent
extends JTable
implements AcceptsInvariant, MouseListener, GraphPropertiesTableModelListener, HasRequestedCell

Table to display a GraphPropertiesTableModel.

Constructor Summary

GraphPropertiesTableComponent(GraphPropertiesTableModel model)
Creates a new instance of GraphPropertiesTable

Method Summary

AcceptsInvariant.Reason
acceptsInvariant(InvariantValue> clazz)
Check whether invariants that return this type can be accepted.
Reason
acceptsInvariant(Invariant invariant)
Check whether the invariant can be accepted.
Reason
addInvariant(Invariant invariant)
Accept an invariant.
@Override
boolean getScrollableTracksViewportHeight()
void
graphListElementChanged()
boolean
isRequestedCell(int row, int column)
void
mouseClicked(MouseEvent e)
void
mouseEntered(MouseEvent e)
void
mouseExited(MouseEvent e)
void
mousePressed(MouseEvent e)
void
mouseReleased(MouseEvent e)
void
setRequestedCell(int row, int column)
protected @Override
void paintComponent(Graphics g)
Adds a watermark to the list.

Constructor Details

GraphPropertiesTableComponent

public GraphPropertiesTableComponent(GraphPropertiesTableModel model)
Creates a new instance of GraphPropertiesTable

Method Details

acceptsInvariant

public AcceptsInvariant.Reason acceptsInvariant(InvariantValue> clazz)
Check whether invariants that return this type can be accepted. This is used to determine if an invariant created by an invariant factory can be accepted, without the need to create that invariant.
Specified by:
acceptsInvariant in interface AcceptsInvariant

acceptsInvariant

public Reason acceptsInvariant(Invariant invariant)
Check whether the invariant can be accepted.
Specified by:
acceptsInvariant in interface AcceptsInvariant

addInvariant

public Reason addInvariant(Invariant invariant)
Accept an invariant.
Specified by:
addInvariant in interface AcceptsInvariant

boolean getScrollableTracksViewportHeight

public @Override boolean getScrollableTracksViewportHeight()

graphListElementChanged

public void graphListElementChanged()
Specified by:
graphListElementChanged in interface GraphPropertiesTableModelListener

isRequestedCell

public boolean isRequestedCell(int row,
                               int column)
Specified by:
isRequestedCell in interface HasRequestedCell

mouseClicked

public void mouseClicked(MouseEvent e)

mouseEntered

public void mouseEntered(MouseEvent e)

mouseExited

public void mouseExited(MouseEvent e)

mousePressed

public void mousePressed(MouseEvent e)

mouseReleased

public void mouseReleased(MouseEvent e)

setRequestedCell

public void setRequestedCell(int row,
                             int column)
Specified by:
setRequestedCell in interface HasRequestedCell

void paintComponent

protected @Override void paintComponent(Graphics g)
Adds a watermark to the list.