001/* 002 * This library is part of OpenCms - 003 * the Open Source Content Management System 004 * 005 * Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com) 006 * 007 * This library is free software; you can redistribute it and/or 008 * modify it under the terms of the GNU Lesser General Public 009 * License as published by the Free Software Foundation; either 010 * version 2.1 of the License, or (at your option) any later version. 011 * 012 * This library is distributed in the hope that it will be useful, 013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 015 * Lesser General Public License for more details. 016 * 017 * For further information about Alkacon Software, please see the 018 * company website: http://www.alkacon.com 019 * 020 * For further information about OpenCms, please see the 021 * project website: http://www.opencms.org 022 * 023 * You should have received a copy of the GNU Lesser General Public 024 * License along with this library; if not, write to the Free Software 025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 026 */ 027 028package org.opencms.ade.galleries.shared; 029 030/** 031 * Bean holding image info to be display in the resource preview dialog.<p> 032 * 033 * @since 8.0. 034 */ 035public class CmsImageInfoBean extends CmsResourceInfoBean { 036 037 /** The image copyright information. */ 038 private String m_copyright; 039 040 /** Focal point of the image (null if not set). */ 041 private CmsPoint m_focalPoint; 042 043 /** The structure id hash. */ 044 private int m_hash; 045 046 /** The image height. */ 047 private int m_height; 048 049 /** The selected image path (used for editor and widget mode). */ 050 private String m_selectedPath; 051 052 /** The view link for displaying the image. */ 053 private String m_viewLink; 054 055 /** The image width. */ 056 private int m_width; 057 058 /** 059 * Returns the image copyright information.<p> 060 * 061 * @return the image copyright information 062 */ 063 public String getCopyright() { 064 065 return m_copyright; 066 } 067 068 /** 069 * Gets the focal point of the image (null if not set).<p> 070 * 071 * @return the focal point of the image 072 */ 073 public CmsPoint getFocalPoint() { 074 075 return m_focalPoint; 076 } 077 078 /** 079 * Returns the structure id hash.<p> 080 * 081 * @return the hash 082 */ 083 public int getHash() { 084 085 return m_hash; 086 } 087 088 /** 089 * Returns the height.<p> 090 * 091 * @return the height 092 */ 093 public int getHeight() { 094 095 return m_height; 096 } 097 098 /** 099 * Returns the selected path.<p> 100 * 101 * @return the selected path 102 */ 103 public String getSelectedPath() { 104 105 return m_selectedPath; 106 } 107 108 /** 109 * The view link for displaying the image.<p> 110 * 111 * @return the link for displaying the image 112 */ 113 public String getViewLink() { 114 115 return m_viewLink; 116 } 117 118 /** 119 * Returns the width.<p> 120 * 121 * @return the width 122 */ 123 public int getWidth() { 124 125 return m_width; 126 } 127 128 /** 129 * Sets the image copyright information.<p> 130 * 131 * @param copyright the image copyright information to set 132 */ 133 public void setCopyright(String copyright) { 134 135 m_copyright = copyright; 136 } 137 138 /** 139 * Sets the focal point for the image.<p> 140 * 141 * @param imagePoint the focal point 142 */ 143 public void setFocalPoint(CmsPoint imagePoint) { 144 145 m_focalPoint = imagePoint; 146 } 147 148 /** 149 * Sets the hash.<p> 150 * 151 * @param hash the hash 152 */ 153 public void setHash(int hash) { 154 155 m_hash = hash; 156 } 157 158 /** 159 * Sets the height.<p> 160 * 161 * @param height the height to set 162 */ 163 public void setHeight(int height) { 164 165 m_height = height; 166 } 167 168 /** 169 * Sets the selected path.<p> 170 * 171 * @param selectedPath the selected path to set 172 */ 173 public void setSelectedPath(String selectedPath) { 174 175 m_selectedPath = selectedPath; 176 } 177 178 /** 179 * Sets the link for displaying the image.<p> 180 * 181 * @param viewLink the link for displaying the image 182 */ 183 public void setViewLink(String viewLink) { 184 185 m_viewLink = viewLink; 186 } 187 188 /** 189 * Sets the width.<p> 190 * 191 * @param width the width to set 192 */ 193 public void setWidth(int width) { 194 195 m_width = width; 196 } 197 198}