Glg Toolkit

com.genlogic
Class GlgJLWBean

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bycom.genlogic.GlgJLWBean
All Implemented Interfaces:
javax.accessibility.Accessible, com.genlogic.GlgBeanInterface, GlgHListener, GlgInputListener, GlgReadyListener, GlgSelectListener, GlgTraceListener, GlgVListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
GlgCustomJLWBean

public class GlgJLWBean
extends javax.swing.JPanel
implements GlgInputListener, GlgSelectListener, GlgTraceListener, GlgReadyListener, GlgHListener, GlgVListener, com.genlogic.GlgBeanInterface

Light-weight Swing-based Glg component for use with JDesktoPane and JInternalFrame. See GlgJBean for the heavy-weight Swing-based component that can be used as an applet. See GlgBean for AWT-based component and applet. Implements both the Standard and Extended API methods. These methods are also implemented by the GlgObject class for individual objects, while the bean provides a centralized container-based interface.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Field Summary
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, 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
GlgJLWBean()
           
 
Method Summary
 java.lang.Object AddListener(int listener_type, java.lang.Object listener)
          Adds event listener to the bean.
 void addNotify()
           
 boolean AddObjectAt(GlgObject container, java.lang.Object object, int index)
          Adds object to the container at the specified position.
 boolean AddObjectToBottom(GlgObject container, java.lang.Object object)
          Adds object to the bottom of the container.
 boolean AddObjectToTop(GlgObject container, java.lang.Object object)
          Adds object to the top of the container.
 void Bell()
          Emits an audio beep.
 GlgObject CloneObject(GlgObject object, int clone_type)
          Creates and returns a copy of an object according the clone_type (WEAK_CLONE, STRONG_CLONE, FULL_CLONE or CONSTRAINED_CLONE).
 boolean ConstrainObject(GlgObject from_object, GlgObject to_object)
          Constrains the attribute object.
 boolean ContainsObject(GlgObject container, java.lang.Object object)
          Checks if the object is contained by the container.
 GlgObject CopyObject(GlgObject object)
          Creates a copy of an object using FULL_CLONE copy method.
 java.lang.String CreateIndexedName(java.lang.String template_name, int res_index)
          Creates an indexed name by inserting a number into the first % character of the name template.
 boolean DeleteBottomObject(GlgObject container)
          Deletes last object from the container.
 boolean DeleteObject(GlgObject container, java.lang.Object object)
          Deletes the object from the container.
 boolean DeleteObjectAt(GlgObject container, int index)
          Deletes the object of the container at the specified position.
 boolean DeleteTopObject(GlgObject container)
          Deletes the first object from the container.
 void destroy()
           
 void doLayout()
           
 boolean GetAPILog()
          Returns value of the APILog property.
 java.lang.String getAppletInfo()
           
 java.lang.String GetDataURL()
          Returns value of the bean's DataURL property.
 java.lang.String GetDrawingFile()
          Returns value of the bean's DrawingFile property.
 java.lang.String GetDrawingName()
          Returns value of the bean's DrawingName property.
 GlgObject GetDrawingObject()
          Returns the value of the bean's DrawingObject property.
 java.lang.String GetDrawingURL()
          Returns value of the bean's DrawingURL property.
 double GetDResource(GlgObject object, java.lang.String name)
          Returns value of a D (double) resource.
 double GetDResource(java.lang.String res_name)
          Returns value of a D (double) resource.
 double GetDTag(java.lang.String tag_name)
          Returns value of a D (double) tag.
 java.lang.Object GetElement(GlgObject container, int index)
          Returns container's element at the specified position.
 java.lang.String GetFullPath(java.lang.String filename)
          Returns the full path of the URL relative to the document base.
 GlgPoint GetGResource(GlgObject object, java.lang.String name)
          Returns value of an G (color or point) resource.
 GlgPoint GetGResource(java.lang.String res_name)
          Returns value of a G (color or point) resource.
 java.lang.String GetHRefTarget()
          Returns value of the bean's HRefTarget property.
 java.lang.String GetHResource0()
          Returns value of the HResource0 property.
 java.lang.String GetHResource1()
          Returns value of the HResource1 property.
 java.lang.String GetHResource2()
          Returns value of the HResource2 property.
 java.lang.String GetHResource3()
          Returns value of the HResource3 property.
 java.lang.String GetHResource4()
          Returns value of the HResource4 property.
 boolean GetIgnoreErrors()
          Returns value of the bean's IgnoreErrors property.
 int GetIndex(GlgObject container, java.lang.Object object)
          Returns the index of the first occurrence of the object in the container
 boolean GetJavaLog()
          Returns value of the JavaLog property.
 java.awt.Dimension getMinimumSize()
           
 GlgObject GetNamedObject(GlgObject container, java.lang.String name)
          Returns container's element with the specified name
 int GetNumParents(GlgObject object)
          ADVANCED: Returns the number of object's parents.
 java.lang.String[][] getParameterInfo()
           
 GlgObject GetParent(GlgObject object)
          ADVANCED: Returns the object's parent(s).
 java.awt.Dimension getPreferredSize()
           
 java.lang.Object GetResource(GlgObject object, java.lang.String name)
          Finds and returns a resource of an arbitrary type.
 boolean GetResourceLog()
          Returns value of the ResourceLog property.
 GlgObject GetResourceObject(GlgObject object, java.lang.String name)
          Finds and returns a named resource or an attribute of the object.
 java.lang.String GetSetupDataURL()
          Returns value of the bean's SetupDataURL property.
 int GetSize(GlgObject container)
          Returns container's size.
 java.lang.String GetSResource(GlgObject object, java.lang.String name)
          Returns value of an S (string) resource.
 java.lang.String GetSResource(java.lang.String res_name)
          Returns value of a S (string) resource.
 java.lang.String GetSTag(java.lang.String tag_name)
          Returns value of a S (string) tag.
 boolean GetTraceHRef()
          Returns value of the bean's TraceHRef property.
 double GetUpdatePeriod()
          Returns value of the bean's UpdatePeriod property.
 GlgObject GetViewport()
          Returns the viewport object used by the bean.
 java.lang.String GetVResource0()
          Returns value of the VResource0 property.
 java.lang.String GetVResource1()
          Returns value of the VResource1 property.
 java.lang.String GetVResource2()
          Returns value of the VResource2 property.
 java.lang.String GetVResource3()
          Returns value of the VResource3 property.
 java.lang.String GetVResource4()
          Returns value of the VResource4 property.
 double GetXResource(GlgObject object, java.lang.String name)
          Returns the X value of a G (geometrical or color) resource.
 double GetXResource(java.lang.String res_name)
          Returns the X value of a G (geometrical or color) resource.
 double GetYResource(GlgObject object, java.lang.String name)
          Returns the Y value of a G (geometrical or color) resource.
 double GetYResource(java.lang.String res_name)
          Returns the Y value of a G (geometrical or color) resource.
 double GetZResource(GlgObject object, java.lang.String name)
          Returns the Z value of a G (geometrical or color) resource.
 double GetZResource(java.lang.String res_name)
          Returns the Z value of a G (geometrical or color) resource.
 boolean HasResourceObject(GlgObject object, java.lang.String name)
          Checks for the existence of the resource object
 boolean HasResourceObject(java.lang.String res_name)
          Checks for the existence of the resource object
 boolean HasTagName(java.lang.String tag_name)
          Checks for the existence of the tag object with a given tag name.
 boolean HasTagSource(java.lang.String tag_source)
          Checks for the existence of the tag object with a given tag source.
 void HCallback(GlgObject viewport)
          H callback.
 void InitialDraw(GlgObject object)
          Draws a viewport object for the first time.
 void InputCallback(GlgObject vp, GlgObject message_obj)
          Input callback.
 void Inverse(GlgObject container)
          Reverses the order of the objects in the container.
 boolean IsDemo()
          Returns true if the Evaluation Version of the Toolkit is used.
 boolean IsDemoExt()
          Returns true if the Evaluation Version of the Extended API is used.
 boolean IsReady()
          Returns true if the bean finished loading the drawing.
 java.lang.Object Iterate(GlgObject container)
          Returns the next element of container.
 void layoutContainer(java.awt.Container a)
           
 GlgObject LoadObject(java.lang.String filename, int medium_type)
          Loads object from a file or URL.
 GlgObject LoadWidget(GlgObject object)
          Finds a viewport named "$Widget" inside an object and returns it.
 GlgObject LoadWidget(java.lang.String filename, int medium_type)
          Loads a viewport named "$Widget" from a file or URL.
 boolean Print(GlgObject object, java.lang.String filename, double x, double y, double width, double height, boolean portrait, boolean stretch)
          Prints the viewport's drawing and saves it in a PostScript file.
 boolean Print(java.lang.String filename, double x, double y, double width, double height, boolean portrait, boolean stretch)
          Prints the viewport drawing and saves it in a PostScript file.
 void PrintToJavaConsole(java.lang.String message)
          Prints message to Java console.
 void ReadyCallback(GlgObject viewport)
          Ready callback.
 void ReleaseObject(GlgObject object, GlgObject suspend_info)
          Releases the object after suspending for editing.
 void removeNotify()
           
 boolean ReorderElement(GlgObject container, int old_index, int new_index)
          Moves the container's element from the old_index to the new_index position.
 void Reset()
          Resets the object hierarchy.
 void ResetHierarchy(GlgObject object)
          Resets object hierarchy.
 void resize_viewport(boolean call_set_bounds)
           
 boolean SaveObject(GlgObject object, java.lang.String filename)
          Saves an object into a file.
 void SelectCallback(GlgObject vp, java.lang.Object[] name_array, int button)
          Select callback.
 void SetAPILog(boolean value)
          Sets value of the APILog property.
 void setBounds(int x, int y, int width, int height)
           
 void SetDataURL(java.lang.String data_url)
          Sets bean's DataURL property.
 void SetDrawingFile(java.lang.String drawing_file)
          Sets bean's DrawingFile property.
 void SetDrawingName(java.lang.String drawing_name)
          Sets bean's DrawingName property.
 boolean SetDrawingObject(GlgObject drawing_object)
          Sets the bean's DrawingObject property.
 void SetDrawingURL(java.lang.String drawing_url)
          Sets bean's DrawingURL property.
 boolean SetDResource(GlgObject object, java.lang.String name, double value)
          Sets value of a D (double) resource.
 boolean SetDResource(java.lang.String res_name, double value)
          Sets value of a D (double) resource.
 boolean SetDResource(java.lang.String res_name, double value, boolean if_changed)
          Sets value of a D (double) resource.
 boolean SetDTag(java.lang.String tag_name, double value, boolean if_changed)
          Sets value of a D (double) tag.
 boolean SetGResource(GlgObject object, java.lang.String name, double value1, double value2, double value3)
          Sets value of a G (geometrical or color) resource.
 boolean SetGResource(java.lang.String res_name, double value1, double value2, double value3)
          Sets value of a G (geometrical or color) resource.
 boolean SetGResource(java.lang.String res_name, double value1, double value2, double value3, boolean if_changed)
          Sets value of a G (geometrical or color) resource.
 boolean SetGTag(java.lang.String tag_name, GlgPoint gvalue, boolean if_changed)
          Sets value of a G (geometrical or color) tag.
 void SetHRefTarget(java.lang.String target)
          Sets bean's HRefTarget property.
 void SetHResource0(java.lang.String value)
          Sets value of the HResource0 property.
 void SetHResource1(java.lang.String value)
          Sets value of the HResource1 property.
 void SetHResource2(java.lang.String value)
          Sets value of the HResource2 property.
 void SetHResource3(java.lang.String value)
          Sets value of the HResource3 property.
 void SetHResource4(java.lang.String value)
          Sets value of the HResource4 property.
 void SetIgnoreErrors(boolean value)
          Sets bean's IgnoreErrors property.
 boolean SetInputUpdate(boolean update)
          Is invoked with false to supress default automatic updates on input events.
 void SetJavaLog(boolean value)
          Sets value of the JavaLog property.
 java.applet.Applet SetParentApplet(java.applet.Applet applet)
          Sets the parent applet of the bean.
 boolean SetResourceFromObject(GlgObject object, java.lang.String name, GlgObject ovalue)
          Sets value of the data or matrix resource to the value of the data object.
 void SetResourceLog(boolean value)
          Sets value of the ResourceLog property.
 boolean SetResourceObject(GlgObject object, java.lang.String name, GlgObject data_object)
          Sets the new value of the object's attribute.
 void SetSetupDataURL(java.lang.String setup_data_url)
          Sets bean's SetupDataURL property.
 boolean SetSResource(GlgObject object, java.lang.String name, java.lang.String value)
          Sets value of an S (string) resource.
 boolean SetSResource(java.lang.String res_name, java.lang.String value)
          Sets value of an S (string) resource.
 boolean SetSResource(java.lang.String res_name, java.lang.String value, boolean if_changed)
          Sets value of an S (string) resource.
 boolean SetSResourceFromD(GlgObject object, java.lang.String name, java.lang.String format, double value)
          Sets value of an S (string) resource from a double value, converting the value into a string using a C-style format.
 boolean SetSTag(java.lang.String tag_name, java.lang.String value, boolean if_changed)
          Sets value of an S (string) tag.
 void SetStart(GlgObject container)
          Initializes container for traversing.
 void SetTraceHRef(boolean value)
          Sets bean's TraceHRef property.
 void SetUpdatePeriod(double update_period)
          Sets bean's UpdatePeriod property.
 void SetupHierarchy(GlgObject object)
          Sets up object hierarchy.
 boolean SetViewport(GlgObject viewport)
           
 void SetVResource0(java.lang.String value)
          Sets value of the VResource0 property.
 void SetVResource1(java.lang.String value)
          Sets value of the VResource1 property.
 void SetVResource2(java.lang.String value)
          Sets value of the VResource2 property.
 void SetVResource3(java.lang.String value)
          Sets value of the VResource3 property.
 void SetVResource4(java.lang.String value)
          Sets value of the VResource4 property.
 boolean SetXform(GlgObject object, GlgObject xform)
          Sets the object's transformation to a constrained copy of the xform parameter.
 boolean SetZoom(java.lang.String res_name, char type, double value)
          Programmatic interface for the integrated zoom and pan features.
 void start()
          Starts the applet.
 void stop()
           
 GlgObject SuspendObject(GlgObject object)
          Suspends the object for editing.
 void Trace2Callback(GlgObject top_viewport, GlgTraceData trace_info)
          Trace2 callback.
 void TraceCallback(GlgObject top_viewport, GlgTraceData trace_info)
          Trace callback.
 boolean UnconstrainObject(GlgObject object)
          Unconstrains the attribute object.
 void Update()
          Updates the drawing with the latest resource values.
 void Update(GlgObject object)
          Updates the drawing with the latest resource values.
 void validate()
           
 void VCallback(GlgObject viewport)
          V callback.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GlgJLWBean

