Logo Search packages:      
Sourcecode: jclic version File versions  Download package

edu::xtec::jclic::report::rp::Img Class Reference

Inheritance diagram for edu::xtec::jclic::report::rp::Img:

edu::xtec::jclic::report::rp::BasicReport edu::xtec::jclic::report::rp::Basic edu::xtec::jclic::report::rp::ReportsRequestProcessor edu::xtec::servlet::RequestProcessor edu::xtec::jclic::ReportServerConstants

List of all members.


Detailed Description

Author:
Francesc Busquets (fbusquets@xtec.net)

Definition at line 41 of file Img.java.


Public Member Functions

void dibuixaDistribucio (Graphics2D g2, Vector v, Rectangle box)
void dibuixaImatge (Graphics2D g2, Vector v, Rectangle box) throws Exception
void end ()
String getCookie (String name)
Date getDateParam (String name, Date defaultValue, boolean atMidnight)
String getHeader (String headerName)
java.util.Vector getHeaders (String headerName)
InputStream getInputStream ()
int getIntParam (String name, int defaultValue)
String getMsg (String key)
String getParam (String name, int index)
String getParam (String name)
String getParamNotNull (String name)
Object[] getParams (String name)
abstract String getTitle (ResourceBundle bundle)
abstract String getUrl ()
void head (java.io.PrintWriter out) throws Exception
void header (Vector v)
void header (java.util.Vector v)
boolean init () throws Exception
boolean noCache ()
void process (java.io.PrintWriter out) throws Exception
void process (java.io.OutputStream out) throws Exception
void setCookie (String name, String value)
void setCookies (java.util.Map map)
void setHeaders (java.util.Map map)
void setInputStream (InputStream is)
void setParam (String name, String[] value)
void setParam (String name, String value)
void setParams (java.util.Map map)
void standardHeader (java.io.PrintWriter out, String title, String menu) throws Exception
boolean usesWriter ()
String[][] vectorToArray (Vector v, boolean isCompoundObject, String wildCardKey, String wildCardMsg)
String[][] vectorToArray (Vector v, boolean isCompoundObject)
String[][] vToArray (Vector v, int keyIndex, int valueIndex)
String[][] vToArray (Vector v, String wildCardKey, String wildCardMsg)
boolean wantsInputStream ()

Static Public Member Functions

static String buttonAction (String action, String text, String extra)
static String buttonTo (String url, String text, String extra)
static void config (Map prop)
static String escape (String input)
static String filter (String input)
static String[] getFormattedNumbers ()
static float getMaximOrdenades (float maxim, boolean divisio)
static String httpDate (Date date)
static synchronized void initJDBCBridge (String propFile) throws Exception
static String linkTo (String url, String text, String style)
static synchronized void loadProperties (String file) throws Exception
static void setDirectResources (boolean v)
static synchronized void setProperties (Properties prop)
static String toNbsp (String src)

Public Attributes

int errCode
String errMsg

Static Public Attributes

