sub_arctic.style
Class shadow_roundrect_blank

java.lang.Object
  |
  +--sub_arctic.style.composition_part_base
        |
        +--sub_arctic.style.blank_base
              |
              +--sub_arctic.style.hv_fill_blank
                    |
                    +--sub_arctic.style.shadow_rect_blank
                          |
                          +--sub_arctic.style.shadow_roundrect_blank

public class shadow_roundrect_blank
extends shadow_rect_blank

This class implements a simple blank base on a rounded rectangle with a highlight color one pixel above and left, and a shadow color one pixel below and right.


Field Summary
protected static int corner_size
          Constant indicating size of round corner
 
Fields inherited from class sub_arctic.style.shadow_rect_blank
_draw_border, _hilight_color, _main_color, _shadow_color, border_size, shadow_size
 
Fields inherited from class sub_arctic.style.blank_base
_draw_area_h, _draw_area_w, _draw_area_x_off, _draw_area_y_off, _h, _w
 
Fields inherited from class sub_arctic.style.composition_part_base
_feature_points, _x, _y
 
Constructor Summary
shadow_roundrect_blank(int size_kind, int req_w, int req_h, java.awt.Color in_color, java.awt.Color hi_color, java.awt.Color shad_color, boolean draw_brd)
          Construct a blank based on a size 3 colors (main, highlight, and shadow), and a border draw flag.
shadow_roundrect_blank(int w_kind, int req_w, int h_kind, int req_h, java.awt.Color in_color, java.awt.Color hi_color, java.awt.Color shad_color, boolean draw_brd)
          Construct a blank based on a size 3 colors (main, highlight, and shadow), and a border draw flag.
 
Method Summary
 blank build(int w_kind, int req_w, int h_kind, int req_h)
          Create a new blank of a given size using this one as a prototype.
 void draw_self(drawable on_surface, int at_x, int at_y)
          Draw the image of the blank on the given drawing surface with the top left corner of its bounding box at the given location.
 
Methods inherited from class sub_arctic.style.shadow_rect_blank
draw_border, hilight_color, main_color, set_draw_border, set_hilight_color, set_main_color, set_shadow_color, shadow_color
 
Methods inherited from class sub_arctic.style.blank_base
build, can_set_h, can_set_w, draw_area_h, draw_area_w, draw_area_x_off, draw_area_y_off, h, set_draw_area_h, set_draw_area_w, set_h, set_w, w
 
Methods inherited from class sub_arctic.style.composition_part_base
feature_point, num_feature_points, set_feature_points, set_x, set_y, toString, x, y
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

corner_size

protected static final int corner_size
Constant indicating size of round corner
Constructor Detail

shadow_roundrect_blank

public shadow_roundrect_blank(int w_kind,
                              int req_w,
                              int h_kind,
                              int req_h,
                              java.awt.Color in_color,
                              java.awt.Color hi_color,
                              java.awt.Color shad_color,
                              boolean draw_brd)
Construct a blank based on a size 3 colors (main, highlight, and shadow), and a border draw flag. Sizes can be either EXTERIOR_SIZED, or INTERIOR_SIZED indicating overall size of the blank, or size of the drawable area of the blank, respectively. If requested, the border will be drawn one pixel wide around the main area in black.
Parameters:
int - w_kind either EXTERIOR_SIZED, or INTERIOR_SIZED to indicate whether the given size request is for the whole image or the interior drawing area within the blank.
int - req_w requested width.
int - h_kind either EXTERIOR_SIZED, or INTERIOR_SIZED to indicate whether the given size request is for the whole image or the interior drawing area within the blank.
int - req_h requested height.
Color - in_color main color of blank.
Color - hi_color highligh color drawn at top and left.
Color - shad_color shadow color drawn at bottom and right.
boolean - draw_brd do we draw the border

shadow_roundrect_blank

public shadow_roundrect_blank(int size_kind,
                              int req_w,
                              int req_h,
                              java.awt.Color in_color,
                              java.awt.Color hi_color,
                              java.awt.Color shad_color,
                              boolean draw_brd)
Construct a blank based on a size 3 colors (main, highlight, and shadow), and a border draw flag. Sizes can be either EXTERIOR_SIZED, or INTERIOR_SIZED indicating overall size of the blank, or size of the drawable area of the blank, respectively. If requested, the border will be drawn one pixel wide around the main area in black.
Parameters:
int - size_kind either EXTERIOR_SIZED, or INTERIOR_SIZED to indicate whether the given size request is for the whole image or the interior drawing area within the blank.
int - req_w requested width.
int - req_h requested height.
Color - in_color main color of blank.
Color - hi_color highligh color drawn at top and left.
Color - shad_color shadow color drawn at bottom and right.
boolean - draw_brd do we draw the border
Method Detail

build

public blank build(int w_kind,
                   int req_w,
                   int h_kind,
                   int req_h)
Create a new blank of a given size using this one as a prototype. Sizes can be specified as interior size (indicating allowable internal drawing area) or exterior size (indicating the bound of the resulting blank) by coding INTERIOR_SIZED or EXTERIOR_SIZED respectively.
Parameters:
int - w_kind either EXTERIOR_SIZED or INTERIOR_SIZED to indicate whether the given size request is for the whole image or the interior drawing area within the blank. EXTERIOR_SIZED requests below a minimum size may result in creation of a blank at the (larger) minimum size instead of the requested size.
int - req_w requested width.
int - h_kind either EXTERIOR_SIZED or INTERIOR_SIZED to indicate whether the given size request is for the whole image or the interior drawing area within the blank. EXTERIOR_SIZED requests below a minimum size may result in creation of a blank at the (larger) minimum size instead of the requested size.
int - req_h requested height.
Returns:
blank a new blank constructed based on this one as a prototype.
Overrides:
build in class shadow_rect_blank

draw_self

public void draw_self(drawable on_surface,
                      int at_x,
                      int at_y)
Draw the image of the blank on the given drawing surface with the top left corner of its bounding box at the given location.
Parameters:
drawable - on_surface the drawing surface to draw on.
int - at_x the x location to place the image at.
int - at_y the y location to place the image at.
Overrides:
draw_self in class shadow_rect_blank