public GlgJLWBean()
Method Detail

layoutContainer

public void layoutContainer(java.awt.Container a)

doLayout

public void doLayout()

validate

public void validate()

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)

addNotify

public void addNotify()

removeNotify

public void removeNotify()

getMinimumSize

public java.awt.Dimension getMinimumSize()

getPreferredSize

public java.awt.Dimension getPreferredSize()

getAppletInfo

public java.lang.String getAppletInfo()

getParameterInfo

public java.lang.String[][] getParameterInfo()

start

public void start()
Starts the applet. When the bean is used as an applet, the method also resets the default font table parameters.


stop

public void stop()

destroy

public void destroy()

resize_viewport

public void resize_viewport(boolean call_set_bounds)

SetParentApplet

public java.applet.Applet SetParentApplet(java.applet.Applet applet)
Sets the parent applet of the bean. The parent applet is used to determine document base path used to load the drawing.

Parameters:
applet - Applet to use as a parent

GetFullPath

public java.lang.String GetFullPath(java.lang.String filename)
Returns the full path of the URL relative to the document base. Prepends the document path of the bean (or its parent applet set with SetParentApplet() method) to the url string. If the bean is not used as an applet, returns the passed URL string with no change (so that it be used as a filename relative to the current directory).

Parameters:
filename - URL string