static final String ACTION = "action"
static final String ACTIVITY = "activity"
static Color ALERT_COLOR
static Font ALERT_FONT
static final String AUTH = "AUTH"
static Color BG_COLOR
static Font BOLD_FONT
static Stroke BOLD_STROKE
static Color BORDER_COLOR
static final String BUNDLE = "edu.xtec.resources.messages.reportMessages"
static final String CFG_FILE = "jclicReports.properties"
static final String CHANGE = "change"
static final String CHARSET = "ISO-8859-1"
static final String CONTENT_LENGTH = "CONTENT_LENGTH"
static final String CONTENT_TYPE = "CONTENT_TYPE"
static final String COOKIE = "COOKIE"
static final String DATE = "date"
static int DEFAULT_HEADER_HEIGHT
static int DEFAULT_HEIGHT
static final long DEFAULT_SESSION_LIFETIME = 20L
static int DEFAULT_WIDTH
static final String DIST = "dist"
static Color DIST_COLOR
static int DIST_WIDTH
static final String EDIT = "edit"
static final String ERROR = "ERROR"
static final String EXTRA = "EXTRA"
static final String FALSE = "false"
static final String GRAPH = "graph"
static final String GRAPH_COLOR_ALERT = "graph_color_alert"
static final String GRAPH_COLOR_BG = "graph_color_bg"
static final String GRAPH_COLOR_BORDER = "graph_color_border"
static final String GRAPH_COLOR_DIST = "graph_color_dist"
static final String GRAPH_COLOR_HEADER_BG = "graph_color_header_bg"
static final String GRAPH_COLOR_HEADER_TEXT = "graph_color_header_text"
static final String GRAPH_COLOR_TEXT = "graph_color_text"
static final String GRAPH_COLOR_V1 = "graph_color_v1"
static final String GRAPH_COLOR_V2 = "graph_color_v2"
static final String GRAPH_DIST_WIDTH = "graph_dist_width"
static final String GRAPH_DIV_Y = "graph_div_y"
static final String GRAPH_FONT_FAMILY = "graph_font_family"
static final String GRAPH_FONT_SIZE = "graph_font_size"
static final String GRAPH_HEADER_HEIGHT = "graph_header_height"
static final String GRAPH_HEIGHT = "graph_height"
static final String GRAPH_MARGIN = "graph_margin"
static final String GRAPH_MARGIN_DIST_X = "graph_margin_dist_x"
static final String GRAPH_MARGIN_DIST_Y = "graph_margin_dist_y"
static final String GRAPH_MARGIN_X = "graph_margin_x"
static final String GRAPH_MARGIN_Y = "graph_margin_y"
static final String GRAPH_MAX_COLS = "graph_max_cols"
static final String GRAPH_STROKE_WIDTH = "graph_stroke_width"
static final String GRAPH_WIDTH = "graph_width"
static final String GROUP = "group"
static final String GROUP_GRAPH = "groupGraph"
static final int GRP = 1
static final String HEADER = "header"
static Color HEADER_BG_COLOR
static Color HEADER_TEXT_COLOR
static final String HEIGHT = "h"
static final String HTTP_AUTOSTART = "http_autostart"
static final int HTTP_BAD_REQUEST = 400
static final String HTTP_LOGFILE = "http_logFile"
static final int HTTP_NOT_FOUND = 404
static final String HTTP_PORT = "http_port"
static final String HTTP_TIMEOUT = "http_timeout"
static final int HTTP_UNAUTHORIZED = 401
static final String HTTP_VERBOSE = "http_verbose"
static final String[] KCC = {"sessionKey", "sessionCode", "sessionContext"}
static final String LANG = "lang"
static final String LANGUAGE = "language"
static final String LOOK = "lookAndFeel"
static int M_X_DIST
static int M_Y_DIST
static final String MAIN_FORM = "mainForm"
static int MARGE_X
static int MARGE_Y
static int MAX_COLS
static int MRG
static final int N_DIST_ELEMENTS = 5
static final String NEW = "new"
static int NUM_DIVISIONS_Y
static final String ON = "on"
static final String PID = "pid"
static final int PRJ = 2
static final String PROJECT = "project"
static final String PROJECT_GRAPH = "projectGraph"
static final String PWD = "pwd"
static final String REDIRECT = "REDIRECT"
static final String RETRY = "retry"
static final File SDIR = new File(System.getProperty("java.io.tmpdir"))
static final String SESSION_LIFETIME = "session_lifetime"
static Font STD_FONT
static final String TEXT = "text"
static Color TEXT_COLOR
static Stroke THIN_STROKE
static final String TOOLTIPS = "tooltips"
static final String TRUE = "true"
static final String TYPE = "type"
static final int UNKNOWN = -1
static final String URL = "img"
static final String USER = "user"
static final String USER_GRAPH = "userGraph"
static final int USR = 0
static Color V1_COLOR
static Color V2_COLOR
static final String WIDTH = "w"
static final String WILDCARD = "-1"

Protected Member Functions

void body (java.io.PrintWriter out) throws Exception
boolean checkAuth ()
void drawHeader (Graphics2D g2, Rectangle box) throws Exception
void endBody (java.io.PrintWriter out)
void endHead (java.io.PrintWriter out)
int getAction (String[] actions, int defaultAction)
boolean getBoolParam (String paramStr, String expectedValue)
Vector getSessionList () throws Exception
void linkScript (String file, java.io.PrintWriter out)
void linkStyle (String fileScreen, String filePrint, java.io.PrintWriter out)
void startBody (java.io.PrintWriter out)
void startHead (java.io.PrintWriter out)
void title (String prefix, String title, java.io.PrintWriter out)
void writeScript (String text, java.io.PrintWriter out)

Static Protected Member Functions

static String formatNumber (float n)
static String resourceUrl (String resource)
static String urlParam (String url, String key, String value)
static StringBuffer urlParamSb (StringBuffer sb, String key, String value, boolean first)

Protected Attributes

String activityName
String auth
ResourceBundle bundle
DateManager dm
String groupId
String[] kcc
String lang
String[] months
NumberFormat numberFormat
String pageId
String projectName
boolean retry
DateFormat shortDateFormat
int type = UNKNOWN
String userId
DateFormat veryShortDateFormat

Static Protected Attributes

static ReportServerJDBCBridge bridge
static HashMap localeObjects = new HashMap()
static Properties prop
static HashMap properties = new HashMap()
static HashMap sessions = new HashMap()

Package Attributes

int height
boolean isDist
String titleKey
int width
boolean withHeader

Static Private Attributes

static DecimalFormat DF = null

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index