|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.aladin.Obj
public abstract class Obj
Interface pour la manipulation d'un objet graphique affichable dans la vue
Field Summary | |
---|---|
static int |
CIRCLE
|
static int |
CIRCLES
|
static int |
CROSS
|
double |
dej
J2000 DEC coordinate |
static int |
DOT
|
java.lang.String |
id
|
static int |
OVAL
|
static int |
PLUS
|
static int |
POINT
|
double |
raj
J2000 RA coordinate |
static int |
RHOMB
|
static int |
SQUARE
|
static int |
TRIANGLE
|
Constructor Summary | |
---|---|
Obj()
|
Method Summary | |
---|---|
double |
getDistance(Obj obj)
Tool : Return the distance in degrees between this object and another |
java.lang.String[] |
getNames()
Return the names associated to the columns (Source object) |
java.lang.String |
getObjType()
Return the object type |
double |
getRadius()
Retourne la taille angulaire du repère en arcmin (pour le moment en pixel) |
java.lang.String |
getSexa()
Return the position in J2000 sexagesimal coord |
int |
getSize()
Return the number of columns (Source object) |
java.lang.String[] |
getUCDs()
Return the UCDs associated to the columns (Source object) |
java.lang.String[] |
getUnits()
Return the units associated to the columns (Source object) |
java.lang.String[] |
getValues()
Return the values associated to the object (Source object) |
int |
indexOf(java.lang.String key)
Return the index of a column (Source object). |
boolean |
isSelected()
Retourne true si la source a le flag sélect positionné |
void |
setColumn(int index,
java.lang.String name,
java.lang.String unit,
java.lang.String ucd,
int width)
Set metadata for a specifical column (name, unit, ucd, display width). |
void |
setSelected(boolean flag)
Select or unselect the object |
void |
setShape(int shape)
Set the drawing shape (dedicated for catalog sources) |
boolean |
setValue(int index,
java.lang.String value)
Set a new value for a specifical column index For a new column, creates it before via the selColumn() method |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int OVAL
public static final int SQUARE
public static final int CIRCLE
public static final int RHOMB
public static final int CROSS
public static final int TRIANGLE
public static final int PLUS
public static final int CIRCLES
public static final int POINT
public static final int DOT
public double raj
public double dej
public java.lang.String id
Constructor Detail |
---|
public Obj()
Method Detail |
---|
public final boolean isSelected()
public double getRadius()
public double getDistance(Obj obj)
public java.lang.String[] getValues()
public java.lang.String[] getNames()
public java.lang.String[] getUnits()
public java.lang.String[] getUCDs()
public int getSize()
public int indexOf(java.lang.String key)
key
- name or ucd to find
public void setColumn(int index, java.lang.String name, java.lang.String unit, java.lang.String ucd, int width)
index
- number of column (0 is the first one)name
- new name or null for no modificationunit
- new unit or nullucd
- new ucd or nullwidth
- new width or -1. 0 to use the default display width.public boolean setValue(int index, java.lang.String value)
index
- column index (0 is the first column)value
- new value for this column
public void setShape(int shape)
sourceType
- Obj.OVAL, SQUARE, CIRCLE, RHOMB, PLUS, CROSS, TRIANGLE, CIRCLES, POINT, DOTpublic java.lang.String getObjType()
public java.lang.String getSexa()
public void setSelected(boolean flag)
flag
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |