Class Mat5ArrayRenderer
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.visualization.debug.objectrenderer.AbstractObjectRenderer
-
- adams.gui.visualization.debug.objectrenderer.Mat5ArrayRenderer
-
- All Implemented Interfaces:
LoggingSupporter
,SizeOfHandler
,ObjectRenderer
,Serializable
public class Mat5ArrayRenderer extends AbstractObjectRenderer
Simply outputs the array dimensions.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected TextPanel
m_LastTextPanel
the last setup.-
Fields inherited from class adams.gui.visualization.debug.objectrenderer.AbstractObjectRenderer
m_Cache, m_RendererClasses, m_Renderers
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description Mat5ArrayRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canRenderCached(Object obj, JPanel panel)
Checks whether the renderer can use a cached setup to render an object.protected String
doRender(Object obj, JPanel panel, Integer limit)
Performs the actual rendering with a new renderer setup.protected String
doRenderCached(Object obj, JPanel panel, Integer limit)
Performs the actual rendering.boolean
handles(Class cls)
Checks whether the renderer can handle the specified class.protected String
render(Object obj, Integer limit)
Renders the object.-
Methods inherited from class adams.gui.visualization.debug.objectrenderer.AbstractObjectRenderer
getRenderer, getRenderer, getRenderers, initRenderers, instantiate, render, renderCached, supportsLimit
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_LastTextPanel
protected TextPanel m_LastTextPanel
the last setup.
-
-
Method Detail
-
handles
public boolean handles(Class cls)
Checks whether the renderer can handle the specified class.- Specified by:
handles
in interfaceObjectRenderer
- Specified by:
handles
in classAbstractObjectRenderer
- Parameters:
cls
- the class to check- Returns:
- true if the renderer can handle this type of object
-
canRenderCached
public boolean canRenderCached(Object obj, JPanel panel)
Checks whether the renderer can use a cached setup to render an object.- Specified by:
canRenderCached
in interfaceObjectRenderer
- Overrides:
canRenderCached
in classAbstractObjectRenderer
- Parameters:
obj
- the object to renderpanel
- the panel to render into- Returns:
- true if possible
-
render
protected String render(Object obj, Integer limit)
Renders the object.- Parameters:
obj
- the object to renderlimit
- the limit to use for the rendering (if applicable), ignored if null- Returns:
- the generated string
-
doRenderCached
protected String doRenderCached(Object obj, JPanel panel, Integer limit)
Performs the actual rendering.- Overrides:
doRenderCached
in classAbstractObjectRenderer
- Parameters:
obj
- the object to renderpanel
- the panel to render intolimit
- the limit to use for the rendering (if applicable), ignored if null- Returns:
- null if successful, otherwise error message
-
doRender
protected String doRender(Object obj, JPanel panel, Integer limit)
Performs the actual rendering with a new renderer setup.- Specified by:
doRender
in classAbstractObjectRenderer
- Parameters:
obj
- the object to renderpanel
- the panel to render intolimit
- the limit to use for the rendering (if applicable), ignored if null- Returns:
- null if successful, otherwise error message
-
-