diva.canvas.connector
Class ArcMidpointSite

java.lang.Object
  extended by diva.canvas.AbstractSite
      extended by diva.canvas.connector.ArcMidpointSite
All Implemented Interfaces:
Site

public class ArcMidpointSite
extends AbstractSite

A site that is used for the purpose of manipulating the midpoint of an arc connector.

Version:
$Revision: 1.2 $
Author:
John Reekie

Constructor Summary
ArcMidpointSite(ArcConnector connector, int id)
          Create a new site on the given arc connector with the given ID.
 
Method Summary
 Figure getFigure()
          Get the figure to which this site is attached.
 int getID()
          Get the ID of this site.
 double getX()
          Get the x-coordinate of the site.
 double getY()
          Get the y-coordinate of the site.
 
Methods inherited from class diva.canvas.AbstractSite
getNormal, getPoint, getPoint, getPoint, getPoint, getTransformContext, hasNormal, isNormal, setNormal, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArcMidpointSite

public ArcMidpointSite(ArcConnector connector,
                       int id)
Create a new site on the given arc connector with the given ID.

Parameters:
connector - The arc connector.
id - The id.
Method Detail

getFigure

public Figure getFigure()
Get the figure to which this site is attached.

Specified by:
getFigure in interface Site
Specified by:
getFigure in class AbstractSite

getID

public int getID()
Get the ID of this site.

Specified by:
getID in interface Site
Specified by:
getID in class AbstractSite

getX

public double getX()
Get the x-coordinate of the site. The site is located in the center of the parent figure's bounding box.

Specified by:
getX in interface Site
Specified by:
getX in class AbstractSite

getY

public double getY()
Get the y-coordinate of the site. The site is located in the center of the parent figure's bounding box.

Specified by:
getY in interface Site
Specified by:
getY in class AbstractSite


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.