projectPrototype.view.graphicEditor.graphicElement.composedFigures
Class ComposedFigure

java.lang.Object
  extended byprojectPrototype.view.graphicEditor.graphicElement.GraphicElement
      extended byprojectPrototype.view.graphicEditor.graphicElement.composedFigures.ComposedFigure
Direct Known Subclasses:
ActorComposedFigure, ArrowEnd, AttributeComposedFigure, ClassifierComposedFigure, ClassifierRepresentation, OperationComposedFigure, PackageComposedFigure, PolyLine, Rectangle, UseCaseComposedFigure

public abstract class ComposedFigure
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
protected  java.util.LinkedList graphicElementsList
           
 
Fields inherited from class projectPrototype.view.graphicEditor.graphicElement.GraphicElement
bgColor, conector, cursor, lineColor, MIN_HEIGHT, MIN_WIDTH, oldP1, oldP2, p1, p2, selector
 
Constructor Summary
ComposedFigure()
           
ComposedFigure(Point p1, Point p2, java.awt.Color lineColor, java.awt.Color bgColor)
           
 
Method Summary
 void addGraphicElement(GraphicElement graphicElement)
           
 GraphicElement getGraphicElement(Point point)
           
 boolean over(Point p)
           
 void paint(java.awt.Graphics g)
           
 void removeGraphicElement(GraphicElement graphicElement)
           
 void select()
           
private  void unselectGraphicElements()
           
 
Methods inherited from class projectPrototype.view.graphicEditor.graphicElement.GraphicElement
adjustConectors, autoAdjust, createConectors, createDraggableElement, createSelector, getConector, getCursor, getGraphicElementSelector, getP1, getP2, getRectangle, isSelected, move, setP1, setP2, verifyMinimalSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graphicElementsList

protected java.util.LinkedList graphicElementsList
Constructor Detail

ComposedFigure

public ComposedFigure()

ComposedFigure

public ComposedFigure(Point p1,
                      Point p2,
                      java.awt.Color lineColor,
                      java.awt.Color bgColor)
Method Detail

over

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

paint

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

addGraphicElement

public void addGraphicElement(GraphicElement graphicElement)

removeGraphicElement

public void removeGraphicElement(GraphicElement graphicElement)

getGraphicElement

public GraphicElement getGraphicElement(Point point)
Overrides:
getGraphicElement in class GraphicElement
Parameters:
point -
Returns:

select

public void select()
Overrides:
select in class GraphicElement

unselectGraphicElements

private void unselectGraphicElements()