PrintToJavaConsole

public void PrintToJavaConsole(java.lang.String message)
Prints message to Java console. This method is provided for use with JScript in html enviroment.

Parameters:
message - Message to be printed.

SetDrawingURL

public void SetDrawingURL(java.lang.String drawing_url)
Sets bean's DrawingURL property.


SetDrawingFile

public void SetDrawingFile(java.lang.String drawing_file)
Sets bean's DrawingFile property.


SetDrawingName

public void SetDrawingName(java.lang.String drawing_name)
Sets bean's DrawingName property. It's handled as a URL when bean is used as an applet, or as a filename when used as a bean.


SetSetupDataURL

public void SetSetupDataURL(java.lang.String setup_data_url)
Sets bean's SetupDataURL property.


SetDataURL

public void SetDataURL(java.lang.String data_url)
Sets bean's DataURL property.


SetUpdatePeriod

public void SetUpdatePeriod(double update_period)
Sets bean's UpdatePeriod property.


SetTraceHRef

public void SetTraceHRef(boolean value)
Sets bean's TraceHRef property. Activates handling of the html links. Must be done before loading the bean's drawing. The ProcessMouse attribute of the drawing has to include motion events mask. An html link is an object resource of S-type named "$href". The string value of the resource defines the html link.


SetHRefTarget

