com.tensegrity.composite
Interface CompositeLineState


public interface CompositeLineState

The CompositeLineState interface defines a memento of the current state of a CompositeLine. An instance of such an object can be obtained from and applied to a CompositeLine.
Notice:The CompositeLineState keeps only the states of elementary information about a CompositeLine so that information about the current geometry or style and such is not remembered by an an instance of this interface and hence not reapplied.

Version:
$Id: CompositeLineState.java,v 1.2 2005/04/01 15:45:16 MichaelKegel Exp $
Author:
MKegel

Method Summary
 Coordinate[] getCoordinates()
          Returns the coordinates of the CompositeLine at the time the CompositeLineState was created.
 Coordinate getLabelLocation()
          Returns the location of the CompositeLine's label at the time the CompositeLineState was created.
 int getLabelPositioning()
          Returns a constant that defines the positioning of the CompositeLine's label at the time the CompositeLineState was created.
 Size getLabelSize()
          Returns the size of the CompositeLine's label at the time the CompositeLineState was created.
 int getType()
          Returns a constant that defines the type of the CompositeLine at the time the CompositeLineState was created.
 boolean isEachPointInteractionAllowed()
          Returns a boolean that indicates whether the each-point-interaction for the CompositeLine was active at the time the CompositeLineState was created or not.
 boolean isLabelVisible()
          Returns a boolean that indicates whether the CompositeLine's label was visible at the time the CompositeLineState was created or not.
 

Method Detail

getType

public int getType()
Returns a constant that defines the type of the CompositeLine at the time the CompositeLineState was created.

Returns:
int constant that defines the type of the CompositeLine

isEachPointInteractionAllowed

public boolean isEachPointInteractionAllowed()
Returns a boolean that indicates whether the each-point-interaction for the CompositeLine was active at the time the CompositeLineState was created or not.

Returns:
boolean flag that indicates whether each-point-interaction was active or not

isLabelVisible

public boolean isLabelVisible()
Returns a boolean that indicates whether the CompositeLine's label was visible at the time the CompositeLineState was created or not.

Returns:
boolean flag that indicates whether the CompositeLine's label was visible or not

getLabelPositioning

public int getLabelPositioning()
Returns a constant that defines the positioning of the CompositeLine's label at the time the CompositeLineState was created.

Returns:
int constant that defines the positioning of the CompositeLine's label

getLabelLocation

public Coordinate getLabelLocation()
Returns the location of the CompositeLine's label at the time the CompositeLineState was created.

Returns:
Coordinate the location of the CompositeLine's label

getLabelSize

public Size getLabelSize()
Returns the size of the CompositeLine's label at the time the CompositeLineState was created.

Returns:
Size the size of the CompositeLine's label

getCoordinates

public Coordinate[] getCoordinates()
Returns the coordinates of the CompositeLine at the time the CompositeLineState was created.

Returns:
Coordinate[] the coordinates of the CompositeLine


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.