|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.rendering.IlvMapRenderingStyle
ilog.views.maps.rendering.IlvMapTextRenderingStyle
public class IlvMapTextRenderingStyle
This rendering style stores style parameters to render the texts.
This class is meant to be used by a IlvDefaultTextRenderer.
The parameters stored in this class include paint style, alignment, font
and scale.
| Constructor Summary | |
|---|---|
IlvMapTextRenderingStyle()
Constructs an IlvMapRenderingStyle with default
values. |
|
IlvMapTextRenderingStyle(IlvInputStream stream)
Constructs an IlvMapRenderingStyle for an
IlvInputStream. |
|
| Method Summary | |
|---|---|
int |
getAlignment()
Retrieves the alignment of the label. |
double |
getAngle()
Retrieves the angle of rotation of the label. |
int |
getAttachment()
Retrieves the attachment of the label. |
Paint |
getBackgroundPaint()
Retrieves the background paint. |
Paint |
getFillPaint()
Retrieves the fill paint. |
Font |
getFont()
Retrieves the font used to display the label. |
Paint |
getFramePaint()
Retrieves the frame stroke paint. |
int |
getInnerMargin()
Retrieves the inner margin of the label. |
float |
getInterline()
Retrieves interline of the label. |
int |
getMaximumHeight()
Retrieves the maximum height of the label. |
int |
getMinimumHeight()
Retrieves the minimum height of the label. |
float |
getScale()
Retrieves the scale at which text is displayed with the nominal height of its font. |
double |
getScaleFactor(IlvCoordinateSystem cs)
Returns the scale factor of a transformer that would show a map at the specified scale. |
Paint |
getStrokePaint()
Retrieves the stroke paint. |
boolean |
isAntialiasing()
Retrieves the antialiasing mode. |
void |
setAlignment(int alignment)
Sets the alignment of the label. |
void |
setAngle(double angle)
Sets the angle corresponding to the rotation of the label. |
void |
setAntialiasing(boolean antialiasing)
Sets the antialiasing mode. |
void |
setAttachment(int attachment)
Sets the attachment of the label. |
void |
setBackgroundPaint(Paint c)
Sets the background paint. |
void |
setFillPaint(Paint c)
Sets the fill paint. |
void |
setFont(Font font)
Sets the font used to display the label. |
void |
setFramePaint(Paint paint)
Sets the frame stroke paint. |
void |
setInnerMargin(int margin)
Sets the inner margin of the label in pixels. |
void |
setInterline(float interline)
Sets the interline of the label. |
void |
setMaximumHeight(int height)
Sets the maximum height of the label in pixels. |
void |
setMinimumHeight(int height)
Sets the minimum height of the label. |
void |
setScale(float scale)
Sets the scale at which the label is displayed at font size . |
void |
setStrokePaint(Paint c)
Sets the stroke paint of the label. |
void |
write(IlvOutputStream stream)
Writes a IlvMapTextRenderingStyle into
an IlvOutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvMapTextRenderingStyle()
IlvMapRenderingStyle with default
values.
Default values are:
public IlvMapTextRenderingStyle(IlvInputStream stream)
throws IlvReadFileException
IlvMapRenderingStyle for an
IlvInputStream.
stream - The IlvInputStream.
IlvReadFileException| Method Detail |
|---|
public void write(IlvOutputStream stream)
throws IOException
IlvMapTextRenderingStyle into
an IlvOutputStream.
stream - The IlvOutputStream.
IOException - thrown when an exception occurs during
the write operation for this object.public void setBackgroundPaint(Paint c)
c - The background Paint.public Paint getBackgroundPaint()
public void setFillPaint(Paint c)
c - The fill Paint.public Paint getFillPaint()
public void setStrokePaint(Paint c)
c - The stroke Paint.public Paint getStrokePaint()
public void setFramePaint(Paint paint)
paint - The frame Paint.public Paint getFramePaint()
public void setAlignment(int alignment)
alignment - The alignment of the label.public int getAlignment()
public void setFont(Font font)
public Font getFont()
public void setInterline(float interline)
public float getInterline()
public void setAttachment(int attachment)
public int getAttachment()
setAttachment(int)public void setMaximumHeight(int height)
IlvMapLabel.
public int getMaximumHeight()
public void setMinimumHeight(int height)
IlvMapLabel.
public int getMinimumHeight()
public void setScale(float scale)
scale - Scale at which text is displayed with the nominal
height of its font.public float getScale()
public double getScaleFactor(IlvCoordinateSystem cs)
cs - The coordinate system.public void setAntialiasing(boolean antialiasing)
public boolean isAntialiasing()
public int getInnerMargin()
public void setInnerMargin(int margin)
IlvMapLabel.
margin - The margin.public void setAngle(double angle)
angle - The angle of rotation in degrees.public double getAngle()
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||