projectPrototype.view.graphicEditor.graphicElement
Class Text

java.lang.Object
  extended byprojectPrototype.view.graphicEditor.graphicElement.GraphicElement
      extended byprojectPrototype.view.graphicEditor.graphicElement.Text

public class Text
extends GraphicElement

Author:
Administrator To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Field Summary
private  java.lang.String text
           
 
Fields inherited from class projectPrototype.view.graphicEditor.graphicElement.GraphicElement
bgColor, conector, cursor, lineColor, MIN_HEIGHT, MIN_WIDTH, oldP1, oldP2, p1, p2, selector
 
Constructor Summary
Text(Point p1, Point p2, java.awt.Color textColor, java.lang.String text)
           
Text(java.lang.String text)
           
 
Method Summary
 boolean over(Point p)
           
 void paint(java.awt.Graphics g)
           
 
Methods inherited from class projectPrototype.view.graphicEditor.graphicElement.GraphicElement
adjustConectors, autoAdjust, createConectors, createDraggableElement, createSelector, getConector, getCursor, getGraphicElement, getGraphicElementSelector, getP1, getP2, getRectangle, isSelected, move, select, setP1, setP2, verifyMinimalSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

private java.lang.String text
Constructor Detail

Text

public Text(java.lang.String text)

Text

public Text(Point p1,
            Point p2,
            java.awt.Color textColor,
            java.lang.String text)
Method Detail

paint

public void paint(java.awt.Graphics g)
Specified by:
paint in class GraphicElement

over

public boolean over(Point p)
Overrides:
over in class GraphicElement