View & Interaction


Posted on July 04, 2008


View & Interaction.

View is the representation media for user to perceive the visualization result. At the same time, such View should also have Interaction capabilities for user. A touchscreen is a good example of a View; People see the image on the screen and can interact directly with fingers. In common Java Swing application, a View may be any displayable JComponent. The common user interactions of a View are mouse and keyboard.

Following figure shows the View and Interaction in prefuse.

View Transformations (prefuse.render).
View Transformations (prefuse.render).
  • The single class prefuse.Display is the View. It is a JComponent in Swing.
  • A Control or ControlAdpater is used to define the interaction via mouse and keyboard. They are implemented as action or event listeners.
  • Prefuse provides some handy intractable Controls: Zoom, Pan, Drag and etc.

1 comments:

Anonymous said...

Good for people to know.