devel {Deducer}R Documentation

Deducer's plug-in development tools

Description

functions pertaining to GUI development

Usage

addComponent(container, component, top, right, bottom, 
	left, topType = "REL", rightType = "REL", bottomType = "REL", 
	leftType = "REL")
getSize(component)
setSize(component,width,height)
execute(cmd)

ButtonGroupWidget 
CheckBoxesWidget 
DeducerMain 
JLabel 
RDialog
SimpleRDialog
SimpleRSubDialog 
SingleVariableWidget 
SliderWidget 
TextAreaWidget
VariableListWidget 
VariableSelectorWidget
ComboBoxWidget
RDialogMonitor
ListWidget
AddRemoveButtons
TextFieldWidget
ObjectChooserWidget

Arguments

container

A Java Swing container with Anchor layout

component

a Java Swing component

top

location of top of component 0 - 1000

right

location of right of component 0 - 1000

bottom

location of bottom of component 0 - 1000

left

location of left of component 0 - 1000

topType

Type of constraint on top of component. Can be "REL", "ABS", or "NONE"

rightType

Type of constraint on right of component. Can be "REL", "ABS", or "NONE"

bottomType

Type of constraint on bottom of component. Can be "REL", "ABS", or "NONE"

leftType

Type of constraint on left of component. Can be "REL", "ABS", or "NONE"

height

new height of component or window in pixels

width

new width of component or window in pixels

cmd

the command to be executed

Details

addComponent adds a Java object of class Component to a container (usually an RDialog or SimpleRDialog). the location of the component is determined by the top, right, bottom, and left arguments, which are numbers between 1 and 1000 indicating the distance from either the top (or left) of the container, with 1000 indicating the opposite side of the container. Each side can be constrained in three different ways. If the Type is "REL", the side will scale proportional to the container when the container is resized. If it is "ABS", it is not rescaled. If it is "NONE", the location of that side is determined by the componet's preferred size, which can be set with the "setPreferedSize" method.

getSize gets the height and width

setSize sets the height and width

execute executes a character representing a command, as if it were entered into the console

The rest of the items are references to the Java classes of commonly used GUI components. see www.deducer.org for more details and usage.


[Package Deducer version 0.7-9 Index]