mascoptLib.gui.views
Class Label

java.lang.Object
  |
  +--java.awt.Component
        |
        +--mascoptLib.gui.views.GObject
              |
              +--mascoptLib.gui.views.Label
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class Label
extends GObject

Label object.

Version:
Thu Mar 21 18:38:16 2002
Author:
bbongiov@bing.inria.fr
See Also:
Serialized Form

Field Summary
 
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
Label(mascoptLib.gui.views.GObject source, String[] lines, double ratioX, double ratioY)
          Create a label object.
Label(mascoptLib.gui.views.GObject source, String[] lines, double ratioX, double ratioY, Color color)
          Create a label object.
Label(mascoptLib.gui.views.GObject source, String[] lines, double ratioX, double ratioY, Color color, Color back, boolean transparent, int fontSize)
          Create a label object.
 
Method Summary
 Color getColor()
          Get the color of the label
 void paint(Graphics g)
          Patin the label
 void setColor(Color c)
           
 void setLocation(int x, int y)
          Deprecated. not coded !
 
Methods inherited from class mascoptLib.gui.views.GObject
repaint, translate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Label

public Label(mascoptLib.gui.views.GObject source,
             String[] lines,
             double ratioX,
             double ratioY)
Create a label object.

Parameters:
source - the object which have the label.
lines - the comment, which is a String
ratioX - the size in x
ratioY - the size in y

Label

public Label(mascoptLib.gui.views.GObject source,
             String[] lines,
             double ratioX,
             double ratioY,
             Color color)
Create a label object.

Parameters:
source - the object which have the label.
lines - the comment, which is a String
ratioX - the size in x
ratioY - the size in y
color - the color of the label

Label

public Label(mascoptLib.gui.views.GObject source,
             String[] lines,
             double ratioX,
             double ratioY,
             Color color,
             Color back,
             boolean transparent,
             int fontSize)
Create a label object.

Parameters:
source - the object which have the label.
lines - the comment, which is a String
ratioX - the size in x
ratioY - the size in y
color - the color of the label
back - the back color
transparent - if the label is transparent
fontSize - the font size
Method Detail

setLocation

public void setLocation(int x,
                        int y)
Deprecated. not coded !

Set the location of the label

Overrides:
setLocation in class Component
Parameters:
x - x coordinate
y - y coordinate

setColor

public void setColor(Color c)

getColor

public Color getColor()
Get the color of the label

Returns:
the color

paint

public void paint(Graphics g)
Patin the label

Overrides:
paint in class Component
Parameters:
g - the graphic.