jhplot
Class HPlot3D

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

public class HPlot3D
extends GHPanel

This is a main canvas class to display histograms and functions in 3D. Extends GHPanel


Constructor Summary
HPlot3D(java.lang.String title, int xsize, int ysize)
          Create a HPlot3D canvas
 
Method Summary
 void close()
          Same as distroy
 void distroy()
          Distroy the canvas
 void draw(F2D f1)
          Draw F2D function
 void draw(F2D f1, F2D f2)
          Draw two F2D functions on the same plot
 void draw(F2D h2, H2D h1)
          Draw F2D and H2D on the same plot
 void draw(H2D h)
          Draw H2D histogram
 void draw(H2D h1, F2D h2)
          Draw H2D histogram and F2D function on the same plot
 void draw(H2D h1, H2D h2)
          Plot 2 H2D histograms on the same plot
 void setBoxColor(java.awt.Color a)
          Set color of the box
 void setColorMode(int a)
          Sets the color mode
 void setContour()
          Set Contour type of plot
 void setDensity()
          Set density type of plot
 void setDisplayXY(boolean a)
          Display or not X and Y
 void setDisplayZ(boolean a)
          Display or not title for Z
 void setLabelColor(java.awt.Color a)
          Set color of the label
 void setLabelFont(java.awt.Font a)
          Set Font for the labels
 void setLabelOffset(double a)
          Set label offset
 void setNameX(java.lang.String a)
          Set a name for X axis
 void setNameY(java.lang.String a)
          Set a name for Y axis
 void setRanges(double X1, double X2, double Y1, double Y2)
          Set range fo the 3D plot
 void setRotation(boolean a)
          Rotate or not HPlot3D
 void setSurface()
          Set surface type of plot
 void setTicFont(java.awt.Font a)
          Set tic fonts
 void setTicOffset(double a)
          Set tic offset
 void update()
          Update thje graphics
 void visible(boolean vs)
          Show or not the canvas
 
Methods inherited from class jhplot.GHPanel
addComp, addGraph, componentHidden, componentMoved, componentResized, componentShown, 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
 

Constructor Detail

HPlot3D

public HPlot3D(java.lang.String title,
               int xsize,
               int ysize)
Create a HPlot3D canvas

Parameters:
title - Title of the canvas
xsize - Size in X
ysize - Size in Y
Method Detail

visible

public void visible(boolean vs)
Show or not the canvas

Parameters:
vs - true if it is shown

distroy

public void distroy()
Distroy the canvas


close

public void close()
Same as distroy


setNameX

public void setNameX(java.lang.String a)
Set a name for X axis

Parameters:
a - Name of the label for X

setNameY

public void setNameY(java.lang.String a)
Set a name for Y axis

Parameters:
a - Name of the label for Y

setLabelFont

public void setLabelFont(java.awt.Font a)
Set Font for the labels

Parameters:
a - Font

setLabelColor

public void setLabelColor(java.awt.Color a)
Set color of the label

Parameters:
a -

setTicFont

public void setTicFont(java.awt.Font a)
Set tic fonts

Parameters:
a - Font

setDisplayXY

public void setDisplayXY(boolean a)
Display or not X and Y

Parameters:
a - true if it should be shown

setDisplayZ

public void setDisplayZ(boolean a)
Display or not title for Z

Parameters:
a - true, if it is shown

setRotation

public void setRotation(boolean a)
Rotate or not HPlot3D

Parameters:
a - true if it should be rotated

setContour

public void setContour()
Set Contour type of plot


setDensity

public void setDensity()
Set density type of plot


setSurface

public void setSurface()
Set surface type of plot


setBoxColor

public void setBoxColor(java.awt.Color a)
Set color of the box

Parameters:
a - Color

setColorMode

public void setColorMode(int a)
Sets the color mode

Parameters:
a - color mode: 0: WIREFRAME 1: HIDDEN 2: SPECTRUM IN COLOR 3: GRAYSCALE 4: DUALSHADES

update

public void update()
Update thje graphics


setTicOffset

public void setTicOffset(double a)
Set tic offset

Parameters:
a - tic offset

setLabelOffset

public void setLabelOffset(double a)
Set label offset

Parameters:
a - label offset

setRanges

public void setRanges(double X1,
                      double X2,
                      double Y1,
                      double Y2)
Set range fo the 3D plot

Parameters:
X1 - Min in X
X2 - Max in X
Y1 - Min in Y
Y2 - Max in Y

draw

public void draw(H2D h)
Draw H2D histogram

Parameters:
h - H2D histogram

draw

public void draw(H2D h1,
                 H2D h2)
Plot 2 H2D histograms on the same plot

Parameters:
h1 - first H2D histogram
h2 - second H2D histogram

draw

public void draw(F2D f1)
Draw F2D function

Parameters:
f1 - F2D function

draw

public void draw(F2D f1,
                 F2D f2)
Draw two F2D functions on the same plot

Parameters:
f1 - first F2D function
f2 - second F2D function

draw

public void draw(H2D h1,
                 F2D h2)
Draw H2D histogram and F2D function on the same plot

Parameters:
h1 - H2D histogram
h2 - F2D function

draw

public void draw(F2D h2,
                 H2D h1)
Draw F2D and H2D on the same plot

Parameters:
h2 - F2D function
h1 - H2D histogram


jHepWork 1.1 (C) Chekanov