org.stathissideris.ascii2image.graphics
Class ShapeEdge

java.lang.Object
  extended by org.stathissideris.ascii2image.graphics.ShapeEdge

public class ShapeEdge
extends Object

Author:
Efstathios Sideris

Constructor Summary
ShapeEdge(ShapeEdge other)
           
ShapeEdge(ShapePoint start, ShapePoint end, DiagramShape owner)
           
 
Method Summary
 boolean equals(Object object)
           
 ShapePoint getEndPoint()
           
 ShapePoint getMiddle()
           
 DiagramShape getOwner()
           
 ShapePoint getStartPoint()
           
 boolean isHorizontal()
           
 boolean isVertical()
           
 void moveInwardsBy(float offset)
           
 void setEndPoint(ShapePoint point)
           
 void setOwner(DiagramShape shape)
           
 void setStartPoint(ShapePoint point)
           
 String toString()
           
 boolean touchesWith(ShapeEdge other)
           
 void translate(float dx, float dy)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShapeEdge

public ShapeEdge(ShapePoint start,
                 ShapePoint end,
                 DiagramShape owner)

ShapeEdge

public ShapeEdge(ShapeEdge other)
Method Detail

moveInwardsBy

public void moveInwardsBy(float offset)

translate

public void translate(float dx,
                      float dy)

getMiddle

public ShapePoint getMiddle()

getEndPoint

public ShapePoint getEndPoint()
Returns:

getStartPoint

public ShapePoint getStartPoint()
Returns:

setEndPoint

public void setEndPoint(ShapePoint point)
Parameters:
point -

setStartPoint

public void setStartPoint(ShapePoint point)
Parameters:
point -

getOwner

public DiagramShape getOwner()
Returns:

setOwner

public void setOwner(DiagramShape shape)
Parameters:
shape -

equals

public boolean equals(Object object)
Overrides:
equals in class Object

touchesWith

public boolean touchesWith(ShapeEdge other)

isHorizontal

public boolean isHorizontal()

isVertical

public boolean isVertical()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.