jhplot.shapes
Class Rectan

java.lang.Object
  extended by jhplot.shapes.HShape
      extended by jhplot.shapes.Rectan
All Implemented Interfaces:
java.io.Serializable

public class Rectan
extends HShape

Draw a rectangle using the user or NDC coordinate system

See Also:
Serialized Form

Field Summary
 
Fields inherited from class jhplot.shapes.HShape
ARROW, CIRCLE, ELLIPSE, IMAGE, LINE, POLYGON, RECTAN, TEXT
 
Constructor Summary
Rectan(double X1, double Y1, double X2, double Y2)
          Build a rectangle.
Rectan(double X1, double Y1, double X2, double Y2, java.awt.Stroke strock, java.awt.Color color)
          Build a rectangle
 
Method Summary
 void doc()
          Show online documentation.
 java.lang.String toString()
           
 
Methods inherited from class jhplot.shapes.HShape
contains, getColor, getFill, getPosition, getPositionCoordinate, getScaledPosition, getSettings, getStroke, getTransparency, getWhoAm, setColor, setDashed, setDotted, setFill, setPosCoord, setPositionCoordinate, setStroke, setTransparency, setWhoAm, updateSettings
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Rectan

public Rectan(double X1,
              double Y1,
              double X2,
              double Y2,
              java.awt.Stroke strock,
              java.awt.Color color)
Build a rectangle

Parameters:
X1 - X start position
Y1 - Y start position
X2 - width
Y2 - Y hight
strock - Stroke to draw it
color - Color

Rectan

public Rectan(double X1,
              double Y1,
              double X2,
              double Y2)
Build a rectangle. Color is black, a deafult stroke.

Parameters:
X1 - X start position
Y1 - Y start position
X2 - width
Y2 - hight
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
a string representation of this label, the text.

doc

public void doc()
Show online documentation.



jHepWork 2.8 (©) S.Chekanov