Class ShapeEdge

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

public class ShapeEdge extends Object
  • Constructor Details

  • Method Details

    • 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