public void SetHRefTarget(java.lang.String target)
Sets bean's HRefTarget property. Defines the target name for showing html links. If set to null, clicking on the hot spot defined by the "$href" property with the left mouse button opens the link in the same browser window, or in a separate window with the "_blank" target name if other mouse buttons are used. If HRefTarget property is not null, the link is always opened in a separate window with the tagret name defined by the HRefTarget property.


SetIgnoreErrors

public void SetIgnoreErrors(boolean value)
Sets bean's IgnoreErrors property.


GetDrawingURL

public java.lang.String GetDrawingURL()
Returns value of the bean's DrawingURL property.


GetDrawingFile

public java.lang.String GetDrawingFile()
Returns value of the bean's DrawingFile property.


GetDrawingName

public java.lang.String GetDrawingName()
Returns value of the bean's DrawingName property.


GetSetupDataURL

public java.lang.String GetSetupDataURL()
Returns value of the bean's SetupDataURL property.


GetDataURL

public java.lang.String GetDataURL()
Returns value of the bean's DataURL property.


GetUpdatePeriod

public double GetUpdatePeriod()
Returns value of the bean's UpdatePeriod property.


GetTraceHRef

public boolean GetTraceHRef()
Returns value of the bean's TraceHRef property.


GetHRefTarget

public java.lang.String GetHRefTarget()
Returns value of the bean's HRefTarget property.


GetIgnoreErrors

public boolean GetIgnoreErrors()
Returns value of the bean's IgnoreErrors property.


GetJavaLog

public boolean GetJavaLog()
Returns value of the JavaLog property.


SetJavaLog

public void SetJavaLog(boolean value)
Sets value of the JavaLog property.


GetResourceLog

public boolean GetResourceLog()
Returns value of the ResourceLog property.


SetResourceLog

public void SetResourceLog(boolean value)
Sets value of the ResourceLog property.


GetAPILog

public boolean GetAPILog()
Returns value of the APILog property.


SetAPILog

public void SetAPILog(boolean value)
Sets value of the APILog property.


GetHResource0

public java.lang.String GetHResource0()
Returns value of the HResource0 property.


SetHResource0

public void SetHResource0(java.lang.String value)
Sets value of the HResource0 property.


GetHResource1

public java.lang.String GetHResource1()
Returns value of the HResource1 property.


SetHResource1

public void SetHResource1(java.lang.String value)
Sets value of the HResource1 property.


GetHResource2

public java.lang.String GetHResource2()
Returns value of the HResource2 property.


SetHResource2

public void SetHResource2(java.lang.String value)
Sets value of the HResource2 property.


GetHResource3

public java.lang.String GetHResource3()
Returns value of the HResource3 property.


SetHResource3

public void SetHResource3(java.lang.String value)
Sets value of the HResource3 property.


GetHResource4

public java.lang.String GetHResource4()
Returns value of the HResource4 property.


SetHResource4

public void SetHResource4(java.lang.String value)
Sets value of the HResource4 property.


GetVResource0

public java.lang.String GetVResource0()
Returns value of the VResource0 property.


SetVResource0

public void SetVResource0(java.lang.String value)
Sets value of the VResource0 property.


GetVResource1

public java.lang.String GetVResource1()
Returns value of the VResource1 property.


SetVResource1

public void SetVResource1(java.lang.String value)
Sets value of the VResource1 property.


GetVResource2

public java.lang.String GetVResource2()
Returns value of the VResource2 property.


SetVResource2

public void SetVResource2(java.lang.String value)
Sets value of the VResource2 property.


GetVResource3

public java.lang.String GetVResource3()
Returns value of the VResource3 property.


SetVResource3

public void SetVResource3(java.lang.String value)
Sets value of the VResource3 property.


GetVResource4

public java.lang.String GetVResource4()
Returns value of the VResource4 property.


SetVResource4

public void SetVResource4(java.lang.String value)
Sets value of the VResource4 property.


IsReady

public boolean IsReady()
Returns true if the bean finished loading the drawing.


GetDResource

public double GetDResource(java.lang.String res_name)
Returns value of a D (double) resource.

Parameters:
res_name - Resource name
Returns:
Resource value

GetSResource

public java.lang.String GetSResource(java.lang.String res_name)
Returns value of a S (string) resource.

Parameters:
res_name - Resource name
Returns:
Resource value

GetGResource

public GlgPoint GetGResource(java.lang.String res_name)
Returns value of a G (color or point) resource.

Parameters:
res_name - Resource name
Returns:
Resource value

GetXResource

public double GetXResource(java.lang.String res_name)
Returns the X value of a G (geometrical or color) resource.

Parameters:
res_name - Resource name
Returns:
Resource value

GetYResource

public double GetYResource(java.lang.String res_name)
Returns the Y value of a G (geometrical or color) resource.

Parameters:
res_name - Resource name
Returns:
Resource value

GetZResource

public double GetZResource(java.lang.String res_name)
Returns the Z value of a G (geometrical or color) resource.

Parameters:
res_name - Resource name
Returns:
Resource value

SetDResource

public boolean SetDResource(java.lang.String res_name,
                            double value)
