jhplot
Class SHPlot3D

java.lang.Object
  extended by jhplot.GHPanel
      extended by jhplot.GHFrame
          extended by jhplot.HPlot3D
              extended by jhplot.SHPlot3D
All Implemented Interfaces:
java.awt.event.ComponentListener, java.util.EventListener

public class SHPlot3D
extends HPlot3D

A class to create a 3D canvas to display H2D and F2D objects. Unlike HPlot3D, it creates a singleton, i.e only one instance is allowed


Field Summary
 
Fields inherited from class jhplot.HPlot3D
set
 
Method Summary
static SHPlot3D getCanvas()
          Construct a HPlot3D canvas with a plot with the default size 600x400.
static SHPlot3D getCanvas(java.lang.String title)
          Construct a HPlot3D canvas with a plot with the default size 600x400.
static SHPlot3D getCanvas(java.lang.String title, int xsize, int ysize)
          Construct a HPlot3D canvas with a single plot.
static SHPlot3D getCanvas(java.lang.String title, int xsize, int ysize, int n1, int n2)
          Create HPlot3D canvas with several plots.
static void reloadCanvas()
          Reload the canvas by removing components
 
Methods inherited from class jhplot.HPlot3D
clear, clear, clearAll, close, draw, draw, draw, draw, draw, draw, draw, draw, draw, getAxesFontColor, getAxisFont, getColorMode, getDistance, getElevationAngle, getFrameColor, getLabelOffset, getPenWidthAxes, getRotationAngle, getScaling, isSurface, quit, setAxesFontColor, setAxisFont, setBars, setBoxColor, setBoxed, setColorFill, setColorLines, setColorMode, setContour, setDensity, setDisplayXY, setDisplayZ, setDistance, setElevationAngle, setFill, setFrameColor, setLabelColor, setLabelFont, setLabelFontColor, setLabelOffsetX, setLabelOffsetY, setLabelOffsetZ, setNameX, setNameY, setPenWidthAxes, setRange, setRange, setRangeZ, setRotation, setRotationAngle, setScaling, setSurface, setTicFont, setTicOffset, update, update, updateAll, updateData, updateData, visible, visible
 
Methods inherited from class jhplot.GHFrame
addGraph, cd, componentHidden, componentMoved, componentShown, getCdX, getCdY, getFrame, getHTMLUrl, getNtotX, getNtotY, setPlotsNum, updateFrame
 
Methods inherited from class jhplot.GHPanel
addComp, componentResized, export, exportDialog, exportImage, getCanvasPanel, getMarginBackground, getMarginPanelBottom, getMarginPanelCenter, getMarginPanelLeft, getMarginPanelRight, getMarginPanelTop, getMarginSizeBottom, getMarginSizeLeft, getMarginSizeRight, getMarginSizeTop, getSizeX, getSizeY, getTextBottom, getTextBottomColor, getTextBottomColorBack, getTextBottomFont, getTextLeft, getTextLeftColor, getTextLeftColorBack, getTextLeftFont, getTextPosBottomX, getTextPosBottomY, getTextPosLeftX, getTextPosLeftY, getTextPosRightX, getTextPosRightY, getTextPosTopX, getTextPosTopY, getTextRight, getTextRightColor, getTextRightColorBack, getTextRightFont, getTextRotationBottom, getTextRotationLeft, getTextRotationRight, getTextRotationTop, getTextTop, getTextTopColor, getTextTopColorBack, getTextTopFont, isBorderShown, printGraph, resetMargins, setGTitle, setGTitle, setGTitle, setGTitle, setGTitle, setMarginBackground, setMarginSizeBottom, setMarginSizeLeft, setMarginSizeRight, setMarginSizeTop, setSizePanel, setTextBottom, setTextBottom, setTextBottom, setTextBottom, setTextBottomColorBack, setTextLeft, setTextLeft, setTextLeft, setTextLeft, setTextLeftColorBack, setTextPosBottomX, setTextPosBottomY, setTextPosLeftX, setTextPosLeftY, setTextPosRightX, setTextPosRightY, setTextPosTopX, setTextPosTopY, setTextRight, setTextRight, setTextRight, setTextRight, setTextRightColorBack, setTextRotationBottom, setTextRotationLeft, setTextRotationRight, setTextRotationTop, setTextTop, setTextTop, setTextTop, setTextTopColorBack, showBorders
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCanvas

public static SHPlot3D getCanvas(java.lang.String title,
                                 int xsize,
                                 int ysize,
                                 int n1,
                                 int n2)
Create HPlot3D canvas with several plots. If canvas exits, it will be cleared.

Parameters:
title - Title
xsize - size in x direction
ysize - size in y direction
n1 - number of plots/graphs in x
n2 - number of plots/graphs in y

getCanvas

public static SHPlot3D getCanvas(java.lang.String title,
                                 int xsize,
                                 int ysize)
Construct a HPlot3D canvas with a single plot. If canvas exits, it will be cleared.

Parameters:
title - Title for the canvas
xs - size in x
ys - size in y

getCanvas

public static SHPlot3D getCanvas(java.lang.String title)
Construct a HPlot3D canvas with a plot with the default size 600x400. If canvas exits, it will be cleared.

Parameters:
title - Title

getCanvas

public static SHPlot3D getCanvas()
Construct a HPlot3D canvas with a plot with the default size 600x400. If canvas exits, it will be cleared.


reloadCanvas

public static void reloadCanvas()
Reload the canvas by removing components



jHepWork 1.1 (C) Chekanov