|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object standup.clouds.STANDUPShape
public class STANDUPShape
A STANDUPShape
is an element that has a background image, can
optionally be highlighted, and has space for a CloudLabel
. The image
is provided as a filename that is assumed to be acceptable by
GUIGraphicsHandler.getGUIImage(), but together with it is a specification of
the BubbleLabel 'canvas' in terms of width, height, xoffset and yoffset,
defined in relative terms to the image width and height!
Field Summary | |
---|---|
(package private) Dimension |
dimension
|
protected BufferedImage |
img
The default background image of this STANDUPShape |
protected BufferedImage |
imgHighlighted
The 'highlighted' background image of this STANDUPShape , i.e. |
(package private) Point |
location
|
(package private) Dimension |
maxDimension
|
protected ShapeDetails |
shapeDetails
ShapeDetails for this shape. |
Constructor Summary | |
---|---|
STANDUPShape(Point p,
Dimension d,
Dimension md,
ShapeDetails shd)
|
|
STANDUPShape(Point p,
Dimension d,
ShapeDetails shd)
|
Method Summary | |
---|---|
(package private) boolean |
contains(int pointx,
int pointy)
|
(package private) Dimension |
getBubbleLabelCanvasDimension()
|
(package private) Dimension |
getDimension()
specific constructor for talking head -- point and dimension are calculated from height TODO this is so different, it shouldn't be a MyShape, really... |
(package private) Point |
getLocation()
|
(package private) Dimension |
getMaximumBubbleLabelCanvasDimension()
This Dimension is used for laying out the BubbleLabel. |
(package private) ShapeDetails |
getShapeDetails()
|
(package private) void |
myDraw(Graphics2D g2)
|
(package private) void |
myDrawHighlighted(Graphics2D g2)
|
(package private) void |
setImages()
|
(package private) void |
setLocation(Point newlocation)
|
(package private) void |
setSize(Dimension newdimension)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected BufferedImage img
STANDUPShape
protected BufferedImage imgHighlighted
STANDUPShape
, i.e.
when it is focussed
protected final ShapeDetails shapeDetails
Dimension dimension
final Dimension maxDimension
Point location
Constructor Detail |
---|
STANDUPShape(Point p, Dimension d, ShapeDetails shd)
STANDUPShape(Point p, Dimension d, Dimension md, ShapeDetails shd)
Method Detail |
---|
void setImages()
Dimension getDimension()
height
- imageFile
- imageFileHighlighted
- shtype
- comp
- Dimension getBubbleLabelCanvasDimension()
Dimension getMaximumBubbleLabelCanvasDimension()
Point getLocation()
boolean contains(int pointx, int pointy)
void myDraw(Graphics2D g2)
void myDrawHighlighted(Graphics2D g2)
void setLocation(Point newlocation)
void setSize(Dimension newdimension)
ShapeDetails getShapeDetails()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |