flatscape
Class FView

java.lang.Object
  |
  +--manifold.se.View
        |
        +--flatscape.FView
All Implemented Interfaces:
java.awt.event.ActionListener, Configurable, java.util.EventListener

public class FView
extends View
implements java.awt.event.ActionListener

Base class for internal frames in Flatscape e.g. GlyphViewer and OverlayManager. Can be instantiated by itself with the parent providing a content pane.

Copyright (c) 2001 Rutgers, The State University of New Jersey

Since:
manifold %Version%
Version:
%Version%, %Time%

Field Summary
protected  javax.swing.AbstractButton button_
          Button for hide and show of frame
protected  javax.swing.JInternalFrame frame_
           
protected  int height
           
protected  java.lang.String icon
           
protected  java.lang.String tip
           
protected  java.lang.String title
           
protected  int width
           
protected  int x
           
protected  int y
           
 
Fields inherited from class manifold.se.View
viewer_
 
Constructor Summary
FView()
          Default Constructor
FView(boolean visible)
          Constructor for hide of frame until used
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Called when button is pressed.
 java.lang.Object config(java.lang.Object parent, org.w3c.dom.Element config)
          Implementation of FConfigurable.
 javax.swing.AbstractButton getButton()
           
 javax.swing.JInternalFrame getFrame()
           
 boolean isVisible()
           
 void redraw()
          Redraws the view
 void resetLayout()
          Restores the default size and location of this FPane.
 void setContentPane(java.awt.Container pane)
          Sets the content pane in the view and in the frame.
 void setTitle(java.lang.String title)
          Sets the title of the frame
protected  void setToggleButton(java.lang.String text, java.lang.String tipText)
          Defines the button for hide and show of this pane
 void setVisible(boolean visible)
          Hides or shows the frame
 
Methods inherited from class manifold.se.View
getConfigElement, getContentPane, getId, getViewer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frame_

protected javax.swing.JInternalFrame frame_

title

protected java.lang.String title

tip

protected java.lang.String tip

icon

protected java.lang.String icon

x

protected int x

y

protected int y

width

protected int width

height

protected int height

button_

protected javax.swing.AbstractButton button_
Button for hide and show of frame

Constructor Detail

FView

public FView()
Default Constructor


FView

public FView(boolean visible)
Constructor for hide of frame until used

Parameters:
visible - true if frame should be visible from initialization time, else false
Method Detail

config

public java.lang.Object config(java.lang.Object parent,
                               org.w3c.dom.Element config)
                        throws java.lang.Exception
Implementation of FConfigurable. Configures the FView.

Specified by:
config in interface Configurable
Overrides:
config in class View
Parameters:
parent - The argument passed into the FConfig.getList method
config - The DOM element representing the XML element that loaded this class.
Returns:
The configured class, usually returns this.
Throws:
java.lang.Exception - Thrown if there is any problem configuring this class.

resetLayout

public void resetLayout()
Restores the default size and location of this FPane.


getFrame

public javax.swing.JInternalFrame getFrame()
Returns:
the internal frame

setTitle

public void setTitle(java.lang.String title)
Sets the title of the frame

Specified by:
setTitle in class View

setContentPane

public void setContentPane(java.awt.Container pane)
Sets the content pane in the view and in the frame.

Overrides:
setContentPane in class View
Parameters:
pane - the content pane

isVisible

public boolean isVisible()
Returns:
true if frame is visible, else false

setVisible

public void setVisible(boolean visible)
Hides or shows the frame

Parameters:
visible - true if frame should be visible, else false

setToggleButton

protected void setToggleButton(java.lang.String text,
                               java.lang.String tipText)
Defines the button for hide and show of this pane


getButton

public javax.swing.AbstractButton getButton()
Returns:
the hide/show button

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Called when button is pressed. Shows or hides this pane

Specified by:
actionPerformed in interface java.awt.event.ActionListener

redraw

public void redraw()
Redraws the view

Specified by:
redraw in class View


Copyright (c) 2003 Rutgers, The State University of New Jersey