TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.igc.util.internal
Class LineStylePen

java.lang.Object
  extended by org.eclipse.tptp.platform.report.igc.util.internal.LineStylePen
All Implemented Interfaces:
IPen

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 LineStylePen
extends java.lang.Object
implements IPen

Implements a IPen using RGBA color, line style and line width. IGC implementors could use pen's parameter and call directly graphics native methods. This pen provide also drawPath method, but this drawing is done using 1 pixel line width. (no support of other line width ).


Field Summary
static int DASH
          Deprecated.  
static int DASH_DOT
          Deprecated.  
static int DASH_DOT_DOT
          Deprecated.  
static int[] DEF_DASH
          Deprecated.  
static int[] DEF_DASH_DOT
          Deprecated.  
static int[] DEF_DASH_DOT_DOT
          Deprecated.  
static int[] DEF_DOT
          Deprecated. first byte is length of pattern in pixels, second one is 1 if pattern start drawing pixel, 0 if not, the following value are successive pixels count with same "drawing" property.
static int[] DEF_PIXEL
          Deprecated.  
static int DOT
          Deprecated.  
protected  IGC gc_
          Deprecated.  
protected  int line_style_
          Deprecated.  
protected  int line_width_
          Deprecated.  
static int PIXEL
          Deprecated.  
protected  int rgba_
          Deprecated.  
static int SOLID
          Deprecated.  
 
Constructor Summary
LineStylePen()
          Deprecated. Create black solid pen with 0 pixel line width
LineStylePen(int _rgba)
          Deprecated. Create a SOLID pen with 0 line width and given RGBA color
LineStylePen(int _rgba, int line_style)
          Deprecated. Create pen using RGBA color, line style and 0 (zero) line width
LineStylePen(int _rgba, int line_style, int line_width)
          Deprecated. Create pen using RGBA color, line style and line width
LineStylePen(LineStylePen _pen)
          Deprecated. Create a copy of pen
 
Method Summary
 IPen copyPen()
          Deprecated.  
 void drawPath(IGC gc, IGCDirect gd, IPath path)
          Deprecated. Support only 0 and 1 pixel line width.
protected  void drawPath(IGC gc, IGCDirect gd, IPath path, int[] def)
          Deprecated.  
 int getLineStyle()
          Deprecated.  
 int getLineWidth()
          Deprecated.  
 int getRGBA()
          Deprecated.  
 void setLineStyle(int line_style)
          Deprecated. Change current line style, use SWT.LINE_xxxx constants
 void setLineWidth(int line_width)
          Deprecated. Change current line width
 void setRGBA(int _rgba)
          Deprecated. Change current RGBA color of pen
static java.lang.String StrStyle(int style)
          Deprecated.  
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SOLID

public static final int SOLID
Deprecated. 
See Also:
Constant Field Values

DASH

public static final int DASH
Deprecated. 
See Also:
Constant Field Values

DOT

public static final int DOT
Deprecated. 
See Also:
Constant Field Values

DASH_DOT

public static final int DASH_DOT
Deprecated. 
See Also:
Constant Field Values

DASH_DOT_DOT

public static final int DASH_DOT_DOT
Deprecated. 
See Also:
Constant Field Values

PIXEL

public static final int PIXEL
Deprecated. 
See Also:
Constant Field Values

DEF_DOT

public static final int[] DEF_DOT
Deprecated. 
first byte is length of pattern in pixels, second one is 1 if pattern start drawing pixel, 0 if not, the following value are successive pixels count with same "drawing" property.


DEF_DASH

public static final int[] DEF_DASH
Deprecated. 

DEF_DASH_DOT

public static final int[] DEF_DASH_DOT
Deprecated. 

DEF_DASH_DOT_DOT

public static final int[] DEF_DASH_DOT_DOT
Deprecated. 

DEF_PIXEL

public static final int[] DEF_PIXEL
Deprecated. 

rgba_

protected int rgba_
Deprecated. 

line_style_

protected int line_style_
Deprecated. 

line_width_

protected int line_width_
Deprecated. 

gc_

protected IGC gc_
Deprecated. 
Constructor Detail

LineStylePen

public LineStylePen(int _rgba,
                    int line_style,
                    int line_width)
Deprecated. 
Create pen using RGBA color, line style and line width


LineStylePen

public LineStylePen(int _rgba,
                    int line_style)
Deprecated. 
Create pen using RGBA color, line style and 0 (zero) line width


LineStylePen

public LineStylePen(int _rgba)
Deprecated. 
Create a SOLID pen with 0 line width and given RGBA color


LineStylePen

public LineStylePen(LineStylePen _pen)
Deprecated. 
Create a copy of pen


LineStylePen

public LineStylePen()
Deprecated. 
Create black solid pen with 0 pixel line width

Method Detail

copyPen

public IPen copyPen()
Deprecated. 
Specified by:
copyPen in interface IPen
Returns:
a full copy of this pen

toString

public java.lang.String toString()
Deprecated. 
Overrides:
toString in class java.lang.Object

StrStyle

public static java.lang.String StrStyle(int style)
Deprecated. 

getRGBA

public int getRGBA()
Deprecated. 
Returns:
current RGBA color of pen

getLineStyle

public int getLineStyle()
Deprecated. 
Returns:
current line style (@see SWT constants)

getLineWidth

public int getLineWidth()
Deprecated. 
Returns:
current line width

setRGBA

public void setRGBA(int _rgba)
Deprecated. 
Change current RGBA color of pen


setLineStyle

public void setLineStyle(int line_style)
Deprecated. 
Change current line style, use SWT.LINE_xxxx constants


setLineWidth

public void setLineWidth(int line_width)
Deprecated. 
Change current line width


drawPath

protected void drawPath(IGC gc,
                        IGCDirect gd,
                        IPath path,
                        int[] def)
Deprecated. 

drawPath

public void drawPath(IGC gc,
                     IGCDirect gd,
                     IPath path)
Deprecated. 
Support only 0 and 1 pixel line width.

Specified by:
drawPath in interface IPen
Parameters:
gc - IGC which require the path drawing.
gd - IGCDirect used to convert to device coordinate and draw to low level graphics.
path - IPath to draw.
See Also:
org.eclipse.tptp.platform.report.igc.internal.IPen#drawPath(org.eclipse.tptp.platform.report.igc.internal.IGC, org.eclipse.tptp.platform.report.igc.internal.IPath)

TPTP 4.5.0 Platform Project
Internal API Specification