Sets value of a D (double) resource.

Parameters:
res_name - Resource name
value - Resource value
Returns:
true on success

SetDResource

public boolean SetDResource(java.lang.String res_name,
                            double value,
                            boolean if_changed)
Sets value of a D (double) resource.

Parameters:
res_name - Resource name
value - Resource value
if_changed - If set to true, the graphics will be redrawn only if the new resource value is different from the old one.
Returns:
true on success

SetSResource

public boolean SetSResource(java.lang.String res_name,
                            java.lang.String value)
Sets value of an S (string) resource.

Parameters:
res_name - Resource name
value - Resource value
Returns:
true on success

SetSResource

public boolean SetSResource(java.lang.String res_name,
                            java.lang.String value,
                            boolean if_changed)
Sets value of an S (string) resource.

Parameters:
res_name - Resource name
value - Resource value
if_changed - If set to true, the graphics will be redrawn only if the new resource value is different from the old one.
Returns:
true on success

SetGResource

public boolean SetGResource(java.lang.String res_name,
                            double value1,
                            double value2,
                            double value3)
Sets value of a G (geometrical or color) resource.

Parameters:
res_name - Resource name
value1 - The first value of the XYZ or RGB value triplet.
value2 - The second value of the XYZ or RGB value triplet.
value3 - The third value of the XYZ or RGB value triplet.
Returns:
true on success

SetGResource

public boolean SetGResource(java.lang.String res_name,
                            double value1,
                            double value2,
                            double value3,
                            boolean if_changed)
Sets value of a G (geometrical or color) resource.

Parameters:
res_name - Resource name
value1 - The first value of the XYZ or RGB value triplet.
value2 - The second value of the XYZ or RGB value triplet.
value3 - The third value of the XYZ or RGB value triplet.
if_changed - If set to true, the graphics will be redrawn only if the new resource value is different from the old one.
Returns:
true on success

HasResourceObject

public boolean HasResourceObject(java.lang.String res_name)
Checks for the existence of the resource object

Parameters:
res_name - Resource name
Returns:
true on success

GetDTag

public double GetDTag(java.lang.String tag_name)
Returns value of a D (double) tag.

Parameters:
tag_name - Tag name
Returns:
Tag value

GetSTag

public java.lang.String GetSTag(java.lang.String tag_name)
Returns value of a S (string) tag.

Parameters:
tag_name - Tag name
Returns:
Tag value

SetDTag

public boolean SetDTag(java.lang.String tag_name,
                       double value,
                       boolean if_changed)
Sets value of a D (double) tag.

Parameters:
tag_name - Tag name
value - Tag value
if_changed - If set to true, the graphics will be redrawn only if the new tag value is different from the old one.
Returns:
true on success

SetSTag

public boolean SetSTag(java.lang.String tag_name,
                       java.lang.String value,
                       boolean if_changed)
Sets value of an S (string) tag.

Parameters:
tag_name - Tag name
value - Tag value
if_changed - If set to true, the graphics will be redrawn only if the new tag value is different from the old one.
Returns:
true on success

SetGTag

public boolean SetGTag(java.lang.String tag_name,
                       GlgPoint gvalue,
                       boolean if_changed)
Sets value of a G (geometrical or color) tag.

Parameters:
tag_name - Tag name
gvalue - XYZ or RGB value triplet
if_changed - If set to true, the graphics will be redrawn only if the new tag value is different from the old one.
Returns:
true on success

HasTagSource

public boolean HasTagSource(java.lang.String tag_source)
Checks for the existence of the tag object with a given tag source.

Parameters:
tag_source - Tag source
Returns:
true on success

HasTagName

public boolean HasTagName(java.lang.String tag_name)
Checks for the existence of the tag object with a given tag name.

Parameters:
tag_name - Tag name
Returns:
true on success

Update

public void Update()
Updates the drawing with the latest resource values.


Reset

public void Reset()
Resets the object hierarchy.


Bell

public void Bell()
Emits an audio beep.


Print

public boolean Print(java.lang.String filename,
                     double x,
                     double y,
                     double width,
                     double height,
                     boolean portrait,
                     boolean stretch)
Prints the viewport drawing and saves it in a PostScript file.

Parameters:
filename - Filename
x - The X coordinate of the lower left corner of the postcript output on a page in GLG coordinates [-1000;1000].
y - The Y coordinate of the lower left corner of the postcript output on a page in GLG coordinates [-1000;1000].
width - The width of the postcript output on a page in GLG coordinates [-1000;1000].
height - The height of the postcript output on a page in GLG coordinates [-1000;1000].
portrait - Orientation: true for portrait
stretch - Preserving X/Y ratio: true to stretch, false to preserve.

CreateIndexedName

public java.lang.String CreateIndexedName(java.lang.String template_name,
                                          int res_index)
Creates an indexed name by inserting a number into the first % character of the name template.

Returns:
Created name

IsDemo

public boolean IsDemo()
Returns true if the Evaluation Version of the Toolkit is used.


GetDrawingObject

public GlgObject GetDrawingObject()
Returns the value of the bean's DrawingObject property.


GetViewport

public GlgObject GetViewport()
Returns the viewport object used by the bean. Returns null if the drawing hasn't been loaded.


SetDrawingObject

public boolean SetDrawingObject(GlgObject drawing_object)
Sets the bean's DrawingObject property. May be used to replace a drawing displayed in the bean.

Returns:
true on success

SetViewport

public boolean SetViewport(GlgObject viewport)

LoadWidget

public GlgObject LoadWidget(java.lang.String filename,
                            int medium_type)
Loads a viewport named "$Widget" from a file or URL.

Parameters:
filename - Defines a drawing file or URL.
medium_type - FILE or URL constant
Returns:
Loaded viewport or null if load fails.

LoadWidget

public GlgObject LoadWidget(GlgObject object)
Finds a viewport named "$Widget" inside an object and returns it.

Parameters:
object - An object containing $Widget viewport
Returns:
Viewport or null if search fails.

InitialDraw

public void InitialDraw(GlgObject object)
Draws a viewport object for the first time.


SetupHierarchy

public void SetupHierarchy(GlgObject object)
Sets up object hierarchy.


ResetHierarchy

public void ResetHierarchy(GlgObject object)
Resets object hierarchy.


CopyObject

public GlgObject CopyObject(GlgObject object)
Creates a copy of an object using FULL_CLONE copy method.

Returns:
Object copy

CloneObject

public GlgObject CloneObject(GlgObject object,
                             int clone_type)
Creates and returns a copy of an object according the clone_type (WEAK_CLONE, STRONG_CLONE, FULL_CLONE or CONSTRAINED_CLONE).

Returns:
Object copy

LoadObject

public GlgObject LoadObject(java.lang.String filename,
                            int medium_type)
Loads object from a file or URL.

Parameters:
filename - Defines a drawing file or URL.
medium_type - FILE or URL constant
Returns:
Loaded object or null if load fails.

SaveObject

public boolean SaveObject(GlgObject object,
                          java.lang.String filename)
Saves an object into a file.

Parameters:
filename - Filename
object - Object to save
Returns:
true on success

AddObjectToTop

public boolean AddObjectToTop(GlgObject container,
                              java.lang.Object object)
Adds object to the top of the container.

Parameters:
container - Container object
object - Object to add
Returns:
true on success

AddObjectToBottom

public boolean AddObjectToBottom(GlgObject container,
                                 java.lang.Object object)
Adds object to the bottom of the container.

Parameters:
container - Container object
object - Object to add
Returns:
true on success

AddObjectAt

public boolean AddObjectAt(GlgObject container,
                           java.lang.Object object,
                           int index)
Adds object to the container at the specified position.

Parameters:
container - Container object
object - Object to add
index - Position index
Returns:
true on success

DeleteTopObject

public boolean DeleteTopObject(GlgObject container)
Deletes the first object from the container.

Parameters:
container - Container object
Returns:
true on success

DeleteBottomObject

public boolean DeleteBottomObject(GlgObject container)
Deletes last object from the container.

Parameters:
container - Container object
Returns:
true on success

DeleteObjectAt

public boolean DeleteObjectAt(GlgObject container,
                              int index)
Deletes the object of the container at the specified position.

Parameters:
container - Container object
index - Index of the object to delete.
Returns:
true on success

DeleteObject

public boolean DeleteObject(GlgObject container,
                            java.lang.Object object)
Deletes the object from the container.

Parameters:
container - Container object
object - Object to delete.
Returns:
true if the object was successfully deleted.

ContainsObject

public boolean ContainsObject(GlgObject container,
                              java.lang.Object object)
Checks if the object is contained by the container.

Parameters:
container - Container object
object - The object to search for.
Returns:
true if the object is contained in container.

GetElement

public java.lang.Object GetElement(GlgObject container,
                                   int index)
Returns container's element at the specified position.

Parameters:
container - Container object
index - Position Index
Returns:
Container's element or null.

GetIndex

public int GetIndex(GlgObject container,
                    java.lang.Object object)
Returns the index of the first occurrence of the object in the container

Parameters:
container - Container object
object - The object to search for.
Returns:
Object's index or -1 if the object wasn't found in the container.

GetNamedObject

public GlgObject GetNamedObject(GlgObject container,
                                java.lang.String name)
Returns container's element with the specified name

Parameters:
container - Container object
name - The element's name
Returns:
Container's element or null if named element wasn't found.

ReorderElement

public boolean ReorderElement(GlgObject container,
                              int old_index,
                              int new_index)
Moves the container's element from the old_index to the new_index position.

Parameters:
container - Container object
old_index - Index of the object to move.
new_index - Index of the new object position.
Returns:
false if indexes are out of range.

SetStart

public void SetStart(GlgObject container)
Initializes container for traversing. This function should be called before invoking the container's Iterate method.

Parameters:
container - Container object

Iterate

public java.lang.Object Iterate(GlgObject container)
Returns the next element of container.

Parameters:
container - Container object
Returns:
next element

GetSize

public int GetSize(GlgObject container)
Returns container's size.

Parameters:
container - Container object
Returns:
Size

SetXform

public boolean SetXform(GlgObject object,
                        GlgObject xform)
Sets the object's transformation to a constrained copy of the xform parameter.

Parameters:
object - Object to attach transformation to.
xform - Transformation to attach to the object.
Returns:
true on success

GetResourceObject

public GlgObject GetResourceObject(GlgObject object,
                                   java.lang.String name)
Finds and returns a named resource or an attribute of the object.

Parameters:
object - Object to search
name - Resource name
Returns:
Resource or attribute object (GlgObject)

GetResource

public java.lang.Object GetResource(GlgObject object,
                                    java.lang.String name)
Finds and returns a resource of an arbitrary type.

Parameters:
object - Object to search
name - Resource name
Returns:
Resource object (Object)

SetResourceObject

public boolean SetResourceObject(GlgObject object,
                                 java.lang.String name,
                                 GlgObject data_object)
Sets the new value of the object's attribute. This method is used for attaching Custom Property objects, aliases and history objects.

Parameters:
object - Object whose attribute to set
name - Attribute name
data_object - GlgObject to attach.
Returns:
true on success

ConstrainObject

public boolean ConstrainObject(GlgObject from_object,
                               GlgObject to_object)
Constrains the attribute object.

Parameters:
from_object - Object to constrain
to_object - The attribute object to constrain to
Returns:
true on success

UnconstrainObject

public boolean UnconstrainObject(GlgObject object)
Unconstrains the attribute object.

Parameters:
object - Object to unconstrain
Returns:
true on success

SuspendObject

public GlgObject SuspendObject(GlgObject object)
Suspends the object for editing. This function must be called before adding a transformation or constraining attributes of the object whose object hierarchy has been setup (the object has been drawn).

Parameters:
object - Object to suspend
Returns:
Suspend information (GlgObject) to be used as a suspend_info parameter in a subsequent call to the ReleaseObject method.

ReleaseObject

public void ReleaseObject(GlgObject object,
                          GlgObject suspend_info)
Releases the object after suspending for editing.

Parameters:
object - Object to release
suspend_info - Returned value of a previous call to SuspendObject

GetParent

public GlgObject GetParent(GlgObject object)
ADVANCED: Returns the object's parent(s). Returns the object's parent or a group containing all parents if the object has more then one parent. Use GetParentNum method to determine the type of the return value. Drawn geometrical parents always have a single parent.

Parameters:
object - Object to query
Returns:
Object parent or group of parents.

Inverse

public void Inverse(GlgObject container)
Reverses the order of the objects in the container.

Parameters:
container - Container object to inverse.

GetDResource

public double GetDResource(GlgObject object,
                           java.lang.String name)
Returns value of a D (double) resource.

Parameters:
object - Object to query
name - Resource name
Returns:
Resource value

GetSResource

public java.lang.String GetSResource(GlgObject object,
                                     java.lang.String name)
Returns value of an S (string) resource.

Parameters:
object - Object to query
name - Resource name
Returns:
Resource value

GetGResource

public GlgPoint GetGResource(GlgObject object,
                             java.lang.String name)
Returns value of an G (color or point) resource.

Parameters:
object - Object to query
name - Resource name
Returns:
Resource value

GetXResource

public double GetXResource(GlgObject object,
                           java.lang.String name)
Returns the X value of a G (geometrical or color) resource.

Parameters:
object - Object to query
name - Resource name
Returns:
Resource value

GetYResource

public double GetYResource(GlgObject object,
                           java.lang.String name)
Returns the Y value of a G (geometrical or color) resource.

Parameters:
object - Object to query
name - Resource name
Returns:
Resource value

GetZResource

public double GetZResource(GlgObject object,
                           java.lang.String name)
Returns the Z value of a G (geometrical or color) resource.

Parameters:
object - Object to query
name - Resource name
Returns:
Resource value

SetDResource

public boolean SetDResource(GlgObject object,
                            java.lang.String name,
                            double value)
Sets value of a D (double) resource.

Parameters:
object - Object whose resource to set
name - Resource name
value - Resource value
Returns:
true on success

SetSResource

public boolean SetSResource(GlgObject object,
                            java.lang.String name,
                            java.lang.String value)
Sets value of an S (string) resource.

Parameters:
object - Object whose resource to set
name - Resource name
value - Resource value
Returns:
true on success

SetGResource

public boolean SetGResource(GlgObject object,
                            java.lang.String name,
                            double value1,
                            double value2,
                            double value3)
Sets value of a G (geometrical or color) resource.

Parameters:
object - Object whose resource to set
name - Resource name
value1 - The first value of the XYZ or RGB value triplet.
value2 - The second value of the XYZ or RGB value triplet.
value3 - The third value of the XYZ or RGB value triplet.
Returns:
true on success

Update

public void Update(GlgObject object)
Updates the drawing with the latest resource values.

Parameters:
object - Viewport object to update

Print

public boolean Print(GlgObject object,
                     java.lang.String filename,
                     double x,
                     double y,
                     double width,
                     double height,
                     boolean portrait,
                     boolean stretch)
Prints the viewport's drawing and saves it in a PostScript file.

Parameters:
object - Viewport object to print
filename - Filename
x - The X coordinate of the lower left corner of the postcript output on a page in GLG coordinates [-1000;1000].
y - The Y coordinate of the lower left corner of the postcript output on a page in GLG coordinates [-1000;1000].
width - The width of the postcript output on a page in GLG coordinates [-1000;1000].
height - The height of the postcript output on a page in GLG coordinates [-1000;1000].
portrait - Orientation: true for portrait
stretch - Preserving X/Y ratio: true to stretch, false to preserve.

SetResourceFromObject

public boolean SetResourceFromObject(GlgObject object,
                                     java.lang.String name,
                                     GlgObject ovalue)
Sets value of the data or matrix resource to the value of the data object.

Parameters:
object - Object whose resource to set
name - Resource name
ovalue - Glg data object proving a value (must match resource's data type)
Returns:
true on success

SetSResourceFromD

public boolean SetSResourceFromD(GlgObject object,
                                 java.lang.String name,
                                 java.lang.String format,
                                 double value)
Sets value of an S (string) resource from a double value, converting the value into a string using a C-style format.

Parameters:
object - Object whose resource to set
name - Resource name
format - C-style format (for example, "%.2lf")
value - Value
Returns:
true on success

HasResourceObject

public boolean HasResourceObject(GlgObject object,
                                 java.lang.String name)
Checks for the existence of the resource object

Parameters:
object - Object whose resources to search
name - Resource name
Returns:
true on success

GetNumParents

public int GetNumParents(GlgObject object)
ADVANCED: Returns the number of object's parents. Used to determine the type of the return value of the GetParent method.

Parameters:
object - Object to query
Returns:
number object's parents

SetZoom

public boolean SetZoom(java.lang.String res_name,
                       char type,
                       double value)
Programmatic interface for the integrated zoom and pan features. Zooms or pans the bean's drawing by the specified amount. If the res_name parameter is not null, the children viewport of the drawing with the name specified by the res_name parameter is zoomed or panned. The type may be one of the following: 'u' - pan up (default amount is 1/2 of the window height). 'd' - pan down (default amount is 1/2 of the window height). 'l' - pan left (default amount is 1/2 of the window width). 'r' - pan right (default amount is 1/2 of the window width). 'i' - zoom in (default zoom scale is 2 ). 'o' - zoom out (default zoom scale is 1/2 ). 'U' - pan the drawing all the way up 'D' - pan the drawing all the way down 'L' - pan the drawing all the way to the left 'R' - pan the drawing all the way to the right 'x' - pan horizontally by the distance in screen coordinates 'y' - pan vertically by the distance in screen coordinates 'X' - pan horizontally by the distance in world coordinates 'Y' - pan vertically by the distance in world coordinates 'f' - fit the drawing to the window 'F' - fit the area of drawing defined by an object named GlgFitArea to the window 'n' - reset any zoom and pan 't' - start ZoomTo mode 'T' - start custom ZoomTo mode 'e' - abort ZoomTo mode in progress (if any) The value specifies the amount to zoom or pan by (when the value of 0 is passed, the default value is used). For pan operations, the value is expressed in the fractions of the screen size (for example, using 2/3 as the value will pan by 2/3 of the screen width or height). For zoom operations, the value defines the zoom scale (for example, using 5 as the value will zoom in or out by the factor of 5). The value is ignored in Reset, Start ZoomTo or Abort ZoomTo modes. The method returns false if the zoom factor or pan amount is too big and would result in the overflow of the integer values used for drawing primitives by the windowing system, otherwise true is returned.


IsDemoExt

public boolean IsDemoExt()
Returns true if the Evaluation Version of the Extended API is used.


SetInputUpdate

public boolean SetInputUpdate(boolean update)
Is invoked with false to supress default automatic updates on input events. Returns the old setting of the variable.


AddListener

public java.lang.Object AddListener(int listener_type,
                                    java.lang.Object listener)
Adds event listener to the bean. Only a single event listener for each of the listener types is supported. Setting a new event listener overrides any previous settings. It also disables the corresponding bean callback, so the application must use only one type of the event handling: either the callback or the listener. Adding Trace listeners must be done before loading bean's drawing.

Parameters:
listener_type - The type of the listener to add. May be one of the following: GlgObject.INPUT_CB, GlgObject.SELECT_CB, GlgObject.TRACE_CB, GlgObject.TRACE2_CB, GlgObject.READY_CB, GlgObject.H_CB or GlgObject.V_CB.
listener - The listener to be added. Must implement one of the matching GlgInputListener, GlgSelectListener, GlgTraceListener, GlgReadyListener, GlgHListener or GlgVListener interfaces. null value may be used to remove a listener for the events specified by the list_type parameter.
Returns:
Previous listener

InputCallback

public void InputCallback(GlgObject vp,
                          GlgObject message_obj)
Input callback. This method is invoked to handle user interaction with input objects and may be overridden by subclasses to handle custom interaction logic. An input listener can be used as an alternative.

Specified by:
InputCallback in interface GlgInputListener
Parameters:
vp - Top-level viewport object of the input listener.
message_obj - Message object containing input event information. Use GetResource methods to extract detailed event information.

SelectCallback

public void SelectCallback(GlgObject vp,
                           java.lang.Object[] name_array,
                           int button)
Select callback. This method is invoked to handle object selection and may be overridden by subclasses to handle custom interaction logic. A select listener can be used as an alternative.

Specified by:
SelectCallback in interface GlgSelectListener
Parameters:
vp - Top-level viewport object of the selection listener.
name_array - Null-terminated array of names of all selected objects, including a complete path name.
button - The mouse button that was pressed to select objects.

TraceCallback

public void TraceCallback(GlgObject top_viewport,
                          GlgTraceData trace_info)
Trace callback. This method is invoked to handle any events in a Glg drawing and may be overridden by subclasses to handle custom event handling logic. A trace listener can be used as an alternative. The method is invoked BEFORE the event is processed.

Specified by:
TraceCallback in interface GlgTraceListener
Parameters:
top_viewport - Top-level viewport object.
trace_info - GlgTraceData object containing detailed event information.

Trace2Callback

public void Trace2Callback(GlgObject top_viewport,
                           GlgTraceData trace_info)
Trace2 callback. This method is invoked to handle any events in a Glg drawing and may be overridden by subclasses to handle custom event handling logic. A trace2 listener can be used as an alternative. The method is invoked AFTER the event is processed.

Parameters:
top_viewport - Top-level viewport object.
trace_info - GlgTraceData object containing detailed event information.

ReadyCallback

public void ReadyCallback(GlgObject viewport)
Ready callback. This method is invoked when the bean has finished initializing and loading its drawing. This method may be overridden by subclasses to provide a custom bean initialization.

Specified by:
ReadyCallback in interface GlgReadyListener
Parameters:
viewport - The viewport object of the bean's drawing.

HCallback

public void HCallback(GlgObject viewport)
H callback. This method is invoked after the drawing was loaded but before the hierarchy setup (before graphs create their datasamples). It may be used for setting initial parameters of the loaded drawing, which control number of instances to be created (number of samples and labels) as well as other parameters of the datasample's and label's templates (ranges, initial values, etc.)

Specified by:
HCallback in interface GlgHListener

VCallback

public void VCallback(GlgObject viewport)
V callback. This method is invoked after the drawing hierarchy has been setup (graph's datasamples already created) but before the drawing is painted for the first time. This method may be used to fill graphs with initial data.

Specified by:
VCallback in interface GlgVListener

Glg Toolkit