| com.xoetrope.swing.XFlowedTextComponent com.xoetrope.swing.XPolygonalTextArea
XPolygonalTextArea | public class XPolygonalTextArea extends XFlowedTextComponent implements XAttributedComponent(Code) | | A component that flows text in a user defined area. The area is a polygon and
need not be composed of rectangular blocks.
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 $
|
XPolygonalTextArea | public XPolygonalTextArea()(Code) | | Create a new polygonal test area
|
addPoint | public void addPoint(int x, int y)(Code) | | Add a point to teh polygon
Parameters: x - the x position of the point Parameters: y - the y position of the point |
init | public void init()(Code) | | Attempts to load and reference the associated view/datastore.
|
setAttribute | public int setAttribute(String attribName, Object attribValue)(Code) | | Set one or more attributes of the component. Currently this handles the
attributes
- text - set the text
- content - set the text
- increment - set the step size
- points - the set of points that forms the polygon into which the text
is flowed
Parameters: attribName - the attribute name Parameters: attribValue - the attribute value 0 for success, non zero otherwise |
setPoints | public void setPoints(String pts)(Code) | | Set the polygon point as a string of comma separated x-y values
Parameters: pts - the xy pairs |
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)
|
|
|