| com.xoetrope.swing.XFlowedTextComponent com.xoetrope.swing.XReflectedText
XReflectedText | public class XReflectedText extends XFlowedTextComponent implements XAttributedComponent(Code) | | Display text at a user defined angle
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.2 $
|
Field Summary | |
protected double | shear |
Method Summary | |
public int | getShear() Gets the degree of shear of the control's text. | public int | setAttribute(String attribName, Object attribValue) Set one or more attributes of the component. | public void | setShear(int value) Sets the degree of shear of the control's text. | protected double | wrapString(Graphics2D g2, String localCopy, double currentPos, double y, Area[] columns) |
shear | protected double shear(Code) | | The shear factor
|
XReflectedText | public XReflectedText()(Code) | | Create a new XReflectedTExt component
|
getShear | public int getShear()(Code) | | Gets the degree of shear of the control's text.
The range is 0 to 3600.
the new shear factor |
setAttribute | public int setAttribute(String attribName, Object attribValue)(Code) | | Set one or more attributes of the component. Currently this handles the
attributes
- shear, value=the amount of shear, 100 approx = 45 degrees
Parameters: attribName - the attribute name Parameters: attribValue - the attribute value 0 for success, non zero otherwise |
setShear | public void setShear(int value)(Code) | | Sets the degree of shear of the control's text.
The range is 0 to 3600.
Parameters: value - the new shear factor |
wrapString | protected double wrapString(Graphics2D g2, String localCopy, double currentPos, double y, Area[] columns)(Code) | | Render a text that wraps within the client area
Parameters: g2 - the graphics context Parameters: localCopy - the string to render Parameters: currentPos - the current starting y position Parameters: y - the y offset into the client area Parameters: columns - the column areas the latest y position |
Methods inherited from com.xoetrope.swing.XFlowedTextComponent | public void applyState(Graphics2D g2)(Code)(Java Doc) public void drawObjects(int w, int h, Graphics2D g2)(Code)(Java Doc) protected AttributedString getAttributedString(String localCopy, Font font, int[] lengths)(Code)(Java Doc) public boolean getClip()(Code)(Java Doc) public int getColSpacing()(Code)(Java Doc) public int getNumColumns()(Code)(Java Doc) public String getText()(Code)(Java Doc) public void init()(Code)(Java Doc) public void reset(int w, int h)(Code)(Java Doc) public int setAttribute(String attribName, Object attribValue)(Code)(Java Doc) public void setClip(boolean state)(Code)(Java Doc) public void setColSpacing(int spacing)(Code)(Java Doc) public void setNumColumns(int columns)(Code)(Java Doc) public void setText(String text)(Code)(Java Doc) public void step(int w, int h)(Code)(Java Doc) protected double wrapString(Graphics2D g2, String text, double currentPos, double y, Area[] columns)(Code)(Java Doc)
|
|
|