|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RenderInfo
Method Summary | |
---|---|
RGB |
getBackgroundColor()
Accessor method to return the fill color of the rendered image. |
RGB |
getForegroundColor()
Accessor method to return the outline color of the rendered image. |
int |
getHeight()
Accessor method to return the height of the rendered image. |
int |
getWidth()
Accessor method to return the width of the rendered image. |
void |
setValues(int width,
int height,
boolean maintainAspectRatio,
boolean antialias,
RGB background,
RGB foreground)
Generic setter to set values in the RenderInfo data structure. |
boolean |
shouldAntiAlias()
Accessor method to return whether or not the vector data is anti-aliased. |
boolean |
shouldMaintainAspectRatio()
Accessor method to return whether or not the aspect ratio is maintained. |
Method Detail |
---|
int getWidth()
int getHeight()
RGB getBackgroundColor()
RGB
value that is the fill color of the rendered
image. Note: a null
return value is valid and
means that the fill color defaults to the values stored in the
vector graphics file.RGB getForegroundColor()
RGB
value that is the outline color of the
rendered image. Note: a null
return value is valid
and means that the outline color defaults to the values stored in
the vector graphics file.boolean shouldMaintainAspectRatio()
boolean
true
if aspect ratio of
original vector file is maintained, false
otherwise.boolean shouldAntiAlias()
boolean
true
if vector graphic is
to be rendered wih anti-aliasing, false
otherwise.void setValues(int width, int height, boolean maintainAspectRatio, boolean antialias, RGB background, RGB foreground)
width
- the width of the rendered image to setheight
- the height of the rendered image to setmaintainAspectRatio
- boolean
true
if aspect ratio of
original vector file is maintained, false
otherwiseantialias
- boolean
true
if vector graphic
is to be rendered wih anti-aliasing, false
otherwise.background
- Color
fill color for the whole image: null
value defaults to stored values for each element in the vector
file.outline
- Color
outline color for the whole image: null
value defaults to stored foreground for each element in the
vector file.
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.