visad.browser
Class GMCWidget
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- java.awt.Panel
-
- visad.browser.Widget
-
- visad.browser.GMCWidget
-
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible
public class GMCWidget extends Widget implements java.awt.event.ActionListener, java.awt.event.ItemListener
A widget that allows users to control graphics mode parameters.- See Also:
- Serialized Form
-
-
Field Summary
-
Constructor Summary
Constructors Constructor and Description GMCWidget()Constructs a new GMCWidget.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidactionPerformed(java.awt.event.ActionEvent e)Handles TextField changes.intgetCurvedSize()Gets the curved size.floatgetLineWidth()Gets the value of the line width text field.booleangetMissingTransparent()Gets whether missing values are transparent.booleangetPointMode()Gets the value of the point mode checkbox;floatgetPointSize()Gets the value of the point size text field.intgetPolygonMode()Gets the polygon mode.intgetProjectionPolicy()Gets the projection policy.java.lang.StringgetSaveString()Gets a string representing this widget's current state.booleangetScaleEnable()Gets the value of the scale enable checkbox.booleangetTextureEnable()Gets the value of the texture enable checkbox.intgetTransparencyMode()Gets the transparency mode.voiditemStateChanged(java.awt.event.ItemEvent e)Handles Checkbox changes.static voidmain(java.lang.String[] args)Tests GMCWidget.voidsetCurvedSize(int cs)Sets the curved size.voidsetLineWidth(float lw)Programmatically sets the line width text field.voidsetMissingTransparent(boolean mt)Sets whether missing values are transparent.voidsetPointMode(boolean pm)Programmatically sets the point mode checkbox.voidsetPointSize(float ps)Programmatically sets the point size text field.voidsetPolygonMode(int pm)Sets the polygon mode.voidsetProjectionPolicy(int pp)Sets the projection policy.voidsetSaveString(java.lang.String save)Reconstructs this widget's state using the specified save string.voidsetScaleEnable(boolean se)Programmatically sets the scale enabled checkbox.voidsetTextureEnable(boolean tm)Programmatically sets the texture mapping checkbox.voidsetTransparencyMode(int tm)Sets the transparency mode.-
Methods inherited from class visad.browser.Widget
addWidgetListener, containedIn, notifyListeners, removeWidgetListener
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Method Detail
-
getLineWidth
public float getLineWidth()
Gets the value of the line width text field.
-
setLineWidth
public void setLineWidth(float lw)
Programmatically sets the line width text field.
-
getPointSize
public float getPointSize()
Gets the value of the point size text field.
-
setPointSize
public void setPointSize(float ps)
Programmatically sets the point size text field.
-
getPointMode
public boolean getPointMode()
Gets the value of the point mode checkbox;
-
setPointMode
public void setPointMode(boolean pm)
Programmatically sets the point mode checkbox.
-
getTextureEnable
public boolean getTextureEnable()
Gets the value of the texture enable checkbox.
-
setTextureEnable
public void setTextureEnable(boolean tm)
Programmatically sets the texture mapping checkbox.
-
getScaleEnable
public boolean getScaleEnable()
Gets the value of the scale enable checkbox.
-
setScaleEnable
public void setScaleEnable(boolean se)
Programmatically sets the scale enabled checkbox.
-
getTransparencyMode
public int getTransparencyMode()
Gets the transparency mode.
-
setTransparencyMode
public void setTransparencyMode(int tm)
Sets the transparency mode.
-
getProjectionPolicy
public int getProjectionPolicy()
Gets the projection policy.
-
setProjectionPolicy
public void setProjectionPolicy(int pp)
Sets the projection policy.
-
getPolygonMode
public int getPolygonMode()
Gets the polygon mode.
-
setPolygonMode
public void setPolygonMode(int pm)
Sets the polygon mode.
-
getMissingTransparent
public boolean getMissingTransparent()
Gets whether missing values are transparent.
-
setMissingTransparent
public void setMissingTransparent(boolean mt)
Sets whether missing values are transparent.
-
getCurvedSize
public int getCurvedSize()
Gets the curved size.
-
setCurvedSize
public void setCurvedSize(int cs)
Sets the curved size.
-
getSaveString
public java.lang.String getSaveString()
Gets a string representing this widget's current state.- Specified by:
getSaveStringin classWidget
-
setSaveString
public void setSaveString(java.lang.String save)
Reconstructs this widget's state using the specified save string.- Specified by:
setSaveStringin classWidget
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
Handles TextField changes.- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent e)
Handles Checkbox changes.- Specified by:
itemStateChangedin interfacejava.awt.event.ItemListener
-
main
public static void main(java.lang.String[] args)
Tests GMCWidget.
-
-
DMelt 3.0 © DataMelt by jWork.ORG