|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmaspack.render.color.ColorMapBase
public abstract class ColorMapBase
Field Summary | |
---|---|
static PropertyList |
myProps
|
Constructor Summary | |
---|---|
ColorMapBase()
|
Method Summary | |
---|---|
ColorMapBase |
clone()
Returns a clone of this composite property. |
abstract ColorMapBase |
copy()
|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by this object. |
static int |
getColor3Value(java.awt.Color c)
|
static int |
getColor4Value(java.awt.Color c)
|
Property |
getProperty(java.lang.String pathName)
Returns a property associated with a specified path name. |
HasProperties |
getPropertyHost()
Should be either HierarchyNode or HasProperties |
PropertyInfo |
getPropertyInfo()
If this object is a property, returns the corresponding information |
static java.lang.Class<?>[] |
getSubClasses()
|
boolean |
isWritable()
Returns true if this component should in fact be written to
secondary storage. |
void |
scan(ReaderTokenizer rtok,
java.lang.Object ref)
Scans this element from a ReaderTokenizer. |
void |
setPropertyHost(HasProperties newParent)
Sets the host for this property. |
void |
setPropertyInfo(PropertyInfo info)
Sets the property information for this property. |
void |
write(java.io.PrintWriter pw,
NumberFormat fmt,
java.lang.Object ref)
Writes a text description of this element to a PrintWriter. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface maspack.render.color.ColorMap |
---|
getColor, getHSV, getHSV, getRGB, getRGB |
Field Detail |
---|
public static PropertyList myProps
Constructor Detail |
---|
public ColorMapBase()
Method Detail |
---|
public static java.lang.Class<?>[] getSubClasses()
public Property getProperty(java.lang.String pathName)
HasProperties
.
' characters. A sub-property
exists if the value of a property is itself an object which exports
properties. It is only possible to obtain a sub-property handle if each of
its ancestor properties exports their values by reference.
getProperty
in interface HasProperties
pathName
- name of the desired property or sub-property
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
public PropertyInfo getPropertyInfo()
CompositeProperty
getPropertyInfo
in interface CompositeProperty
public void setPropertyInfo(PropertyInfo info)
CompositeProperty
setPropertyInfo
in interface CompositeProperty
info
- property informationpublic HasProperties getPropertyHost()
CompositeProperty
getPropertyHost
in interface CompositeProperty
public void setPropertyHost(HasProperties newParent)
CompositeProperty
setPropertyHost
in interface CompositeProperty
newParent
- host for this propertypublic static int getColor3Value(java.awt.Color c)
public static int getColor4Value(java.awt.Color c)
public abstract ColorMapBase copy()
public ColorMapBase clone() throws java.lang.CloneNotSupportedException
CompositeProperty
clone
in interface CompositeProperty
clone
in interface Clonable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public void write(java.io.PrintWriter pw, NumberFormat fmt, java.lang.Object ref) throws java.io.IOException
scan
and complete
enough to allow full reconstruction of the element.
write
in interface Scannable
pw
- stream for writing the elementfmt
- numeric formating informationref
- optional reference object which can be used for producing references to
other objects
java.io.IOException
- if an I/O error occuredpublic boolean isWritable()
true
if this component should in fact be written to
secondary storage. This gives subclasses control over whether or
not they are actually written out.
isWritable
in interface Scannable
true
if this component should be written to
secondary storage.public void scan(ReaderTokenizer rtok, java.lang.Object ref) throws java.io.IOException
write
.
scan
in interface Scannable
rtok
- Tokenizer from which to scan the elementref
- optional reference object which can be used for resolving references to
other objects
java.io.IOException
- if an I/O or formatting error occured
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |