Class StyleSampleProducerBean
-
Field Summary
Fields inherited from class com.kheops.jmap.server.webadmin.faces.AbstractAdminFacesBean
CONFIGURATION_SAVED, GLOBAL_RES_FILE, OPERATION_FINISHED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.primefaces.model.StreamedContent
Generate a style sample for a specific layer in a project.org.primefaces.model.StreamedContent
Generate a style sample from style attributes.void
setStyleSample
(org.primefaces.model.StreamedContent styleSample) Methods inherited from class com.kheops.jmap.server.webadmin.faces.AbstractAdminFacesBean
addDuplicateNameErrorMessage, addErrorMessage, addErrorMessage, addGlobalErrorMessage, addGlobalErrorMessage, addGlobalInfoMessage, addGlobalWarningMessage, addInfoMessage, addInfoMessage, addRequiredErrorMessage, addWarningMessage, addWarningMessage, closeDialog, containsCharacters, convertColor, convertColor, createDuplicateNameErrorMessage, displayMessage, findComponent, findObjectByName, formatDouble, formatInteger, getBreadCrumbItems, getComponentsToUpdate, getController, getController, getDeleteConfirmationTitle, getDialogs, getEditingObjectId, getExternalContext, getJMapAdminSessionBean, getJMapServerAdminBean, getJMapServerUserAdminBean, getJsfBean, getLanguageLabel, getLanguages, getLanguagesConverter, getLayerStatusConverter, getMessage, getMessage, getParameter, getReadableFileSize, getRequest, getRequestLocale, getRequestParameter, getSessionAttribute, getSessionBean, getSessionId, getSessionUser, initRequestContext, isDuplicate, isExtensionAvailable, openDialog, redirectToPage, reloadCurrentPage, required, reverseArray, showMessageDialog, validateDuplicateName
-
Constructor Details
-
StyleSampleProducerBean
public StyleSampleProducerBean()
-
-
Method Details
-
getStyleSample
public org.primefaces.model.StreamedContent getStyleSample()Generate a style sample from style attributes.Parameters:
styleTemplateId
elementType
(default 0 -> POINT)width
(default 30 pixels)height
(default 30 pixels)lineThickness
(default 1)borderThickness
(default 1)useAntialiasing
(default false)arrowType
(default 0 -> NONE)arrowPosition
(default 50)transparency
(default 0)lineColor
(default -> BLACK)borderColor
(default -> BLACK)fillColor
(default -> 0xFF499DFF)strokeId
borderStrokeId
fontName
fontSize
(default 11)fontStyle
(default 0)textColor
(default -> BLACK)outlineColor
(default -> WHITE)frameColor
(default -> 0xFF499DFF)patternColor
(default -> 0xFF000000)drawFrame
(default false)symbolUnderLabel
(default false)transparentFill
(default false)transparentPatternFill
(default false)selectionStyle
(default false)iconImagePath
symbol
(default false)pattern
(default false)symbolScale
(default 1)symbolRotation
(default 0)symbolOffsetX
(default 0)symbolOffsetY
(default 0) -
setStyleSample
public void setStyleSample(org.primefaces.model.StreamedContent styleSample) -
getLayerStyleSample
public org.primefaces.model.StreamedContent getLayerStyleSample()Generate a style sample for a specific layer in a project.Parameters:
projectId
layerId
scale
(default 0.0)width
(default 20 pixels)height
(default 20 pixels)selection
(default false)
-