public interface ILabelStyle extends IStyle
Modifier and Type | Method and Description |
---|---|
void |
addTextFieldArea(java.awt.geom.Rectangle2D rect)
Adds a new TextFieldArea with an specific size which is defined as a rectangle.
|
void |
deleteTextFieldArea(int index)
Delete the TextFieldArea specified by its index.
|
IBackgroundFileStyle |
getBackgroundFileStyle() |
int |
getFieldCount() |
java.awt.geom.Point2D |
getMarkerPoint()
Returns the position of the point labeled by this label in percent units relative
to the label bounds.
|
java.awt.Dimension |
getSize() |
java.awt.geom.Rectangle2D[] |
getTextBounds()
Returns an array of rectangles defining the text boxes where text is
placed.
|
void |
setBackgroundFileStyle(IBackgroundFileStyle background) |
void |
setMarkerPoint(java.awt.geom.Point2D p)
Sets the position of the point labeled by this in percent units relative to the
label bounds
|
void |
setSize(double width,
double height)
Sets the size for a laber and stablishes an unit scale factor to not change
too much its content
|
void |
setTextFieldArea(int index,
java.awt.geom.Rectangle2D rect)
Sets a TextFieldArea using its index.
|
void |
setTextFields(java.lang.String[] texts)
Sets the texts that will appear in the label.
|
drawInsideRectangle, drawOutline, getDescription, isSuitableFor, setDescription
loadFromState, saveToState
clone, cloneQuietly, cloneQuietly
int getFieldCount()
void setTextFields(java.lang.String[] texts)
texts
- java.awt.geom.Rectangle2D[] getTextBounds()
java.awt.Dimension getSize()
java.awt.geom.Point2D getMarkerPoint()
void setMarkerPoint(java.awt.geom.Point2D p) throws java.lang.IllegalArgumentException
p
- java.lang.IllegalArgumentException
- if the point coordinates are >0.0 or <1.0void setTextFieldArea(int index, java.awt.geom.Rectangle2D rect)
index
- rect
- void addTextFieldArea(java.awt.geom.Rectangle2D rect)
index,int
- rect,Rectangle2D
- void deleteTextFieldArea(int index)
index,int
- void setSize(double width, double height)
width
- height
- IBackgroundFileStyle getBackgroundFileStyle()
void setBackgroundFileStyle(IBackgroundFileStyle background)