Class Index

Classes


Namespace motigon.figure.Endpoint

Defines a line endpoint.

Endpoint

Class Summary
 
Instantiates a new endpoint model.
Method Summary
ComplexDefinition
Gets the complex definition.
String
Gets the endpoint definition name.
double
Gets the rotation in degrees.
double
getX()
Gets the horizontal position.
double
getY()
Gets the vertical position.
boolean
Checks if the element has been modified.
boolean
Checks if the element needs to be redrawn.
boolean
Checks if the endpoint has been defined. An endpoint has been defined if it has received a name.
void
Reset the dirty state of this element. The next call to {@link #isDirty()} will be false, unless a change has been made to the element.
void
setDefinition(definition)
Sets the complex definition.
void
setName(name)
Sets the endpoint definition name.
void
setRotation(angle)
Sets the rotation in degrees.
void
setX(x)
Sets the horizontal position.
void
setY(y)
Sets the vertical position.
Class Detail
motigon.figure.Endpoint()
Instantiates a new endpoint model.
Method Detail
getDefinition()
Gets the complex definition.
Returns:
{ComplexDefinition}

getName()
Gets the endpoint definition name.
Returns:
{String}

getRotation()
Gets the rotation in degrees.
Returns:
{double}

getX()
Gets the horizontal position.
Returns:
{double}

getY()
Gets the vertical position.
Returns:
{double}

isDirty()
Checks if the element has been modified.
Returns:
{boolean}

isDrawDirty()
Checks if the element needs to be redrawn.
Returns:
{boolean}

isEmpty()
Checks if the endpoint has been defined. An endpoint has been defined if it has received a name.
Returns:
{boolean}

resetDirty()
Reset the dirty state of this element. The next call to {@link #isDirty()} will be false, unless a change has been made to the element.
Returns:
{void}

setDefinition(definition)
Sets the complex definition.
Parameters:
{ComplexDefinition} definition
the new complex definition
Returns:
{void}

setName(name)
Sets the endpoint definition name.
Parameters:
{String} name
the new definition name
Returns:
{void}

setRotation(angle)
Sets the rotation in degrees.
Parameters:
{double} angle
the new rotation in degrees
Returns:
{void}

setX(x)
Sets the horizontal position.
Parameters:
{double} x
the new horizontal position
Returns:
{void}

setY(y)
Sets the vertical position.
Parameters:
{double} y
the new vertical position
Returns:
{void}