| com.xoetrope.swing.XFlowedTextComponent com.xoetrope.swing.XRotatedText
XRotatedText | public class XRotatedText 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.14 $
|
Field Summary | |
protected double | angle |
Method Summary | |
public int | getAngle() Gets the angle of the control's text. | public void | setAngle(int value) Sets the angle of the control's text. | public int | setAttribute(String attribName, Object attribValue) Set one or more attributes of the component. | protected double | wrapString(Graphics2D g2, String localCopy, double currentPos, double y, Area[] columns) |
angle | protected double angle(Code) | | |
XRotatedText | public XRotatedText()(Code) | | Create a new instance
|
getAngle | public int getAngle()(Code) | | Gets the angle of the control's text.
The range is 0 to 3600.
the new angle |
setAngle | public void setAngle(int value)(Code) | | Sets the angle of the control's text.
The range is 0 to 3600.
Parameters: value - the new angle |
setAttribute | public int setAttribute(String attribName, Object attribValue)(Code) | | Set one or more attributes of the component. Currently this handles the
attributes
- angle, value=the angle of the text rotation in tenths of degrees
Parameters: attribName - the attribute name Parameters: attribValue - the attribute value 0 for success, non zero otherwise |
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)
|
|
|