projectPrototype.view.graphicEditor.graphicElement.composedFigures
Class DragableElement

java.lang.Object
  extended byprojectPrototype.view.graphicEditor.graphicElement.GraphicElement
      extended byprojectPrototype.view.graphicEditor.graphicElement.composedFigures.ComposedFigure
          extended byprojectPrototype.view.graphicEditor.graphicElement.composedFigures.Rectangle
              extended byprojectPrototype.view.graphicEditor.graphicElement.composedFigures.DragableElement

public class DragableElement
extends Rectangle

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

Field Summary
protected static java.awt.BasicStroke dashed
           
private  GraphicElement sourceElement
           
 
Fields inherited from class projectPrototype.view.graphicEditor.graphicElement.composedFigures.ComposedFigure
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
DragableElement(GraphicElement sourceElement)
           
 
Method Summary
 void applyChanges()
           
 GraphicElement getSource()
           
 void paint(java.awt.Graphics g)
           
 
Methods inherited from class projectPrototype.view.graphicEditor.graphicElement.composedFigures.Rectangle
over
 
Methods inherited from class projectPrototype.view.graphicEditor.graphicElement.composedFigures.ComposedFigure
addGraphicElement, getGraphicElement, removeGraphicElement, select
 
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

sourceElement

private GraphicElement sourceElement

dashed

protected static final java.awt.BasicStroke dashed
Constructor Detail

DragableElement

public DragableElement(GraphicElement sourceElement)
Method Detail

applyChanges

public void applyChanges()

getSource

public GraphicElement getSource()

paint

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