com.tensegrity.composite.label
Class CompositeLabelEllipse

java.lang.Object
  extended bycom.tensegrity.composite.label.CompositeLabelEllipse
All Implemented Interfaces:
CompositeLabelRepresentation

public class CompositeLabelEllipse
extends java.lang.Object
implements CompositeLabelRepresentation

This class implements an elliptical molding for a CompositeLabel. The text of the label will be adjusted to fit into the elliptical region of this CompositeLabelRepresentation.

Version:
$Id: CompositeLabelEllipse.java,v 1.4 2004/07/06 07:12:12 MichaelKegel Exp $
Author:
MKegel

Constructor Summary
CompositeLabelEllipse()
          Default Constructor for CompositeLabelEllipse.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeLabelEllipse

public CompositeLabelEllipse()
Default Constructor for CompositeLabelEllipse.

Method Detail

getAttributes

public AttributeSet getAttributes()
Description copied from interface: CompositeLabelRepresentation
Returns an AttributeSet holding the Attributes specific for this instance.

Specified by:
getAttributes in interface CompositeLabelRepresentation
Returns:
an AttributeSet holding the Attributes specific for this instance.

setAttributes

public void setAttributes(AttributeSet attributes)
Description copied from interface: CompositeLabelRepresentation
Sets the specific parameters of this instance to the ones given in the specified AttributeSet.

Specified by:
setAttributes in interface CompositeLabelRepresentation
Parameters:
attributes - AttributeSet holding the parameters to set.

registerCompositeLabel

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

Specified by:
registerCompositeLabel in interface CompositeLabelRepresentation
Parameters:
compositelabel - the CompositeLabel holding the label.
label - the Label2D to use.

revalidate

public void revalidate()
Description copied from interface: CompositeLabelRepresentation
Called whenever this instance has to be adjusted and re-layouted.

Specified by:
revalidate in interface CompositeLabelRepresentation

revalidate

public void revalidate(Transform2D xform_context,
                       ScaleValues scalevalues)
Description copied from interface: CompositeLabelRepresentation
Called whenever this instance has to be adjusted and re-layouted.

Specified by:
revalidate in interface CompositeLabelRepresentation
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)
Description copied from interface: CompositeLabelRepresentation
Returns a deep-copy of this CompositeLabelRepresentations instance.

Specified by:
deepCopy in interface CompositeLabelRepresentation
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)
Description copied from interface: CompositeLabelRepresentation
Does the actual drawing of this molding.

Specified by:
draw in interface CompositeLabelRepresentation
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.