|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.layer.Pixers
public class Pixers
Utility class for use with Pixers.
Method Summary | |
---|---|
static Pixer |
clip(Pixer base,
Rectangle clip)
Returns a clipped version of a given pixel iterator whose extent is not known. |
static Pixer |
clip(Pixer base,
Rectangle clip,
int xminBase,
int xmaxBase,
int yminBase,
int ymaxBase)
Returns a clipped version of a given pixel iterator whose extent is known. |
static Pixer |
createArrayPixer(int[] xs,
int[] ys,
int np)
Returns a new pixer that iterates over a given list of X,Y coordinates. |
static Pixer |
translate(Pixer base,
int tx,
int ty)
Returns a translated version of a pixel iterator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Pixer createArrayPixer(int[] xs, int[] ys, int np)
xs
- array of X valuesys
- array of Y valuesnp
- number of points (xs and ys must be at least this length)
public static Pixer translate(Pixer base, int tx, int ty)
base
- base pixel iteratortx
- offset in X directionty
- offset in Y direction
public static Pixer clip(Pixer base, Rectangle clip)
base
- base pixel iteratorclip
- clipping rectangle
public static Pixer clip(Pixer base, Rectangle clip, int xminBase, int xmaxBase, int yminBase, int ymaxBase)
base
- base pixel iteratorclip
- clipping rectanglexminBase
- lower limit of X values dispensed by base pixerxmaxBase
- upper limit of X values dispensed by base pixeryminBase
- lower limit of Y values dispensed by base pixerymaxBase
- upper limit of Y values dispensed by base pixer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |