jcreek.cke.conceptview
Interface ConceptView

All Superinterfaces:
java.awt.print.Printable
All Known Implementing Classes:
DrawingSurface

public interface ConceptView
extends java.awt.print.Printable

Defines the ConceptView interface for all view classes to implement. The view will be responsible for displaying the graph to the user, typically extending one of the AWT or JFC classes to do so. This class is not responsible for dealing with user input or managing the graph data. All this class does is display the graph data.

Version:
Author:

Field Summary
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Method Summary
 DPoint activateEntity(VisualEntity activator)
           
 void addViewListener(ConceptViewListener l)
          Adds a view listener to this object's listener list.
 void addViewPaintListener(ConceptViewPaintListener l)
          Adds a view paint listener to this object's listener list.
 void attach(CreekModel model)
          We're being attached to a document for the first time.
 java.awt.image.BufferedImage createPrintImage()
           
 void dataChanged(VertexList vl, RelationList rl)
           
 void detach()
          The view is being shut down.
 void drawSelectedNodes()
           
 VisualEntity findVisualEntity(double x, double y)
           
 void fireContentsResize()
           
 java.awt.Rectangle getBounds()
           
 double getHSpacing()
           
 java.awt.Point getMidPoint()
           
 Matrix33 getMoveTransform()
           
 VisualEntity getRoot()
           
 double getScale()
           
 Matrix33 getViewTransform()
           
 double getWinHeight()
           
 double getWinWidth()
           
 double getVSpacing()
           
 void removeViewListener(ConceptViewListener l)
          Removes a view listener from this object's listener list.
 void removeViewPaintListener(ConceptViewPaintListener l)
          Removes a view paint listener from this object's listener list.
 void repaint()
          Repaints this component.
 void repaint(int x, int y, int width, int height)
           
 void setGraph(Graph graph)
          Updates the display to match the current state of the model.
 void setOffsets(double xoffset, double yoffset, boolean redraw)
           
 void setRoot(VisualEntity vent)
           
 void setScale(double newScale)
           
 
Methods inherited from interface java.awt.print.Printable
print
 

Method Detail

addViewListener

public void addViewListener(ConceptViewListener l)
Adds a view listener to this object's listener list.

Parameters:
l - listener to add to view's list

addViewPaintListener

public void addViewPaintListener(ConceptViewPaintListener l)
Adds a view paint listener to this object's listener list.

Parameters:
l - listener to add to view's list

attach

public void attach(CreekModel model)
We're being attached to a document for the first time.


setGraph

public void setGraph(Graph graph)
Updates the display to match the current state of the model.


detach

public void detach()
The view is being shut down. This gives the view a chance to remove itself from any listener lists it may be on.


removeViewListener

public void removeViewListener(ConceptViewListener l)
Removes a view listener from this object's listener list.

Parameters:
l - listener to remove from view's list

removeViewPaintListener

public void removeViewPaintListener(ConceptViewPaintListener l)
Removes a view paint listener from this object's listener list.

Parameters:
l - listener to remove from view's list

repaint

public void repaint()
Repaints this component.


repaint

public void repaint(int x,
                    int y,
                    int width,
                    int height)

getViewTransform

public Matrix33 getViewTransform()

getMoveTransform

public Matrix33 getMoveTransform()

getWinWidth

public double getWinWidth()

getWinHeight

public double getWinHeight()

getMidPoint

public java.awt.Point getMidPoint()

setScale

public void setScale(double newScale)

getScale

public double getScale()

findVisualEntity

public VisualEntity findVisualEntity(double x,
                                     double y)

fireContentsResize

public void fireContentsResize()

activateEntity

public DPoint activateEntity(VisualEntity activator)

getBounds

public java.awt.Rectangle getBounds()

getHSpacing

public double getHSpacing()

getVSpacing

public double getVSpacing()

getRoot

public VisualEntity getRoot()

setRoot

public void setRoot(VisualEntity vent)

createPrintImage

public java.awt.image.BufferedImage createPrintImage()

drawSelectedNodes

public void drawSelectedNodes()

setOffsets

public void setOffsets(double xoffset,
                       double yoffset,
                       boolean redraw)

dataChanged

public void dataChanged(VertexList vl,
                        RelationList rl)


Created at IDI, NTNU by the Artificial Intelligence and Learning group