public abstract class PrintCalendar
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PrintCalendar.CalInfo |
class |
PrintCalendar.EventComparator |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,PrintCalendar.CalInfo> |
calInfos |
protected java.text.SimpleDateFormat |
dateFormat |
protected float |
evtHourEnd |
protected float |
evtHourStart |
protected int |
firstDayOfWeek |
protected java.util.TimeZone |
GMTtimezone |
protected java.util.Locale |
l |
protected static int |
LANDSCAPE_LINE_WIDTH |
protected java.util.Properties |
lang |
protected static int |
LINE_HEIGHT |
protected java.lang.String |
locale |
protected static int |
MARGIN |
protected PrintOptions |
options |
protected org.w3c.dom.Document |
page |
protected int |
pageHeight |
protected int |
pageLineWidth |
java.util.List<org.w3c.dom.Document> |
pages |
protected java.lang.String |
pageStyle |
protected int |
pageWidth |
protected static int |
PORTRAIT_LINE_WIDTH |
protected org.w3c.dom.Element |
root |
protected SecurityContext |
securityContext |
protected static java.lang.String |
STYLE_GEN_DATE |
protected static java.lang.String |
STYLE_GRID |
protected static java.lang.String |
STYLE_GRID_DASHED |
protected static java.lang.String |
STYLE_MORE_EVENTS |
protected static java.lang.String |
STYLE_MORE_EVENTS_LABEL |
protected static int |
TAB_WIDTH |
protected java.text.SimpleDateFormat |
timeFormat |
protected java.util.TimeZone |
timezone |
protected java.util.Map<java.lang.String,java.lang.String> |
userSettings |
protected int |
y |
Constructor and Description |
---|
PrintCalendar(PrintContext context,
PrintOptions options) |
Modifier and Type | Method and Description |
---|---|
protected void |
addLocation(java.lang.String calId,
VEvent event,
org.w3c.dom.Element text) |
protected void |
addPage() |
protected void |
addText(int x,
java.lang.String text) |
java.lang.Long |
duration(VEvent vevent) |
java.lang.String |
getEventLocationStyle(java.lang.String calId,
ICalendarElement.ParticipationStatus part) |
java.lang.String |
getEventTitleStyle(java.lang.String calId,
ICalendarElement.ParticipationStatus part) |
protected java.lang.String |
getLocation(VEvent event) |
protected ICalendarElement.ParticipationStatus |
getPart(VEvent vevent) |
protected int |
getRelativeDayOfWeeek(java.util.Calendar date) |
java.lang.String |
getTitle(VEvent e) |
protected boolean |
isAttendee(VEvent e) |
protected org.w3c.dom.Document |
newPage() |
abstract void |
process() |
byte[] |
sendJPEGString() |
byte[] |
sendPDFString() |
byte[] |
sendPNGString() |
byte[] |
sendSVGString() |
protected java.util.Map<java.lang.Long,java.util.List<ItemContainerValue<VEvent>>> |
sortOccurrences(java.util.List<ItemContainerValue<VEvent>> vevents,
BmDateTime begin,
BmDateTime end) |
protected static final int MARGIN
protected static final int LINE_HEIGHT
protected static final int PORTRAIT_LINE_WIDTH
protected static final int LANDSCAPE_LINE_WIDTH
protected static final int TAB_WIDTH
protected static final java.lang.String STYLE_GRID
protected static final java.lang.String STYLE_GRID_DASHED
protected static final java.lang.String STYLE_MORE_EVENTS
protected static final java.lang.String STYLE_MORE_EVENTS_LABEL
protected static final java.lang.String STYLE_GEN_DATE
protected int pageWidth
protected int pageHeight
protected int pageLineWidth
protected PrintOptions options
protected java.text.SimpleDateFormat dateFormat
protected java.text.SimpleDateFormat timeFormat
public java.util.List<org.w3c.dom.Document> pages
protected java.util.TimeZone GMTtimezone
protected java.util.TimeZone timezone
protected java.lang.String locale
protected SecurityContext securityContext
protected int y
protected org.w3c.dom.Document page
protected org.w3c.dom.Element root
protected java.util.Map<java.lang.String,PrintCalendar.CalInfo> calInfos
protected java.util.Properties lang
protected java.lang.String pageStyle
protected java.util.Locale l
protected int firstDayOfWeek
protected float evtHourStart
protected float evtHourEnd
protected java.util.Map<java.lang.String,java.lang.String> userSettings
public PrintCalendar(PrintContext context, PrintOptions options) throws ServerFault
ServerFault
public java.lang.String getEventTitleStyle(java.lang.String calId, ICalendarElement.ParticipationStatus part)
public java.lang.String getEventLocationStyle(java.lang.String calId, ICalendarElement.ParticipationStatus part)
protected java.util.Map<java.lang.Long,java.util.List<ItemContainerValue<VEvent>>> sortOccurrences(java.util.List<ItemContainerValue<VEvent>> vevents, BmDateTime begin, BmDateTime end)
vevents
- begin
- end
- protected ICalendarElement.ParticipationStatus getPart(VEvent vevent)
public byte[] sendSVGString() throws ServerFault
ServerFault
public byte[] sendJPEGString()
public byte[] sendPNGString()
public byte[] sendPDFString()
protected org.w3c.dom.Document newPage()
public abstract void process()
protected void addPage()
protected void addText(int x, java.lang.String text)
public java.lang.String getTitle(VEvent e)
protected boolean isAttendee(VEvent e)
protected void addLocation(java.lang.String calId, VEvent event, org.w3c.dom.Element text)
protected java.lang.String getLocation(VEvent event)
protected int getRelativeDayOfWeeek(java.util.Calendar date)
public java.lang.Long duration(VEvent vevent)
Copyright © 2021. All Rights Reserved.