|
All Methods zio package context |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object zio.ZObject zio.ZPixels
This, AS YET UNIMPLEMENTED, class will define an area of the screen where you can plot colored points.
Constructor Summary | |
ZPixels()
|
Method Summary | |
protected void |
action(boolean isLeftButton,
java.awt.Point point)
For execution when user clicks the mouse over the ZPixels . |
ZPixels |
background(java.awt.Color c)
Suffix that sets the background color. |
void |
clear()
|
ZPixels |
color(java.awt.Color c)
Sets the background color of the ZPixels . |
void |
draw()
|
protected void |
enableMouseAction()
Method for causing the action() method to be
executed upon mouse clicks. |
void |
plot(java.awt.Color color,
java.awt.Point p)
|
ZPixels |
size(java.awt.Dimension desiredSize)
Suffix that overrides the default size. |
Methods inherited from class zio.ZObject |
getSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ZPixels()
Method Detail |
public final ZPixels size(java.awt.Dimension desiredSize)
desiredSize
- the desired sizepublic final ZPixels color(java.awt.Color c)
ZPixels
. Need not be used
as a suffix but when it is used as a suffix
the effect is the same as the
background
suffix
c
- the desired colorpublic final ZPixels background(java.awt.Color c)
color
method.
c
- the desired background colorpublic final void plot(java.awt.Color color, java.awt.Point p)
public final void clear()
public final void draw()
protected void enableMouseAction()
action()
method to be
executed upon mouse clicks.
Has no discernable effect unless the action()
method is overridden in a subclass.
protected void action(boolean isLeftButton, java.awt.Point point)
ZPixels
. In this base class the action()
method does nothing and is not invoked.
To cause this method to be invoked whenever the user clicks the mouse,
enableMouseAction()
ZObject
class, it is usually easier to use suffixes
this way.)
The point passed to action()
has the upper lefthand corner of the component as
its origin. The y coordinate is positive in a downward
direction.
isLeftButton
- true when the clicked button was the left
or "first" buttonpoint
- coordinates of the point where the
left mouse button was released
|
author context |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |