net.sourceforge.fluxion.pussycat.svg
Class ModelMap
java.lang.Object
net.sourceforge.fluxion.pussycat.svg.ModelMap
- All Implemented Interfaces:
- RenderableInPussycat, RenderableOWLEntity<org.semanticweb.owl.model.OWLIndividual>, PussycatMap, PussycatSVGEntity<org.semanticweb.owl.model.OWLIndividual>
- Direct Known Subclasses:
- ModelRegionMap, ModelWholeMap
public class ModelMap
- extends java.lang.Object
- implements PussycatMap
The ModelMap class
Defines a single backbone map, displaying a region of a defined size, capable of being zoomed
- Author:
- Rob Davey
Constructor Summary |
ModelMap(org.mindswap.pellet.owlapi.Reasoner reasoner,
org.semanticweb.owl.model.OWLOntology ontology,
org.semanticweb.owl.model.OWLIndividual i)
|
Method Summary |
void |
build()
|
java.lang.String |
buildCollapsedMap()
|
java.lang.String |
buildExpandedMap()
|
java.lang.String |
buildMapBiggerButton()
|
java.lang.String |
buildMapMenuButton()
|
java.lang.String |
buildMapMoveButton()
|
java.lang.String |
buildMapSmallerButton()
|
java.lang.String |
buildNavigationArrows(double startpos,
double endpos)
|
java.lang.String |
buildVisibleMarkers(double mapStart,
double mapEnd,
boolean componentText)
|
java.lang.String |
buildZoomBox(double startpos,
double endpos)
|
void |
destroy()
|
java.util.Hashtable<java.lang.String,java.lang.String[]> |
getAllMarkerHomologyInfoFromMap(org.mindswap.pellet.owlapi.Reasoner reasoner)
|
java.util.Hashtable<java.lang.String,java.lang.String[]> |
getAllMarkerInfoFromMap(org.mindswap.pellet.owlapi.Reasoner reasoner)
|
java.util.Hashtable<java.lang.String,java.lang.String[]> |
getAllMarkerModelInfoFromMap(org.mindswap.pellet.owlapi.Reasoner reasoner)
|
java.util.Hashtable<java.lang.String,java.lang.String[]> |
getAllMarkersOfType(org.mindswap.pellet.owlapi.Reasoner reasoner,
java.lang.String type)
|
java.util.Set |
getAvailableMapRepresentations()
|
org.semanticweb.owl.model.OWLIndividual |
getEntity()
|
org.semanticweb.owl.model.OWLClass |
getGlyphClass()
|
double |
getHeight()
|
java.lang.String |
getId()
|
org.semanticweb.owl.model.OWLIndividual |
getMapIndividual()
|
java.lang.String |
getMapName()
|
java.util.Set<PussycatMarkerEntity> |
getMarkers()
|
org.semanticweb.owl.model.OWLOntology |
getSchema()
|
double |
getScrollUnit()
|
java.net.URI |
getURI()
|
int |
getXOffset()
|
int |
getYOffset()
|
boolean |
isCollapsed()
|
boolean |
isDockable()
|
boolean |
isMinimised()
|
void |
setCollapsed(boolean collapsed)
|
void |
setEntity(org.semanticweb.owl.model.OWLIndividual i)
|
void |
setHeight(double h)
|
void |
setId(java.lang.String id)
|
void |
setMapName(java.lang.String n)
|
void |
setMinimised(boolean minimised)
|
void |
setRenderlet(Renderlet renderlet)
|
void |
setSchema(org.semanticweb.owl.model.OWLOntology m)
|
void |
setScrollUnit(double scrollunit)
|
void |
setXOffset(int xo)
|
void |
setYOffset(int yo)
|
java.lang.String |
toString()
|
void |
updateMapScrollBounds(double startpos,
double endpos)
|
void |
updateMultipliers()
|
void |
updateMultipliers(double startpos,
double endpos)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ModelMap
public ModelMap(org.mindswap.pellet.owlapi.Reasoner reasoner,
org.semanticweb.owl.model.OWLOntology ontology,
org.semanticweb.owl.model.OWLIndividual i)
throws org.semanticweb.owl.model.OWLException,
PussycatException
- Throws:
org.semanticweb.owl.model.OWLException
PussycatException
isDockable
public boolean isDockable()
- Specified by:
isDockable
in interface RenderableInPussycat
build
public void build()
throws PussycatException
- Specified by:
build
in interface RenderableInPussycat
- Throws:
PussycatException
updateMapScrollBounds
public void updateMapScrollBounds(double startpos,
double endpos)
- Specified by:
updateMapScrollBounds
in interface PussycatMap
updateMultipliers
public void updateMultipliers()
updateMultipliers
public void updateMultipliers(double startpos,
double endpos)
- Specified by:
updateMultipliers
in interface PussycatMap
buildCollapsedMap
public java.lang.String buildCollapsedMap()
- Specified by:
buildCollapsedMap
in interface PussycatMap
buildExpandedMap
public java.lang.String buildExpandedMap()
throws PussycatException
- Specified by:
buildExpandedMap
in interface PussycatMap
- Throws:
PussycatException
buildMapSmallerButton
public java.lang.String buildMapSmallerButton()
buildMapBiggerButton
public java.lang.String buildMapBiggerButton()
buildMapMoveButton
public java.lang.String buildMapMoveButton()
buildMapMenuButton
public java.lang.String buildMapMenuButton()
buildZoomBox
public java.lang.String buildZoomBox(double startpos,
double endpos)
buildVisibleMarkers
public java.lang.String buildVisibleMarkers(double mapStart,
double mapEnd,
boolean componentText)
throws PussycatException
- Specified by:
buildVisibleMarkers
in interface PussycatMap
- Throws:
PussycatException
buildNavigationArrows
public java.lang.String buildNavigationArrows(double startpos,
double endpos)
throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
getAllMarkersOfType
public java.util.Hashtable<java.lang.String,java.lang.String[]> getAllMarkersOfType(org.mindswap.pellet.owlapi.Reasoner reasoner,
java.lang.String type)
throws org.semanticweb.owl.model.OWLException
- Throws:
org.semanticweb.owl.model.OWLException
getAllMarkerInfoFromMap
public java.util.Hashtable<java.lang.String,java.lang.String[]> getAllMarkerInfoFromMap(org.mindswap.pellet.owlapi.Reasoner reasoner)
throws org.semanticweb.owl.model.OWLException
- Throws:
org.semanticweb.owl.model.OWLException
getAllMarkerModelInfoFromMap
public java.util.Hashtable<java.lang.String,java.lang.String[]> getAllMarkerModelInfoFromMap(org.mindswap.pellet.owlapi.Reasoner reasoner)
throws org.semanticweb.owl.model.OWLException
- Throws:
org.semanticweb.owl.model.OWLException
getAllMarkerHomologyInfoFromMap
public java.util.Hashtable<java.lang.String,java.lang.String[]> getAllMarkerHomologyInfoFromMap(org.mindswap.pellet.owlapi.Reasoner reasoner)
throws org.semanticweb.owl.model.OWLException
- Throws:
org.semanticweb.owl.model.OWLException
getId
public java.lang.String getId()
- Specified by:
getId
in interface RenderableInPussycat
setId
public void setId(java.lang.String id)
- Specified by:
setId
in interface RenderableInPussycat
getMapName
public java.lang.String getMapName()
setMapName
public void setMapName(java.lang.String n)
getSchema
public org.semanticweb.owl.model.OWLOntology getSchema()
- Specified by:
getSchema
in interface PussycatSVGEntity<org.semanticweb.owl.model.OWLIndividual>
setSchema
public void setSchema(org.semanticweb.owl.model.OWLOntology m)
- Specified by:
setSchema
in interface PussycatSVGEntity<org.semanticweb.owl.model.OWLIndividual>
getMapIndividual
public org.semanticweb.owl.model.OWLIndividual getMapIndividual()
getURI
public java.net.URI getURI()
getAvailableMapRepresentations
public java.util.Set getAvailableMapRepresentations()
getXOffset
public int getXOffset()
- Specified by:
getXOffset
in interface PussycatMap
setXOffset
public void setXOffset(int xo)
- Specified by:
setXOffset
in interface PussycatMap
getYOffset
public int getYOffset()
- Specified by:
getYOffset
in interface PussycatMap
setYOffset
public void setYOffset(int yo)
- Specified by:
setYOffset
in interface PussycatMap
getHeight
public double getHeight()
- Specified by:
getHeight
in interface PussycatMap
setHeight
public void setHeight(double h)
- Specified by:
setHeight
in interface PussycatMap
getScrollUnit
public double getScrollUnit()
setScrollUnit
public void setScrollUnit(double scrollunit)
isCollapsed
public boolean isCollapsed()
- Specified by:
isCollapsed
in interface PussycatMap
setCollapsed
public void setCollapsed(boolean collapsed)
- Specified by:
setCollapsed
in interface PussycatMap
isMinimised
public boolean isMinimised()
setMinimised
public void setMinimised(boolean minimised)
toString
public java.lang.String toString()
- Specified by:
toString
in interface RenderableInPussycat
- Overrides:
toString
in class java.lang.Object
getGlyphClass
public org.semanticweb.owl.model.OWLClass getGlyphClass()
- Specified by:
getGlyphClass
in interface PussycatSVGEntity<org.semanticweb.owl.model.OWLIndividual>
getMarkers
public java.util.Set<PussycatMarkerEntity> getMarkers()
- Specified by:
getMarkers
in interface PussycatMap
setRenderlet
public void setRenderlet(Renderlet renderlet)
- Specified by:
setRenderlet
in interface RenderableInPussycat
getEntity
public org.semanticweb.owl.model.OWLIndividual getEntity()
throws PussycatException
- Specified by:
getEntity
in interface RenderableOWLEntity<org.semanticweb.owl.model.OWLIndividual>
- Throws:
PussycatException
setEntity
public void setEntity(org.semanticweb.owl.model.OWLIndividual i)
throws PussycatException
- Specified by:
setEntity
in interface RenderableOWLEntity<org.semanticweb.owl.model.OWLIndividual>
- Throws:
PussycatException
destroy
public void destroy()
- Specified by:
destroy
in interface RenderableInPussycat
Copyright © 2010. All Rights Reserved.