|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.display.ColorScaleInfo
public class ColorScaleInfo
Class to hold information about a ColorScale
| Field Summary | |
|---|---|
static String |
BOTTOM
Upper Right Placement |
static int |
HORIZONTAL
Horizontal orientation |
static String |
LEFT
Lower Left Placement |
static String |
RIGHT
Upper Left Placement |
static String |
TOP
Upper Left Placement |
static int |
VERTICAL
Vertical orientation |
| Constructor Summary | |
|---|---|
ColorScaleInfo()
default ctor |
|
ColorScaleInfo(ColorScaleInfo that)
Create a color scale information object from another |
|
ColorScaleInfo(String name)
Construct a new ColorScaleInfo with the given name
and default orientation. |
|
ColorScaleInfo(String name,
int orient)
Construct a new ColorScaleInfo with the given name
and orientation. |
|
ColorScaleInfo(String name,
int orient,
float[][] palette)
Create a color scale information object with the given parameters. |
|
ColorScaleInfo(String name,
int orient,
float x,
float y,
Font labelFont,
float[][] colorPalette)
Create a color scale information object with the given parameters. |
|
ColorScaleInfo(String name,
int orient,
float x,
float y,
Font labelFont,
float[][] colorPalette,
Color labelColor)
Create a color scale information object with the given parameters. |
|
ColorScaleInfo(String name,
int orient,
String placement)
Construct a new ColorScaleInfo with the given name
and orientation and placement. |
|
ColorScaleInfo(String name,
int orient,
String placement,
Font labelFont,
float[][] colorPalette)
Create a color scale information object with the given parameters. |
|
| Method Summary | |
|---|---|
float[][] |
getColorPalette()
Get the color palette of the color scale. |
boolean |
getIsVisible()
Get the color of the labels |
Color |
getLabelColor()
Get the label Font of the color scale. |
Font |
getLabelFont()
Get the label Font of the color scale. |
int |
getLabelSide()
Get the color of the labels |
String |
getName()
Get the name of the color scale. |
int |
getOrientation()
Get the orientation of the color scale. |
String |
getPlacement()
Get the placment of the color scale. |
float |
getX()
Get the x position of the color scale. |
float |
getY()
Get the y position of the color scale. |
void |
setColorPalette(float[][] colorPalette)
Set the color palette of the color scale. |
void |
setIsVisible(boolean show)
Set the visibility |
void |
setLabelColor(Color color)
Set the label Color of the color scale. |
void |
setLabelFont(Font font)
Set the label Font of the color scale. |
void |
setLabelSide(int side)
Set the labelling side. |
void |
setName(String name)
Set the name of the color scale. |
void |
setOrientation(int orient)
Set the orientation of the color scale. |
void |
setPlacement(String place)
Set the placement of the color scale. |
void |
setX(float x)
Set the x position of the color scale. |
void |
setY(float y)
Set the y position of the color scale. |
String |
toString()
To string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int HORIZONTAL
public static final int VERTICAL
public static final String TOP
public static final String BOTTOM
public static final String LEFT
public static final String RIGHT
| Constructor Detail |
|---|
public ColorScaleInfo()
public ColorScaleInfo(String name)
ColorScaleInfo with the given name
and default orientation.
name - name for this color scale object.
public ColorScaleInfo(String name,
int orient)
ColorScaleInfo with the given name
and orientation.
name - name for this color scale object.orient - orientation for this ColorScale
public ColorScaleInfo(String name,
int orient,
String placement)
ColorScaleInfo with the given name
and orientation and placement.
name - name for this color scale object.orient - orientation for this ColorScaleplacement - the placement
public ColorScaleInfo(String name,
int orient,
float[][] palette)
name - name of the ColorScaleorient - orientation (HORIZONTAL, VERTICAL)palette - color palette (rgb values)
public ColorScaleInfo(String name,
int orient,
float x,
float y,
Font labelFont,
float[][] colorPalette)
name - name of the ColorScaleorient - orientation (HORIZONTAL, VERTICAL)x - x location (percent from left side of display)y - y location (percent from top side of display)labelFont - font used for labelscolorPalette - color palette (rgb values)
public ColorScaleInfo(String name,
int orient,
String placement,
Font labelFont,
float[][] colorPalette)
name - name of the ColorScaleorient - orientation (HORIZONTAL, VERTICAL)placement - placement (TOP, LEFT, etc)labelFont - font used for labelscolorPalette - color palette (rgb values)
public ColorScaleInfo(String name,
int orient,
float x,
float y,
Font labelFont,
float[][] colorPalette,
Color labelColor)
name - name of the ColorScaleorient - orientation (HORIZONTAL, VERTICAL)x - x location (percent from left side of display)y - y location (percent from top side of display)labelFont - font used for labelscolorPalette - color palette (rgb values)labelColor - color for labelspublic ColorScaleInfo(ColorScaleInfo that)
that - the other ColorScaleInfo| Method Detail |
|---|
public void setName(String name)
name - name to usepublic String getName()
public void setOrientation(int orient)
orient - orientation to usepublic int getOrientation()
public void setPlacement(String place)
place - placement to use (e.g. TOP)public String getPlacement()
public void setX(float x)
x - x position to usepublic float getX()
public void setY(float y)
y - y position to usepublic float getY()
public void setLabelFont(Font font)
Font of the color scale.
font - font to usepublic Font getLabelFont()
Font of the color scale.
public void setColorPalette(float[][] colorPalette)
colorPalette - color palette to usepublic float[][] getColorPalette()
public void setLabelColor(Color color)
Color of the color scale.
color - Color to usepublic Color getLabelColor()
Font of the color scale.
public void setLabelSide(int side)
side - labelling side (PRIMARY, SECONDARY);public int getLabelSide()
public void setIsVisible(boolean show)
show - true to be visiblepublic boolean getIsVisible()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||