public interface ILabelStyle extends IStyle
Modifier and Type | Method and Description |
---|---|
void |
addTextFieldArea(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() |
Point2D |
getMarkerPoint()
Returns the position of the point labeled by this label in percent units relative
to the label bounds.
|
Dimension |
getSize() |
Rectangle2D[] |
getTextBounds()
Returns an array of rectangles defining the text boxes where text is
placed.
|
void |
setBackgroundFileStyle(IBackgroundFileStyle background) |
void |
setMarkerPoint(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,
Rectangle2D rect)
Sets a TextFieldArea using its index.
|
void |
setTextFields(String[] texts)
Sets the texts that will appear in the label.
|
drawInsideRectangle, drawOutline, getDescription, isSuitableFor, setDescription
loadFromState, saveToState
int getFieldCount()
void setTextFields(String[] texts)
texts
- Rectangle2D[] getTextBounds()
Dimension getSize()
Point2D getMarkerPoint()
void setMarkerPoint(Point2D p) throws IllegalArgumentException
p
- IllegalArgumentException
- if the point coordinates are >0.0 or <1.0void setTextFieldArea(int index, Rectangle2D rect)
index
- rect
- void addTextFieldArea(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)