Class Paral

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--Shape
                          |
                          +--Shape2D
                                |
                                +--Point
                                      |
                                      +--Paral
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class Paral
extends Point

See Also:
Serialized Form

Field Summary
protected  java.awt.Color color
           
protected  double heigth
           
protected  double length
           
protected  double weigth
           
 
Fields inherited from class Point
x, y
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Paral()
           
Paral(double w, double h, double l, int a, int b)
           
Paral(double w, double h, double l, int a, int b, java.awt.Color color)
           
 
Method Summary
 double area()
           
 void draw(java.awt.Graphics g, java.awt.Color c)
           
 double getHeigth()
           
 double getLength()
           
 java.lang.String getName()
           
 double getWeigth()
           
 void paint(java.awt.Graphics g)
           
 void print(java.awt.Graphics g, int x, int y)
           
 void setLong(double w, double h, double l, java.awt.Color col)
           
 java.lang.String toString()
           
 double volume()
           
 
Methods inherited from class Point
action, getColor, getX, getY, init, setPoint
 
Methods inherited from class Shape2D
print
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, 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, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

heigth

protected double heigth

weigth

protected double weigth

length

protected double length

color

protected java.awt.Color color
Constructor Detail

Paral

public Paral()

Paral

public Paral(double w,
             double h,
             double l,
             int a,
             int b)

Paral

public Paral(double w,
             double h,
             double l,
             int a,
             int b,
             java.awt.Color color)
Method Detail

paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class Point

setLong

public void setLong(double w,
                    double h,
                    double l,
                    java.awt.Color col)

getWeigth

public double getWeigth()

getHeigth

public double getHeigth()

getLength

public double getLength()

area

public double area()
Overrides:
area in class Shape2D

volume

public double volume()
Overrides:
volume in class Shape

toString

public java.lang.String toString()
Overrides:
toString in class Point

getName

public java.lang.String getName()
Overrides:
getName in class Point

draw

public void draw(java.awt.Graphics g,
                 java.awt.Color c)
Overrides:
draw in class Point

print

public void print(java.awt.Graphics g,
                  int x,
                  int y)
Overrides:
print in class Point