| 
GATE Version 3.1-2270  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
gate.creole.AbstractVisualResource
public abstract class AbstractVisualResource
A convenience implementation of VisualResource with some default code.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel | 
|---|
JPanel.AccessibleJPanel | 
| Nested classes/interfaces inherited from class javax.swing.JComponent | 
|---|
JComponent.AccessibleJComponent | 
| Nested classes/interfaces inherited from class java.awt.Container | 
|---|
Container.AccessibleAWTContainer | 
| Nested classes/interfaces inherited from class java.awt.Component | 
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy | 
| Field Summary | |
|---|---|
protected  FeatureMap | 
features
 | 
protected  Handle | 
handle
The handle for this visual resource  | 
| Fields inherited from class javax.swing.JComponent | 
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW | 
| Fields inherited from class java.awt.Component | 
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT | 
| Fields inherited from interface java.awt.image.ImageObserver | 
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH | 
| Constructor Summary | |
|---|---|
AbstractVisualResource()
Package access constructor to stop normal initialisation.  | 
|
| Method Summary | |
|---|---|
 void | 
cleanup()
Does nothing now, but meant to clear all internal data  | 
 FeatureMap | 
getFeatures()
Accessor for features.  | 
 Object | 
getParameterValue(String paramaterName)
Gets the value of a parameter of this resource.  | 
 Resource | 
init()
Initialise this resource, and return it.  | 
 void | 
setFeatures(FeatureMap features)
Mutator for features  | 
 void | 
setHandle(Handle handle)
Used by the main GUI to tell this VR what handle created it.  | 
 void | 
setParameterValue(String paramaterName,
                  Object parameterValue)
Sets the value for a specified parameter.  | 
 void | 
setParameterValues(FeatureMap parameters)
Sets the values for more parameters in one step.  | 
 void | 
setTarget(Object target)
Called by the GUI when this viewer/editor has to initialise itself for a specific object.  | 
| Methods inherited from class javax.swing.JPanel | 
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface gate.util.NameBearer | 
|---|
getName, setName | 
| Field Detail | 
|---|
protected FeatureMap features
protected Handle handle
| Constructor Detail | 
|---|
public AbstractVisualResource()
| Method Detail | 
|---|
public FeatureMap getFeatures()
getFeatures in interface FeatureBearerpublic void setFeatures(FeatureMap features)
setFeatures in interface FeatureBearer
public Resource init()
              throws ResourceInstantiationException
init in interface ResourceResourceInstantiationExceptionpublic void cleanup()
cleanup in interface Resourcepublic void setTarget(Object target)
setTarget in interface VisualResourcetarget - the object (be it a Resource,
 DataStore or whatever) this viewer has to displaypublic void setHandle(Handle handle)
setHandle in interface VisualResource
public Object getParameterValue(String paramaterName)
                         throws ResourceInstantiationException
getParameterValue in interface ResourceparamaterName - the name of the parameter
ResourceInstantiationException
public void setParameterValue(String paramaterName,
                              Object parameterValue)
                       throws ResourceInstantiationException
setParameterValue in interface ResourceparamaterName - the name for the parameteerparameterValue - the value the parameter will receive
ResourceInstantiationException
public void setParameterValues(FeatureMap parameters)
                        throws ResourceInstantiationException
setParameterValues in interface Resourceparameters - a feature map that has paramete names as keys and
 parameter values as values.
ResourceInstantiationException
  | 
GATE Version 3.1-2270  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||