com.tensegrity.composite
Interface CompositeLabelRepresentation

All Known Implementing Classes:
CompositeLabelEllipse, CompositeLabelRectangle

public interface CompositeLabelRepresentation

Every CompositeLabel can have an arbitrary geometrical molding. Such a molding is defined in the implementation of the draw- method specified in this interface. At this time there are two implementations, CompositeLabelEllipse and CompositeLabelRectangle.

Version:
$Id: CompositeLabelRepresentation.java,v 1.3 2004/03/08 13:43:14 MichaelKegel Exp $
Author:
MKegel
See Also:
CompositeLabelEllipse, CompositeLabelRectangle

Method Summary
 CompositeLabelRepresentation deepCopy(CompositeLabel compositelabel, Label2D label)
          Returns a deep-copy of this CompositeLabelRepresentations instance.
 void draw(Renderer renderer, Device device, Transform2D xform_composite)
          Does the actual drawing of this molding.
 AttributeSet getAttributes()
          Returns an AttributeSet holding the Attributes specific for this instance.
 void registerCompositeLabel(CompositeLabel compositelabel, Label2D label)
          Registers the given Label2D lying within the specified CompositeLabel to be used with this CompositeLabelRepresentation-instance.
 void revalidate()
          Called whenever this instance has to be adjusted and re-layouted.
 void revalidate(Transform2D xform_context, ScaleValues scalevalues)
          Called whenever this instance has to be adjusted and re-layouted.
 void setAttributes(AttributeSet attributes)
          Sets the specific parameters of this instance to the ones given in the specified AttributeSet.
 

Method Detail

getAttributes

public AttributeSet getAttributes()
Returns an AttributeSet holding the Attributes specific for this instance.

Returns:
an AttributeSet holding the Attributes specific for this instance.

setAttributes

public void setAttributes(AttributeSet attributes)
Sets the specific parameters of this instance to the ones given in the specified AttributeSet.

Parameters:
attributes - AttributeSet holding the parameters to set.

registerCompositeLabel

public void registerCompositeLabel(CompositeLabel compositelabel,
                                   Label2D label)
Registers the given Label2D lying within the specified CompositeLabel to be used with this CompositeLabelRepresentation-instance.

Parameters:
compositelabel - the CompositeLabel holding the label.
label - the Label2D to use.

revalidate

public void revalidate()
Called whenever this instance has to be adjusted and re-layouted.


revalidate

public void revalidate(Transform2D xform_context,
                       ScaleValues scalevalues)
Called whenever this instance has to be adjusted and re-layouted.

Parameters:
xform_context - the Transform2D to be used
scalevalues - the scale values for the different directions the CompositeView has been set to

deepCopy

public CompositeLabelRepresentation deepCopy(CompositeLabel compositelabel,
                                             Label2D label)
Returns a deep-copy of this CompositeLabelRepresentations instance.

Parameters:
compositelabel - the CompositeLabel to be used in the copied version.
label - the CompositeLabel to be used in the copy.
Returns:
a deep-copy of this CompositeLabelRepresentations instance.

draw

public void draw(Renderer renderer,
                 Device device,
                 Transform2D xform_composite)
Does the actual drawing of this molding.

Parameters:
renderer - the Renderer to use.
device - the Device to draw to.
xform_composite - the Transform2D to use.


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