TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.tools.internal
Class DAlignment

java.lang.Object
  extended by org.eclipse.tptp.platform.report.tools.internal.DAlignment
All Implemented Interfaces:
IDAlignment, IDXmlSerializable
Direct Known Subclasses:
DAlignmentPair

Deprecated. As of TPTP 4.5.0, use the TPTP Business Intelligence and Reporting Tools (BIRT) reporting infrastructure (org.eclipse.tptp.platform.report.birt).

public class DAlignment
extends java.lang.Object
implements IDAlignment, IDXmlSerializable

XML Serializable object storing alignement value. Alignment are used in DParagraph class and for any properties of DGraphic class.


Field Summary
protected  int align_
          Deprecated. store current alignment bit field.
 
Fields inherited from interface org.eclipse.tptp.platform.report.core.internal.IDAlignment
BOTTOM, CENTER, DEFAULT_ALIGN, HCENTER, LAST, LEFT, NO_WORD_WRAP, RIGHT, ROTCCW90, ROTCW90, TOP, VCENTER, VERTICAL
 
Constructor Summary
DAlignment()
          Deprecated. Create default alignment
DAlignment(DAlignment _align)
          Deprecated. Create copy of alignment
DAlignment(int _align)
          Deprecated. Create a alignment using given mask.
 
Method Summary
 void addAlignment(int _align)
          Deprecated. Adds an aligment indicator
static int AddAlignment(int _alignment, int _add_alignment)
          Deprecated.  
static java.lang.String AlignmentToString(int a)
          Deprecated. Returns the paragraph alignment property name without prefix.
 boolean equals(java.lang.Object o)
          Deprecated. Compares two aligments and returns true if they are equals
 int getAlignment()
          Deprecated. Returns the aligment flag.
 int getAlignment(int _alignment_mask)
          Deprecated.  
 boolean haveAlignment(int _alignment)
          Deprecated.  
static boolean HaveAlignment(int _alignment, int _mask)
          Deprecated.  
 boolean haveOneOfAlignment(int _alignment)
          Deprecated.  
 void readXml(org.w3c.dom.Node node)
          Deprecated. Reads an alignment stored in XML file parsed with DOM module
 void removeAlignment(int _align)
          Deprecated. Remove alignment mask from current alignment.
static int RemoveAlignment(int _alignment, int _remove_alignment)
          Deprecated.  
 void setAlignment(int _align)
          Deprecated. Sets the aligment value
static int StringToAlignment(java.lang.String s)
          Deprecated. Returns the translation of aligment given in string characters to its representation in integer value.
 java.lang.String writeXml()
          Deprecated. Writes an alignment value in string store in XML files
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

align_

protected int align_
Deprecated. 
store current alignment bit field.

Constructor Detail

DAlignment

public DAlignment()
Deprecated. 
Create default alignment


DAlignment

public DAlignment(int _align)
Deprecated. 
Create a alignment using given mask.

See Also:
IDAlignment

DAlignment

public DAlignment(DAlignment _align)
Deprecated. 
Create copy of alignment

Method Detail

getAlignment

public int getAlignment()
Deprecated. 
Returns the aligment flag.

Specified by:
getAlignment in interface IDAlignment
Returns:
current alignment (full combined mask ).
See Also:
IDAlignment

getAlignment

public int getAlignment(int _alignment_mask)
Deprecated. 
Specified by:
getAlignment in interface IDAlignment
Returns:
current alignment reduced to given mask.

setAlignment

public void setAlignment(int _align)
Deprecated. 
Sets the aligment value

Specified by:
setAlignment in interface IDAlignment
See Also:
IDAlignment

addAlignment

public void addAlignment(int _align)
Deprecated. 
Adds an aligment indicator

Specified by:
addAlignment in interface IDAlignment
See Also:
IDAlignment

removeAlignment

public void removeAlignment(int _align)
Deprecated. 
Description copied from interface: IDAlignment
Remove alignment mask from current alignment.

Specified by:
removeAlignment in interface IDAlignment

haveAlignment

public boolean haveAlignment(int _alignment)
Deprecated. 
Specified by:
haveAlignment in interface IDAlignment
Returns:
true if primary alignment contains full combined mask _align.

haveOneOfAlignment

public boolean haveOneOfAlignment(int _alignment)
Deprecated. 
Specified by:
haveOneOfAlignment in interface IDAlignment
Returns:
true if primary alignment contains full combined mask _align.

AlignmentToString

public static java.lang.String AlignmentToString(int a)
Deprecated. 
Returns the paragraph alignment property name without prefix.

Parameters:
a - alignment property

StringToAlignment

public static int StringToAlignment(java.lang.String s)
Deprecated. 
Returns the translation of aligment given in string characters to its representation in integer value.


HaveAlignment

public static boolean HaveAlignment(int _alignment,
                                    int _mask)
Deprecated. 
Returns:
true if _alignment mask contains all alignment defined in _mask for example IsAlignement( LEFT|TOP, LEFT) return true.

AddAlignment

public static int AddAlignment(int _alignment,
                               int _add_alignment)
Deprecated. 
Returns:
alignement plus alignment to add.

RemoveAlignment

public static int RemoveAlignment(int _alignment,
                                  int _remove_alignment)
Deprecated. 
Returns:
alignment where alignments to remove are removed

writeXml

public java.lang.String writeXml()
Deprecated. 
Writes an alignment value in string store in XML files

Specified by:
writeXml in interface IDXmlSerializable

readXml

public void readXml(org.w3c.dom.Node node)
Deprecated. 
Reads an alignment stored in XML file parsed with DOM module

Specified by:
readXml in interface IDXmlSerializable

equals

public boolean equals(java.lang.Object o)
Deprecated. 
Compares two aligments and returns true if they are equals

Overrides:
equals in class java.lang.Object

TPTP 4.5.0 Platform Project
Internal API Specification