oracle.forms.fd
Class LAFPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by oracle.forms.fd.LAFPanel
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.AWTEventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class LAFPanel
extends javax.swing.JPanel
implements java.awt.event.AWTEventListener, java.awt.event.ActionListener

A JPanel to draw shapes with the Robot feature

Version:
1.4
Author:
Francois Degrelle creation February 2010
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  boolean bBlink
           
(package private)  boolean bFinish
           
(package private)  boolean bGo
           
(package private)  boolean bPanel
           
(package private)  boolean bShadow
           
(package private)  java.awt.Color cFill
           
(package private)  java.awt.Color cLine
           
(package private)  java.awt.Color cPanelBack
           
(package private)  java.awt.Color cPanelLine
           
(package private)  java.awt.Color cShadow
           
(package private)  java.awt.Color cText
           
(package private)  float fAlpha
           
(package private)  float fBgTrsp
           
(package private)  float[] fDash
           
(package private)  java.awt.Font fText
           
(package private)  int iGap
           
(package private)  int[] iPoints
           
(package private)  int iWidth
           
(package private)  javax.swing.JPanel jp
           
(package private)  java.awt.geom.GeneralPath path
           
private  java.awt.Point point
           
(package private)  java.awt.Polygon poly
           
(package private)  java.lang.String sShape
           
(package private)  java.lang.String sText
           
(package private)  javax.swing.Timer timer
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
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
LAFPanel()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
 boolean contains(int x, int y)
           
(package private)  void destroy()
           
(package private)  void draw()
           
 void eventDispatched(java.awt.AWTEvent event)
           
(package private)  void finish()
           
 void paintComponent(java.awt.Graphics g)
           
(package private)  void setBGTrsp(float f)
           
 void setBlink(boolean b)
           
(package private)  void setColors(java.awt.Color c1, java.awt.Color c2)
           
(package private)  void setDash(int i1, int i2)
           
(package private)  void setPanel(boolean b)
           
(package private)  void setPanelColors(java.awt.Color c1, java.awt.Color c2)
           
 void setPoint(java.awt.Point point)
           
(package private)  void setShadow(int i1)
           
(package private)  void setShape(java.lang.String s)
           
(package private)  void setTextColors(java.awt.Color c1, java.awt.Color c2, java.awt.Color c3, java.awt.Color c4)
           
(package private)  void setTextFont(java.awt.Font f)
           
private static int xCor(int len, double dir)
           
private static int yCor(int len, double dir)
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

point

private java.awt.Point point

sShape

java.lang.String sShape

sText

java.lang.String sText

iPoints

int[] iPoints

iWidth

int iWidth

iGap

int iGap

cLine

java.awt.Color cLine

cText

java.awt.Color cText

cFill

java.awt.Color cFill

cShadow

java.awt.Color cShadow

cPanelLine

java.awt.Color cPanelLine

cPanelBack

java.awt.Color cPanelBack

fDash

float[] fDash

timer

javax.swing.Timer timer

fAlpha

float fAlpha

fBgTrsp

float fBgTrsp

jp

javax.swing.JPanel jp

bShadow

boolean bShadow

bFinish

boolean bFinish

bBlink

boolean bBlink

bGo

boolean bGo

bPanel

boolean bPanel

fText

java.awt.Font fText

poly

java.awt.Polygon poly

path

java.awt.geom.GeneralPath path
Constructor Detail

LAFPanel

public LAFPanel()
Method Detail

setPoint

public void setPoint(java.awt.Point point)

paintComponent

public void paintComponent(java.awt.Graphics g)
Overrides:
paintComponent in class javax.swing.JComponent

setShape

void setShape(java.lang.String s)

setShadow

void setShadow(int i1)

setBGTrsp

void setBGTrsp(float f)

setColors

void setColors(java.awt.Color c1,
               java.awt.Color c2)

setDash

void setDash(int i1,
             int i2)

setTextFont

void setTextFont(java.awt.Font f)

setPanel

void setPanel(boolean b)

setTextColors

void setTextColors(java.awt.Color c1,
                   java.awt.Color c2,
                   java.awt.Color c3,
                   java.awt.Color c4)

setPanelColors

void setPanelColors(java.awt.Color c1,
                    java.awt.Color c2)

setBlink

public void setBlink(boolean b)

draw

void draw()

finish

void finish()

destroy

void destroy()

yCor

private static int yCor(int len,
                        double dir)

xCor

private static int xCor(int len,
                        double dir)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

eventDispatched

public void eventDispatched(java.awt.AWTEvent event)
Specified by:
eventDispatched in interface java.awt.event.AWTEventListener

contains

public boolean contains(int x,
                        int y)
Overrides:
contains in class javax.swing.JComponent