Interface INodePresentation

All Superinterfaces:
IEntity, IHyperlinkOwner, IPresentation

public interface INodePresentation extends IPresentation
Interface for Node Presentation.
  • Method Details

    • getLocation

      Point2D getLocation()
      Get Location.
      Returns:
      Location
    • getWidth

      double getWidth()
      Get Width.
      Returns:
      Width
    • getHeight

      double getHeight()
      Get Height.
      Returns:
      Height
    • getParent

      INodePresentation getParent()
      Get Parent.
      Returns:
      Parent
    • getParents

      INodePresentation[] getParents()
      Get Parents.
      Returns:
      the array of parents. Return the empty array if there is none.
    • getChildren

      INodePresentation[] getChildren()
      Get Children.
      Returns:
      the array of children. Return the empty array if there is none.
    • getRectangle

      Rectangle2D getRectangle()
      Get Rectangle.
      Returns:
      Rectangle
    • getLinks

      ILinkPresentation[] getLinks()
      Get ILinkPresentations.
      Returns:
      the array of ILinkPresentation. Return the empty array if there is none. Edges may be returned when this is a topic.
    • setLocation

      void setLocation(Point2D location)
      Set Location.
      Parameters:
      location - Location
      Throws:
      InvalidEditingException - InvalidEditingException occurs.
      Keys:
              ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community.
              PARAMETER_ERROR_KEY - if a parameter is not set properly.
              if the label is not edited for a presentation
              in Class/Object Diagram, UseCase Diagram, StateMachine Diagram and ER Diagram.
              BAD_TRANSACTION_KEY - Bad Transaction.
              HAS_EXCEPTION_KEY - if an exception has occurred.
      Values:
              Error messages for exceptions.
    • setWidth

      void setWidth(double width)
      Set Width.
      Parameters:
      width - Width The minimum of the width is the same as that of its diagram element.
      Throws:
      InvalidEditingException - InvalidEditingException occurs.
      Keys:
              ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community.
              PARAMETER_ERROR_KEY - if a parameter is not set properly.
              if the label is not edited for a presentation
              in Class/Object Diagram, UseCase Diagram, StateMachine Diagram and ER Diagram.
              BAD_TRANSACTION_KEY - Bad Transaction.
              HAS_EXCEPTION_KEY - if an exception has occurred.
      Values:
              Error messages for exceptions.
    • setHeight

      void setHeight(double height)
      Set Height.
      Parameters:
      height - Height The minimum of the height is the same as that of its diagram element.
      Throws:
      InvalidEditingException - InvalidEditingException occurs.
      Keys:
              ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community.
              PARAMETER_ERROR_KEY - if a parameter is not set properly.
              if the label is not edited for a presentation
              in Class/Object Diagram, UseCase Diagram, StateMachine Diagram and ER Diagram.
              BAD_TRANSACTION_KEY - Bad Transaction.
              HAS_EXCEPTION_KEY - if an exception has occurred.
      Values:
              Error messages for exceptions.