|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sub_arctic.output.loaded_image | +--sub_arctic.style.styled_image
A subclass of loaded image which keeps additional information from the style system allowing it to be recreated under a new style ("restyled").
Field Summary | |
protected style |
_creating_style
The style this image was originally created with. |
protected int |
_index
The index of this image within its image set (if any). |
protected boolean |
_locked
Whether the image is locked -- that is whether it will ignore attempted style changes. |
protected java.lang.Object[] |
_parameters
The parameters which were passed to a composer to construct this image (or null if the image was not constructed). |
protected style_resource_desig |
_style_desig
The style resource designator cooresponding to the type of resource this image is, or the composer object which created it. |
Fields inherited from class sub_arctic.output.loaded_image |
_image,
_is_loaded |
Constructor Summary | |
styled_image(java.awt.Image img)
Construct from an Image (this image is marked as not loaded yet). |
|
styled_image(java.awt.Image img,
style stl,
java.lang.String des,
java.lang.Object[] parms,
int indx)
Construct from an Image (this image is marked as not loaded yet). |
|
styled_image(java.awt.Image img,
style stl,
style_resource_desig des,
java.lang.Object[] parms,
int indx)
Construct from an Image (this image is marked as not loaded yet). |
|
styled_image(int[] data,
int w,
int h)
Construct from in memory data. |
|
styled_image(int[] data,
int w,
int h,
style stl,
java.lang.String des,
java.lang.Object[] parms,
int indx)
Construct from in memory data. |
|
styled_image(int[] data,
int w,
int h,
style stl,
style_resource_desig des,
java.lang.Object[] parms,
int indx)
Construct from in memory data. |
|
styled_image(int w,
int h)
Construct a blank in memory image of the given size and force it to be "loaded" (not clear what that means for in-memory images, but it seems to be required). |
|
styled_image(int w,
int h,
style stl,
java.lang.String des,
java.lang.Object[] parms,
int indx)
Construct a blank in memory image of the given size and force it to be "loaded" (not clear what that means for in-memory images, but it seems to be required). |
|
styled_image(int w,
int h,
style stl,
style_resource_desig des,
java.lang.Object[] parms,
int indx)
Construct a blank in memory image of the given size and force it to be "loaded" (not clear what that means for in-memory images, but it seems to be required). |
|
styled_image(loaded_image img)
Construct from a loaded image |
|
styled_image(loaded_image img,
style stl,
java.lang.String des,
java.lang.Object[] parms,
int indx)
Construct from a loaded image |
|
styled_image(loaded_image img,
style stl,
style_resource_desig des,
java.lang.Object[] parms,
int indx)
Construct from a loaded image |
Method Summary | |
style |
creating_style()
The style this image was originally created with. |
int |
index()
The index of this image within its image set (if any). |
void |
lock()
Lock the image. |
boolean |
locked()
Whether the image is locked -- that is whether it will ignore attempted style changes. |
java.lang.Object[] |
parameters()
The parameters which were passed to a composer to construct this image (or null if the image was not constructed). |
styled_image |
restyle(style under_new_style)
Create a new image which is a restyling of this one. |
void |
set_creating_style(style stl)
Set the style which created this image. |
void |
set_index(int indx)
Set the index of this image within its image set (if any). |
void |
set_locked(boolean val)
Set whether the image is locked -- that is whether it will ignore attempted style changes. |
void |
set_parameters(java.lang.Object[] parms)
Set the parameters which were passed to a composer to construct this image (or null if the image was not constructed). |
void |
set_style_desig(style_resource_desig des)
Set the style resource designator cooresponding to the type of resource this image is, or the composer object which created it. |
style_resource_desig |
style_desig()
The style resource designator cooresponding to the type of resource this image is, or the composer object which created it. |
void |
unlock()
Unlock the image. |
Methods inherited from class sub_arctic.output.loaded_image |
get_drawable,
height,
image_from_intensity_map,
image,
is_loaded,
raw_image,
set_is_loaded,
width |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected style _creating_style
protected style_resource_desig _style_desig
protected java.lang.Object[] _parameters
protected int _index
protected boolean _locked
lock()
,
unlock()
Constructor Detail |
public styled_image(loaded_image img)
loaged_image
- img the image to copy frompublic styled_image(java.awt.Image img)
Image
- img the Image to create the loaded_image frompublic styled_image(int w, int h)
int
- w the width of the image in pixels.int
- h the height of the image in pixels.public styled_image(int[] data, int w, int h)
int[]
- the data to build the image fromint
- w the width of the imageint
- h the height of the imagepublic styled_image(loaded_image img, style stl, style_resource_desig des, java.lang.Object[] parms, int indx)
loaged_image
- img the image to copy fromstyle
- stl the style that created this imagestyle_resource_desig
- des the resource designator for this image,
or the composer that created it.Object[]
- parms the parameters passed to a composer to
create this image (or null if this image
was not created by a composer).int
- indx index of this image within a style
created image set (ignored if this
image is not from a set).public styled_image(java.awt.Image img, style stl, style_resource_desig des, java.lang.Object[] parms, int indx)
Image
- img the Image to create the loaded_image fromstyle
- stl the style that created this imagestyle_resource_desig
- des the resource designator for this image,
or the composer that created it.Object[]
- parms the parameters passed to a composer to
create this image (or null if this image
was not created by a composer).int
- indx index of this image within a style
created image set (ignored if this
image is not from a set).public styled_image(int w, int h, style stl, style_resource_desig des, java.lang.Object[] parms, int indx)
int
- w the width of the image in pixels.int
- h the height of the image in pixels.style
- stl the style that created this imagestyle_resource_desig
- des the resource designator for this image,
or the composer that created it.Object[]
- parms the parameters passed to a composer to
create this image (or null if this image
was not created by a composer).int
- indx index of this image within a style
created image set (ignored if this
image is not from a set).public styled_image(int[] data, int w, int h, style stl, style_resource_desig des, java.lang.Object[] parms, int indx)
int[]
- the data to build the image fromint
- w the width of the imageint
- h the height of the imagestyle
- stl the style that created this imagestyle_resource_desig
- des the resource designator for this image,
or the composer that created it.Object[]
- parms the parameters passed to a composer to
create this image (or null if this image
was not created by a composer).int
- indx index of this image within a style
created image set (ignored if this
image is not from a set).public styled_image(loaded_image img, style stl, java.lang.String des, java.lang.Object[] parms, int indx)
loaged_image
- img the image to copy fromstyle
- stl the style that created this imageString
- des the resource designator name for this
image, or the composer that created it.Object[]
- parms the parameters passed to a composer to
create this image (or null if this image
was not created by a composer).int
- indx index of this image within a style
created image set (ignored if this
image is not from a set).public styled_image(java.awt.Image img, style stl, java.lang.String des, java.lang.Object[] parms, int indx)
Image
- img the Image to create the loaded_image fromstyle
- stl the style that created this imageString
- des the resource designator name for this image,
or the composer that created it.Object[]
- parms the parameters passed to a composer to
create this image (or null if this image
was not created by a composer).int
- indx index of this image within a style
created image set (ignored if this
image is not from a set).public styled_image(int w, int h, style stl, java.lang.String des, java.lang.Object[] parms, int indx)
int
- w the width of the image in pixels.int
- h the height of the image in pixels.style
- stl the style that created this imageString
- des the resource designator name for this image,
or the composer that created it.Object[]
- parms the parameters passed to a composer to
create this image (or null if this image
was not created by a composer).int
- indx index of this image within a style
created image set (ignored if this
image is not from a set).public styled_image(int[] data, int w, int h, style stl, java.lang.String des, java.lang.Object[] parms, int indx)
int[]
- the data to build the image fromint
- w the width of the imageint
- h the height of the imagestyle
- stl the style that created this imageString
- des the resource designator for this image,
or the composer that created it.Object[]
- parms the parameters passed to a composer to
create this image (or null if this image
was not created by a composer).int
- indx index of this image within a style
created image set (ignored if this
image is not from a set).Method Detail |
public style creating_style()
public void set_creating_style(style stl)
style
- stl the style that created this imagerestyle(sub_arctic.style.style)
public style_resource_desig style_desig()
public void set_style_desig(style_resource_desig des)
style_resource_desig
- des the new designator.public java.lang.Object[] parameters()
public void set_parameters(java.lang.Object[] parms)
Object[]
- parms the parameterspublic int index()
public void set_index(int indx)
int
- indx the new index valuepublic boolean locked()
lock()
,
unlock()
public void set_locked(boolean val)
boolean
- indicating new style lock statuslock()
,
unlock()
public void lock()
restyle(sub_arctic.style.style)
,
set_locked(boolean)
public void unlock()
restyle(sub_arctic.style.style)
,
set_locked(boolean)
public styled_image restyle(style under_new_style)
style
- under_new_style the new style we want the image created by
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |