public class HVisAd extends JFrame
Window.TypeComponent.BaselineResizeBehaviorEXIT_ON_CLOSECROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
HVisAd()
Construct a 3D canvas with a plot with the default parameters.
|
HVisAd(String title)
Construct a 3D canvas with a plot with the default parameters.
|
HVisAd(String title,
boolean is3D)
Create 2D/3D canvas based on VisAd classes.
|
HVisAd(String title,
int xsize,
int ysize)
Create 3D canvas based on VisAd classes.
|
HVisAd(String title,
int xsize,
int ysize,
boolean is3D)
Create 2D/3D canvas based on VisAd classes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the current graph including graph settings.
|
void |
close()
Close the canvas (and dispose all components) Note: a memory leak is
found - no time to study it.
|
void |
doc()
Show online documentation.
|
void |
draw(float[][] ntuple)
Draw 3D data points.
|
void |
draw(float[][] ntuple,
String title)
Draw 3D data points.
|
void |
draw(P2D p)
Draw 3D data points.
|
void |
export(String filename)
Export graph into an image file.
|
void |
export(String filename,
int width,
int height)
Export graph into an image file.
|
visad.GraphicsModeControl |
getControl()
Get control of this display.
|
visad.DisplayImpl |
getDisplay()
Get current display.
|
visad.MouseBehavior |
getMouse()
Get mouse behaviour.
|
visad.ProjectionControl |
getProjection()
Get current projection.
|
visad.DisplayRenderer |
getRender()
Get render of this display.
|
double[] |
getRotation()
Get the rotation angles in degrees.
|
double |
getScaling()
Get the scaling.
|
double[] |
getTranslation()
Get the translation.
|
void |
help() |
ArrayList<visad.AxisScale> |
setAxes(String nameX,
double minX,
double maxX,
String nameY,
double minY,
double maxY,
String nameZ,
double minZ,
double maxZ)
Attach axes to the canvas, and snap them o the box.
|
void |
setRotation(double rotX,
double rotY,
double rotZ)
Set the rotation angles in degrees.
|
void |
setScaling(double scale)
Set the scaling of the box.
|
void |
setTranslation(double X,
double Y,
double Z)
Set the translation (0-1 values)
|
void |
update()
Update the canvas
|
void |
visible()
Show the canvas
|
void |
visible(boolean vs)
Set the canvas frame visible or not
|
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validateaction, 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, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFont, postEventpublic HVisAd(String title, int xsize, int ysize, boolean is3D)
xsize - size in x directionysize - size in y directiontitle - name of this canvas.is3D - set to true for 3D canvas. If false, assume 2D.public HVisAd(String title, int xsize, int ysize)
xsize - size in x directionysize - size in y directiontitle - name of this canvas.public HVisAd(String title, boolean is3D)
title - name of this canvas.is3D - set to true for 3D canvas. If false, assume 2D.public HVisAd()
public HVisAd(String title)
title - name of this canvas.public visad.DisplayImpl getDisplay()
public void setScaling(double scale)
scale - factorpublic double getScaling()
public void setRotation(double rotX,
double rotY,
double rotZ)
rotX - rotation in XrotY - rotation in YrotZ - rotation in Zpublic void setTranslation(double X,
double Y,
double Z)
X - translate in XY - translate in YZ - translate in Zpublic double[] getRotation()
public double[] getTranslation()
public visad.ProjectionControl getProjection()
public visad.MouseBehavior getMouse()
public visad.GraphicsModeControl getControl()
public visad.DisplayRenderer getRender()
public void clear()
public void close()
public void draw(P2D p)
p - input arraypublic void draw(float[][] ntuple)
p3d - input arraypublic void draw(float[][] ntuple,
String title)
p3d - input arraytitle - titlepublic ArrayList<visad.AxisScale> setAxes(String nameX, double minX, double maxX, String nameY, double minY, double maxY, String nameZ, double minZ, double maxZ)
nameX - Label for X axisminX - min value of XmaxX - max value of XnameY - Label for Y axisminY - min value of YmaxY - max value of YnameZ - Label of Z axisminZ - min value on ZmaxZ - max value on Zpublic void visible(boolean vs)
vs - (boolean) true: visible, false: not visiblepublic void update()
public void visible()
public void doc()
public void export(String filename)
file - name of the imagepublic void export(String filename, int width, int height)
filename - file namewidth - widthheight - hightpublic void help()
DMelt 2.0 © DataMelt by jWork.ORG