Gettitletemplate(), Setshadowcornerradius(double), Settitletemplate(string) – MiG InfoCom MiG Calendar JavaBeans User Manual
Page 17: Gettitletemplate, Setshadowcornerradius, Settitletemplate
![background image](https://www.manualsdir.com/files/798675/content/doc017.png)
(continued from last page)
setShadowCornerRadius
public void setShadowCornerRadius(double radius)
Property: The corner radius for the shadow
com.miginfocom.util.gfx.RoundRectangle
.
Parameters:
radius
- The new radius.
See Also:
setRoundRect(double, double, double, double, double, double)
getTitleTemplate
public String getTitleTemplate()
Property: The template text that will show in the title of the shape. Since the title, or at least parts thereof, is different for
every activity but there is only one bean one has to use a template text that will be expanded for every painted activity.
Normally a template will look something like this:
"$startTime$-$endTimeExcl$ $description$"
however it is better to write it in code something like this:
ActivityInteractor.TEMPL_START_TIME.getName() + "-" +
ActivityInteractor.TEMPL_END_TIME_INCL.getName() + " " +
ActivityInteractor.TEMPL_DESCRIPTION.getName();
since
ActivityInteractor
is where the special templates is located.
If a special template isn't found the text between the
Interactor.TEMPLATE_CHAR ($)
chars will be converted to a
property and fetched from the activity such that:
"$assignedTo$"
will be converted to:
activity.getProperty(PropertyKey.getKey("assignedTo"));
This means that any property of the activity can be expanded with this template system.
Default is:
"$startTime$ - $endTimeExcl$ ($timeZoneShort$)"
.
Returns:
The current template string.
See Also:
com.miginfocom.calendar.activity.ActivityInteractor
(for instance)
setTitleTemplate
public void setTitleTemplate(String s)
Page 17 of 196
com.miginfocom.beans.ActivityAShapeBean