Back to index

wims  3.65+svn20090927
Public Member Functions | Static Public Member Functions | Package Attributes
rene.viewer.SystemViewer Class Reference
Inheritance diagram for rene.viewer.SystemViewer:
Inheritance graph
[legend]
Collaboration diagram for rene.viewer.SystemViewer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SystemViewer ()
void appendLine (String s)
void appendLine (String s, Color c)
void append (String s)
void append (String s, Color c)
void setText (String s)
void doUpdate (boolean showlast)
void setFont (Font s)
void save (PrintWriter fo)
void adjustmentValueChanged (AdjustmentEvent e)
void setVerticalScrollbar ()
void appendLine0 (String s)
void appendLine0 (String s, Color c)
void mouseClicked (MouseEvent e)
void mousePressed (MouseEvent e)
Dimension getPreferredSize ()
Dimension getMinimumSize ()
void mouseReleased (MouseEvent e)
void mouseEntered (MouseEvent e)
void mouseExited (MouseEvent e)
void mouseMoved (MouseEvent e)
void mouseDragged (MouseEvent e)
void actionPerformed (ActionEvent e)
void keyPressed (KeyEvent e)
void keyReleased (KeyEvent e)
void keyTyped (KeyEvent e)
void setTabWidth (int t)
void showFirst ()
void showLast ()
boolean hasFocus ()
void setBackground (Color c)
void up (int n)
void down (int n)
void pageUp ()
void pageDown ()
void resized ()

Static Public Member Functions

static void main (String args[])

Package Attributes

TextArea T
TextDisplay TD
Scrollbar Vertical
Scrollbar Horizontal
TextPosition Start
TextPosition End
PopupMenu PM
int X
int Y
Panel P3D
boolean Dragging = false

Detailed Description

Definition at line 9 of file SystemViewer.java.


Constructor & Destructor Documentation

Definition at line 11 of file SystemViewer.java.

    {   super("dummy");
        setLayout(new BorderLayout());
        add("Center",T=new TextArea());
    }

Member Function Documentation

void rene.viewer.Viewer.actionPerformed ( ActionEvent  e) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 203 of file Viewer.java.

       {      String o=e.getActionCommand();
              if (o.equals(Global.name("block.copy","Copy"))) TD.copy(Start,End);
              else if (o.equals(Global.name("block.begin","Begin Block")))
              {      TD.unmark(Start,End);
                     Start=TD.getposition(X,Y);
                     Start.oneleft();
                     if (End==null && TD.L.last()!=null)
                     {      End=TD.lastpos();
                     }
                     TD.mark(Start,End);
              }
              else if (o.equals(Global.name("block.end","End Block")))
              {      TD.unmark(Start,End);
                     End=TD.getposition(X,Y);
                     if (Start==null && TD.L.first()!=null)
                     {      Start=new TextPosition(TD.L.first(),0,0);
                     }
                     TD.mark(Start,End);
              }
       }

Here is the call graph for this function:

void rene.viewer.Viewer.adjustmentValueChanged ( AdjustmentEvent  e) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 108 of file Viewer.java.

       {      if (e.getSource()==Vertical)
              {      switch (e.getAdjustmentType())
                     {      case AdjustmentEvent.UNIT_INCREMENT :
                                   TD.verticalUp(); break;
                            case AdjustmentEvent.UNIT_DECREMENT :
                                   TD.verticalDown(); break;
                            case AdjustmentEvent.BLOCK_INCREMENT :
                                   TD.verticalPageUp(); break;
                            case AdjustmentEvent.BLOCK_DECREMENT :
                                   TD.verticalPageDown(); break;
                            default :
                                   int v=Vertical.getValue();
                                   Vertical.setValue(v);
                                   TD.setVertical(v);
                                   return;
                     }
                     setVerticalScrollbar();
              }
              else if (e.getSource()==Horizontal)
              {      Horizontal.setValue(TD.setHorizontal(
                            Horizontal.getValue()));
              }
       }

Here is the call graph for this function:

void rene.viewer.SystemViewer.append ( String  s) [inline]

Reimplemented from rene.viewer.Viewer.

