Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

diagapplet
Class CodeDisplayPanel  view CodeDisplayPanel download CodeDisplayPanel.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bydiagapplet.CodeDisplayPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class CodeDisplayPanel
extends java.awt.Panel


Nested Class Summary
 
Nested classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  java.awt.Color comment_color
           
(package private)  CodeFileInfo currentFileInfo
           
(package private)  java.awt.Dimension d
           
(package private)  int first_line_to_show
           
(package private)  java.awt.Font fn
           
(package private)  java.awt.FontMetrics fn_metrics
           
private  boolean force_info_new
           
(package private)  boolean info_is_new
           
(package private)  long last_scroll_y_update
           
(package private)  int line_height
           
 diagapplet.utils.URLLoadInfoPanel m_loadingPanel
           
(package private)  int max_width
           
(package private)  int num_lines_on_screen
           
(package private)  java.util.Hashtable state_table_files
           
(package private)  int total_lines
           
(package private)  boolean use_color
           
(package private)  int x
           
(package private)  int y
           
 
Fields inherited from class java.awt.Panel
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
CodeDisplayPanel()
           
CodeDisplayPanel(int new_width, int new_height)
           
 
Method Summary
 void LoadCodeFile(java.lang.String code_file_name)
           
 java.awt.Dimension minimumSize()
          Returns the minimum size of this container.
 boolean mouseDown(java.awt.Event evt, int x, int y)
          AWT 1.0 MOUSE_DOWN event handler.
 void paint(java.awt.Graphics g)
          Paints this container.
 java.awt.Dimension preferredSize()
          Returns the preferred size of this container.
 void setLineNumber(int new_line_number)
           
 void setScrollx(int newx)
           
 void setScrolly(int newy)
           
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, paintComponents, paramString, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

force_info_new

private boolean force_info_new

m_loadingPanel

public diagapplet.utils.URLLoadInfoPanel m_loadingPanel

info_is_new

boolean info_is_new

state_table_files

java.util.Hashtable state_table_files

currentFileInfo

CodeFileInfo currentFileInfo

comment_color

java.awt.Color comment_color

x

int x

y

int y

d

java.awt.Dimension d

num_lines_on_screen

int num_lines_on_screen

total_lines

int total_lines

fn

java.awt.Font fn

fn_metrics

java.awt.FontMetrics fn_metrics

line_height

int line_height

first_line_to_show

int first_line_to_show

max_width

int max_width

last_scroll_y_update

long last_scroll_y_update

use_color

boolean use_color
Constructor Detail

CodeDisplayPanel

public CodeDisplayPanel()

CodeDisplayPanel

public CodeDisplayPanel(int new_width,
                        int new_height)
Method Detail

preferredSize

public java.awt.Dimension preferredSize()
Description copied from class: java.awt.Container
Returns the preferred size of this container.


minimumSize

public java.awt.Dimension minimumSize()
Description copied from class: java.awt.Container
Returns the minimum size of this container.


LoadCodeFile

public void LoadCodeFile(java.lang.String code_file_name)

paint

public void paint(java.awt.Graphics g)
Description copied from class: java.awt.Container
Paints this container. The implementation of this method in this class forwards to any lightweight components in this container. If this method is subclassed, this method should still be invoked as a superclass method so that lightweight components are properly drawn.


setScrollx

public void setScrollx(int newx)

setScrolly

public void setScrolly(int newy)

mouseDown

public boolean mouseDown(java.awt.Event evt,
                         int x,
                         int y)
Description copied from class: java.awt.Component
AWT 1.0 MOUSE_DOWN event handler. This method is meant to be overridden by components providing their own MOUSE_DOWN handler. The default implementation simply returns false.


setLineNumber

public void setLineNumber(int new_line_number)