Modifier and Type | Class and Description |
---|---|
static class |
NASAPoint.GradientType |
Modifier and Type | Field and Description |
---|---|
protected static float |
brightness1 |
protected static float |
brightness2 |
protected static java.awt.Color |
color1 |
protected static java.awt.Color |
color2 |
static NASAPoint.GradientType |
gradientType |
protected static float |
hue1 |
protected static float |
hue2 |
static float |
maxValue
Valid range of values.
|
static float |
minValue
Valid range of values.
|
protected static float |
saturation1 |
protected static float |
saturation2 |
long |
timestamp
date of the given point
|
int |
value
Value stored at this point
|
Constructor and Description |
---|
NASAPoint() |
NASAPoint(double x,
double y,
int value,
long timestamp) |
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics g,
Rectangle fileMBR,
int imageWidth,
int imageHeight,
double scale)
Draws a shape to the given graphics.
|
void |
fromText(Text text)
Retrieve information from the given text.
|
long |
getTimestamp() |
int |
getValue() |
void |
readFields(java.io.DataInput in) |
static void |
setColor1(java.awt.Color color) |
static void |
setColor2(java.awt.Color color) |
void |
setTimestamp(long t) |
void |
setValue(int value) |
java.lang.String |
toString() |
Text |
toText(Text text)
Store current object as string in the given text appending text already there.
|
void |
write(java.io.DataOutput out) |
clone, compareTo, compareTo, distanceTo, distanceTo, draw, equals, getIntersection, getMBR, isIntersected, set
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, distanceTo, draw, getMBR, isIntersected
public int value
public long timestamp
public static float minValue
public static float maxValue
protected static java.awt.Color color1
protected static java.awt.Color color2
protected static float hue1
protected static float hue2
protected static float saturation1
protected static float saturation2
protected static float brightness1
protected static float brightness2
public static NASAPoint.GradientType gradientType
public NASAPoint()
public NASAPoint(double x, double y, int value, long timestamp)
public void write(java.io.DataOutput out) throws java.io.IOException
public void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in class Point
java.io.IOException
public Text toText(Text text)
TextSerializable
toText
in interface TextSerializable
toText
in class Point
public void fromText(Text text)
TextSerializable
fromText
in interface TextSerializable
fromText
in class Point
public static void setColor1(java.awt.Color color)
public static void setColor2(java.awt.Color color)
public void draw(java.awt.Graphics g, Rectangle fileMBR, int imageWidth, int imageHeight, double scale)
Shape
draw
in interface Shape
draw
in class Point
g
- - the graphics or canvas to draw tofileMBR
- - the MBR of the file in which the shape is containedimageWidth
- - width of the image to drawimageHeight
- - height of the image to drawscale
- - the scale used to convert shape coordinates to image coordinatespublic void setTimestamp(long t)
setTimestamp
in interface NASAShape
public long getTimestamp()
getTimestamp
in interface NASAShape