gui.parts
Class Legend

java.lang.Object
  extended by gui.parts.Part
      extended by gui.parts.Legend

public class Legend
extends Part

Objekt, ktery vykresli barevnou legendu - barvu a popisek.


Field Summary
 
Fields inherited from class gui.parts.Part
x, X_OFFSET, y, Y_OFFSET
 
Constructor Summary
Legend(java.awt.Color c, java.lang.String text)
          Vytvori legendu.
 
Method Summary
 java.awt.Rectangle getBounds()
          Minimalni opisujici obdelnik.
 void paintPart(java.awt.Graphics g1)
          This method is called when part is painted.
 
Methods inherited from class gui.parts.Part
addSizeChangeEventListener, drawConnectingCurve, fireSizeChangeEvent, getX, getY, move, moveTo, removeSizeChangeEventListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Legend

public Legend(java.awt.Color c,
              java.lang.String text)
Vytvori legendu.

Parameters:
c - Barva
text - popisek
Method Detail

paintPart

public void paintPart(java.awt.Graphics g1)
Description copied from class: Part
This method is called when part is painted.

Specified by:
paintPart in class Part
Parameters:
g1 - objekt, na ktery se kresli

getBounds

public java.awt.Rectangle getBounds()
Minimalni opisujici obdelnik.

Specified by:
getBounds in class Part
Returns:
minimalni obdelnik