Definition at line 22 of file SystemViewer.java.

    {   T.append(s);
    }
void rene.viewer.SystemViewer.append ( String  s,
Color  c 
) [inline]

Reimplemented from rene.viewer.Viewer.

Definition at line 25 of file SystemViewer.java.

    {   append(s);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.viewer.SystemViewer.appendLine ( String  s) [inline]

Reimplemented from rene.viewer.Viewer.

Definition at line 16 of file SystemViewer.java.

    {   T.append(s+"\n");
    }
void rene.viewer.SystemViewer.appendLine ( String  s,
Color  c 
) [inline]

Reimplemented from rene.viewer.Viewer.

Definition at line 19 of file SystemViewer.java.

       {      appendLine(s);
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.viewer.Viewer.appendLine0 ( String  s) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 149 of file Viewer.java.

       {      TD.appendLine0(s);
       }

Here is the call graph for this function:

void rene.viewer.Viewer.appendLine0 ( String  s,
Color  c 
) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 153 of file Viewer.java.

       {      TD.appendLine0(s,c);
       }

Here is the call graph for this function:

void rene.viewer.SystemViewer.doUpdate ( boolean  showlast) [inline]

Reimplemented from rene.viewer.Viewer.

Definition at line 31 of file SystemViewer.java.

       {      T.repaint();
       }
void rene.viewer.Viewer.down ( int  n) [inline, inherited]

Implements rene.viewer.WheelListener.

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 265 of file Viewer.java.

       {      for (int i=0; i<n; i++) TD.verticalDown();
              setVerticalScrollbar();
       }

Here is the call graph for this function:

Dimension rene.viewer.Viewer.getMinimumSize ( ) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 178 of file Viewer.java.

       {      return new Dimension(150,200);
       }
Dimension rene.viewer.Viewer.getPreferredSize ( ) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 174 of file Viewer.java.

       {      return new Dimension(150,200);
       }
boolean rene.viewer.Viewer.hasFocus ( ) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 252 of file Viewer.java.

{ return false; }

Here is the caller graph for this function:

void rene.viewer.Viewer.keyPressed ( KeyEvent  e) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 225 of file Viewer.java.

{}
void rene.viewer.Viewer.keyReleased ( KeyEvent  e) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 227 of file Viewer.java.

       {      if (e.isControlDown() && e.getKeyCode()==KeyEvent.VK_C
                     && Start!=null && End!=null)
              {      TD.copy(Start,End);
              }
       }

Here is the call graph for this function:

void rene.viewer.Viewer.keyTyped ( KeyEvent  e) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 234 of file Viewer.java.

{}
static void rene.viewer.Viewer.main ( String  args[]) [inline, static, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 284 of file Viewer.java.

       {      Frame f=new Frame();
              f.setLayout(new BorderLayout());
              Viewer v=new Viewer(true,false);
              f.add("Center",v);
              f.setSize(300,300);
              f.setVisible(true);
              v.append("test test test test test test test");
              v.appendLine("test test test test test test test");
              v.appendLine("test test test test test test test");
              v.appendLine("test test test test test test test");
       }

Here is the call graph for this function:

void rene.viewer.Viewer.mouseClicked ( MouseEvent  e) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 159 of file Viewer.java.

{}
void rene.viewer.Viewer.mouseDragged ( MouseEvent  e) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 196 of file Viewer.java.

       {      TD.unmark(Start,End);
              TextPosition h=TD.getposition(e.getX(),e.getY());
              if (h!=null) End=h;
              TD.mark(Start,End);
       }

Here is the call graph for this function:

void rene.viewer.Viewer.mouseEntered ( MouseEvent  e) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 186 of file Viewer.java.

       {
       }
void rene.viewer.Viewer.mouseExited ( MouseEvent  e) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 190 of file Viewer.java.

       {
       }
void rene.viewer.Viewer.mouseMoved ( MouseEvent  e) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 194 of file Viewer.java.

{}
void rene.viewer.Viewer.mousePressed ( MouseEvent  e) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 161 of file Viewer.java.

       {      if (e.isPopupTrigger() || e.isMetaDown())
              {      PM.show(e.getComponent(),e.getX(),e.getY());
                     X=e.getX(); Y=e.getY();
              }
              else
              {      TD.unmark(Start,End);
                     Start=TD.getposition(e.getX(),e.getY());
                     Start.oneleft();
                     End=null;
              }
       }

Here is the call graph for this function:

void rene.viewer.Viewer.mouseReleased ( MouseEvent  e) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 182 of file Viewer.java.

       {      Dragging=false;
       }
void rene.viewer.Viewer.pageDown ( ) [inline, inherited]

Implements rene.viewer.WheelListener.

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 275 of file Viewer.java.

Here is the call graph for this function:

void rene.viewer.Viewer.pageUp ( ) [inline, inherited]

Implements rene.viewer.WheelListener.

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 270 of file Viewer.java.

Here is the call graph for this function:

void rene.viewer.Viewer.resized ( ) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 280 of file Viewer.java.

       {      
       }

Here is the caller graph for this function:

void rene.viewer.SystemViewer.save ( PrintWriter  fo) [inline]

Reimplemented from rene.viewer.Viewer.

Definition at line 37 of file SystemViewer.java.

    {   fo.print(T.getText());
       fo.flush();
    }
void rene.viewer.Viewer.setBackground ( Color  c) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 254 of file Viewer.java.

       {      TD.setBackground(c);
              P3D.setBackground(c);
              super.setBackground(c);
       }      

Here is the call graph for this function:

void rene.viewer.SystemViewer.setFont ( Font  s) [inline]

Reimplemented from rene.viewer.Viewer.

Definition at line 34 of file SystemViewer.java.

    {  T.setFont(s);
    }
void rene.viewer.Viewer.setTabWidth ( int  t) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 236 of file Viewer.java.

       {      TD.setTabWidth(t);
       }

Here is the call graph for this function:

void rene.viewer.SystemViewer.setText ( String  s) [inline]

Reimplemented from rene.viewer.Viewer.

Definition at line 28 of file SystemViewer.java.

    {   T.setText(s);
    }
void rene.viewer.Viewer.setVerticalScrollbar ( ) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 133 of file Viewer.java.

       {      if (Vertical==null) return;
              int h=TD.computeVerticalSize();
              Vertical.setValues(TD.computeVertical(),h,0,1000+h);
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.viewer.Viewer.showFirst ( ) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 240 of file Viewer.java.

       {      TD.showFirst();
              setVerticalScrollbar();
              TD.repaint();
       }

Here is the call graph for this function:

void rene.viewer.Viewer.showLast ( ) [inline, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 246 of file Viewer.java.

       {      TD.showlast();
              setVerticalScrollbar();
              TD.repaint();
       }

Here is the call graph for this function:

void rene.viewer.Viewer.up ( int  n) [inline, inherited]

Implements rene.viewer.WheelListener.

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 260 of file Viewer.java.

       {      for (int i=0; i<n; i++) TD.verticalUp();
              setVerticalScrollbar();
       }

Here is the call graph for this function:


Member Data Documentation

boolean rene.viewer.Viewer.Dragging = false [package, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 157 of file Viewer.java.

TextPosition rene.viewer.Viewer.End [package, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 39 of file Viewer.java.

Scrollbar rene.viewer.Viewer.Horizontal [package, inherited]

Definition at line 38 of file Viewer.java.

Panel rene.viewer.Viewer.P3D [package, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 42 of file Viewer.java.

PopupMenu rene.viewer.Viewer.PM [package, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 40 of file Viewer.java.

TextPosition rene.viewer.Viewer.Start [package, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 39 of file Viewer.java.

TextArea rene.viewer.SystemViewer.T [package]

Definition at line 10 of file SystemViewer.java.

TextDisplay rene.viewer.Viewer.TD [package, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 37 of file Viewer.java.

Scrollbar rene.viewer.Viewer.Vertical [package, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 38 of file Viewer.java.

int rene.viewer.Viewer.X [package, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 41 of file Viewer.java.

int rene.viewer.Viewer.Y [package, inherited]

Reimplemented in rene.viewer.ExtendedViewer.

Definition at line 41 of file Viewer.java.


The documentation for this class was generated from the following file: