|
Glg Toolkit | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.genlogic.GlgJLWBean
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.
| 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 |
public GlgJLWBean()
| Method Detail |
public void layoutContainer(java.awt.Container a)
public void doLayout()
public void validate()
public void setBounds(int x,
int y,
int width,
int height)
public void addNotify()
public void removeNotify()
public java.awt.Dimension getMinimumSize()
public java.awt.Dimension getPreferredSize()
public java.lang.String getAppletInfo()
public java.lang.String[][] getParameterInfo()
public void start()
public void stop()
public void destroy()
public void resize_viewport(boolean call_set_bounds)
public java.applet.Applet SetParentApplet(java.applet.Applet applet)
applet - Applet to use as a parentpublic java.lang.String GetFullPath(java.lang.String filename)
filename - URL stringpublic void PrintToJavaConsole(java.lang.String message)
message - Message to be printed.public void SetDrawingURL(java.lang.String drawing_url)
public void SetDrawingFile(java.lang.String drawing_file)
public void SetDrawingName(java.lang.String drawing_name)
public void SetSetupDataURL(java.lang.String setup_data_url)
public void SetDataURL(java.lang.String data_url)
public void SetUpdatePeriod(double update_period)
public void SetTraceHRef(boolean value)
public void SetHRefTarget(java.lang.String target)
public void SetIgnoreErrors(boolean value)
public java.lang.String GetDrawingURL()
public java.lang.String GetDrawingFile()
public java.lang.String GetDrawingName()
public java.lang.String GetSetupDataURL()
public java.lang.String GetDataURL()
public double GetUpdatePeriod()
public boolean GetTraceHRef()
public java.lang.String GetHRefTarget()
public boolean GetIgnoreErrors()
public boolean GetJavaLog()
public void SetJavaLog(boolean value)
public boolean GetResourceLog()
public void SetResourceLog(boolean value)
public boolean GetAPILog()
public void SetAPILog(boolean value)
public java.lang.String GetHResource0()
public void SetHResource0(java.lang.String value)
public java.lang.String GetHResource1()
public void SetHResource1(java.lang.String value)
public java.lang.String GetHResource2()
public void SetHResource2(java.lang.String value)
public java.lang.String GetHResource3()
public void SetHResource3(java.lang.String value)
public java.lang.String GetHResource4()
public void SetHResource4(java.lang.String value)
public java.lang.String GetVResource0()
public void SetVResource0(java.lang.String value)
public java.lang.String GetVResource1()
public void SetVResource1(java.lang.String value)
public java.lang.String GetVResource2()
public void SetVResource2(java.lang.String value)
public java.lang.String GetVResource3()
public void SetVResource3(java.lang.String value)
public java.lang.String GetVResource4()
public void SetVResource4(java.lang.String value)
public boolean IsReady()
public double GetDResource(java.lang.String res_name)
res_name - Resource name
public java.lang.String GetSResource(java.lang.String res_name)
res_name - Resource name
public GlgPoint GetGResource(java.lang.String res_name)
res_name - Resource name
public double GetXResource(java.lang.String res_name)
res_name - Resource name
public double GetYResource(java.lang.String res_name)
res_name - Resource name
public double GetZResource(java.lang.String res_name)
res_name - Resource name
public boolean SetDResource(java.lang.String res_name,
double value)
res_name - Resource namevalue - Resource value
public boolean SetDResource(java.lang.String res_name,
double value,
boolean if_changed)
res_name - Resource namevalue - Resource valueif_changed - If set to true, the graphics will be redrawn only if
the new resource value is different from the old one.
public boolean SetSResource(java.lang.String res_name,
java.lang.String value)
res_name - Resource namevalue - Resource value
public boolean SetSResource(java.lang.String res_name,
java.lang.String value,
boolean if_changed)
res_name - Resource namevalue - Resource valueif_changed - If set to true, the graphics will be redrawn only if
the new resource value is different from the old one.
public boolean SetGResource(java.lang.String res_name,
double value1,
double value2,
double value3)
res_name - Resource namevalue1 - 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.
public boolean SetGResource(java.lang.String res_name,
double value1,
double value2,
double value3,
boolean if_changed)
res_name - Resource namevalue1 - 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.
public boolean HasResourceObject(java.lang.String res_name)
res_name - Resource name
public double GetDTag(java.lang.String tag_name)
tag_name - Tag name
public java.lang.String GetSTag(java.lang.String tag_name)
tag_name - Tag name
public boolean SetDTag(java.lang.String tag_name,
double value,
boolean if_changed)
tag_name - Tag namevalue - Tag valueif_changed - If set to true, the graphics will be redrawn only if
the new tag value is different from the old one.
public boolean SetSTag(java.lang.String tag_name,
java.lang.String value,
boolean if_changed)
tag_name - Tag namevalue - Tag valueif_changed - If set to true, the graphics will be redrawn only if
the new tag value is different from the old one.
public boolean SetGTag(java.lang.String tag_name,
GlgPoint gvalue,
boolean if_changed)
tag_name - Tag namegvalue - XYZ or RGB value tripletif_changed - If set to true, the graphics will be redrawn only if
the new tag value is different from the old one.
public boolean HasTagSource(java.lang.String tag_source)
tag_source - Tag source
public boolean HasTagName(java.lang.String tag_name)
tag_name - Tag name
public void Update()
public void Reset()
public void Bell()
public boolean Print(java.lang.String filename,
double x,
double y,
double width,
double height,
boolean portrait,
boolean stretch)
filename - Filenamex - 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 portraitstretch - Preserving X/Y ratio: true to stretch, false to preserve.
public java.lang.String CreateIndexedName(java.lang.String template_name,
int res_index)
public boolean IsDemo()
public GlgObject GetDrawingObject()
public GlgObject GetViewport()
public boolean SetDrawingObject(GlgObject drawing_object)
public boolean SetViewport(GlgObject viewport)
public GlgObject LoadWidget(java.lang.String filename,
int medium_type)
filename - Defines a drawing file or URL.medium_type - FILE or URL constant
public GlgObject LoadWidget(GlgObject object)
object - An object containing $Widget viewport
public void InitialDraw(GlgObject object)
public void SetupHierarchy(GlgObject object)
public void ResetHierarchy(GlgObject object)
public GlgObject CopyObject(GlgObject object)
public GlgObject CloneObject(GlgObject object,
int clone_type)
public GlgObject LoadObject(java.lang.String filename,
int medium_type)
filename - Defines a drawing file or URL.medium_type - FILE or URL constant
public boolean SaveObject(GlgObject object,
java.lang.String filename)
filename - Filenameobject - Object to save
public boolean AddObjectToTop(GlgObject container,
java.lang.Object object)
container - Container objectobject - Object to add
public boolean AddObjectToBottom(GlgObject container,
java.lang.Object object)
container - Container objectobject - Object to add
public boolean AddObjectAt(GlgObject container,
java.lang.Object object,
int index)
container - Container objectobject - Object to addindex - Position index
public boolean DeleteTopObject(GlgObject container)
container - Container object
public boolean DeleteBottomObject(GlgObject container)
container - Container object
public boolean DeleteObjectAt(GlgObject container,
int index)
container - Container objectindex - Index of the object to delete.
public boolean DeleteObject(GlgObject container,
java.lang.Object object)
container - Container objectobject - Object to delete.
public boolean ContainsObject(GlgObject container,
java.lang.Object object)
container - Container objectobject - The object to search for.
public java.lang.Object GetElement(GlgObject container,
int index)
container - Container objectindex - Position Index
public int GetIndex(GlgObject container,
java.lang.Object object)
container - Container objectobject - The object to search for.
public GlgObject GetNamedObject(GlgObject container,
java.lang.String name)
container - Container objectname - The element's name
public boolean ReorderElement(GlgObject container,
int old_index,
int new_index)
container - Container objectold_index - Index of the object to move.new_index - Index of the new object position.
public void SetStart(GlgObject container)
container - Container objectpublic java.lang.Object Iterate(GlgObject container)
container - Container object
public int GetSize(GlgObject container)
container - Container object
public boolean SetXform(GlgObject object,
GlgObject xform)
object - Object to attach transformation to.xform - Transformation to attach to the object.
public GlgObject GetResourceObject(GlgObject object,
java.lang.String name)
object - Object to searchname - Resource name
public java.lang.Object GetResource(GlgObject object,
java.lang.String name)
object - Object to searchname - Resource name
public boolean SetResourceObject(GlgObject object,
java.lang.String name,
GlgObject data_object)
object - Object whose attribute to setname - Attribute namedata_object - GlgObject to attach.
public boolean ConstrainObject(GlgObject from_object,
GlgObject to_object)
from_object - Object to constrainto_object - The attribute object to constrain to
public boolean UnconstrainObject(GlgObject object)
object - Object to unconstrain
public GlgObject SuspendObject(GlgObject object)
object - Object to suspend
public void ReleaseObject(GlgObject object,
GlgObject suspend_info)
object - Object to releasesuspend_info - Returned value of a previous call to SuspendObjectpublic GlgObject GetParent(GlgObject object)
object - Object to query
public void Inverse(GlgObject container)
container - Container object to inverse.
public double GetDResource(GlgObject object,
java.lang.String name)
object - Object to queryname - Resource name
public java.lang.String GetSResource(GlgObject object,
java.lang.String name)
object - Object to queryname - Resource name
public GlgPoint GetGResource(GlgObject object,
java.lang.String name)
object - Object to queryname - Resource name
public double GetXResource(GlgObject object,
java.lang.String name)
object - Object to queryname - Resource name
public double GetYResource(GlgObject object,
java.lang.String name)
object - Object to queryname - Resource name
public double GetZResource(GlgObject object,
java.lang.String name)
object - Object to queryname - Resource name
public boolean SetDResource(GlgObject object,
java.lang.String name,
double value)
object - Object whose resource to setname - Resource namevalue - Resource value
public boolean SetSResource(GlgObject object,
java.lang.String name,
java.lang.String value)
object - Object whose resource to setname - Resource namevalue - Resource value
public boolean SetGResource(GlgObject object,
java.lang.String name,
double value1,
double value2,
double value3)
object - Object whose resource to setname - Resource namevalue1 - 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.
public void Update(GlgObject object)
object - Viewport object to update
public boolean Print(GlgObject object,
java.lang.String filename,
double x,
double y,
double width,
double height,
boolean portrait,
boolean stretch)
object - Viewport object to printfilename - Filenamex - 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 portraitstretch - Preserving X/Y ratio: true to stretch, false to preserve.
public boolean SetResourceFromObject(GlgObject object,
java.lang.String name,
GlgObject ovalue)
object - Object whose resource to setname - Resource nameovalue - Glg data object proving a value (must match
resource's data type)
public boolean SetSResourceFromD(GlgObject object,
java.lang.String name,
java.lang.String format,
double value)
object - Object whose resource to setname - Resource nameformat - C-style format (for example, "%.2lf")value - Value
public boolean HasResourceObject(GlgObject object,
java.lang.String name)
object - Object whose resources to searchname - Resource name
public int GetNumParents(GlgObject object)
object - Object to query
public boolean SetZoom(java.lang.String res_name,
char type,
double value)
public boolean IsDemoExt()
public boolean SetInputUpdate(boolean update)
public java.lang.Object AddListener(int listener_type,
java.lang.Object listener)
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.
public void InputCallback(GlgObject vp,
GlgObject message_obj)
InputCallback in interface GlgInputListenervp - Top-level viewport object of the input listener.message_obj - Message object containing input event information.
Use GetResource methods to extract detailed event
information.
public void SelectCallback(GlgObject vp,
java.lang.Object[] name_array,
int button)
SelectCallback in interface GlgSelectListenervp - 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.
public void TraceCallback(GlgObject top_viewport,
GlgTraceData trace_info)
TraceCallback in interface GlgTraceListenertop_viewport - Top-level viewport object.trace_info - GlgTraceData object containing detailed event
information.
public void Trace2Callback(GlgObject top_viewport,
GlgTraceData trace_info)
top_viewport - Top-level viewport object.trace_info - GlgTraceData object containing detailed event
information.public void ReadyCallback(GlgObject viewport)
ReadyCallback in interface GlgReadyListenerviewport - The viewport object of the bean's drawing.public void HCallback(GlgObject viewport)
HCallback in interface GlgHListenerpublic void VCallback(GlgObject viewport)
VCallback in interface GlgVListener
|
Glg Toolkit | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||